WPPizza – A Restaurant Plugin for WordPress › Support › General Support › Menu Category no longer in category list
- AuthorPosts
- 4 November, 2017 at 1:00 am #32246
This morning we experienced the “Fatal error: Can’t use function return value in write context in .. “ error. I found your support page on the error (my error was line 217 vs 211). I was not able to log into my admin page to update (not sure what was causing this). The recco that I found was to log in via my cpanel and delete and reinstall the plugin, not sure I wanted to delete the plugin not knowing if it would also the menu entries. So I just renamed the plugin directory, was able log in, then went back and renamed the plugin back to wppizza. At that point I was able to update the plugin and it looked like everything was back up and running, at least good enough for the noon lunch hour.
As I went back in for a closer look I found a number of issues:
1) Every menu item had a small chart icon even though we don’t use online ordering – fixed
2) Some of the layout parameters where switched – fixedThe big issue is with one of the menu categories – Appetizers no longer shows up as a category. The Category has disappeared from the category list. I have tried searching for both the name and the slug and it doesn’t find anything. I tried creating a new duplicate category but it gave me a warning that it already existed.
If I searched the “All Menu Items” list for a specific category no items are returned (with any category). When I click on a Category listing for a specific menu item, all of the menu items in that category show up fine. When I do this for Appetizers all of the specific menu item show up as an Appetizers. That confirms that the items are still in the database.
On the specific Appetizer page (2 columns, code below) the only item that shows up the the headline Appetizers.
My fall back is to create a new category for appetizers and move the existing appetizers to the new category. Not my favorite solution but … any ideas on how to address?
Thanks in advanced!
ScottSites current configuration:
WordPress 4.8.3 running Executive Pro Theme theme.
Version 3.1.1 | By ollybach | View detailshttp://larosametuchen.com/our-menu/appetizers/
<h1>Appetizers</h1>
<div class=”theMenuTop”>
<div class=”theMenuLeft”>
[wppizza category=”appetizers” noheader=”1″ exclude=”272,273,274,275,276,277,278″]
</div><div class=”theMenuRight”>
[wppizza category=”appetizers” noheader=”1″ exclude=”243,244,245,246,268,269,270,271,731″]
</div>
</div>4 November, 2017 at 1:29 am #32251just a few things first of all:
—-
(you didn’t provide the actual file, but *assuming* we are talking about class.wppizza.widgets.php and wppizza version 3.1.1)
“Can’t use function return value in write context … line 217 ” is simply impossible as line 217 is completely empty in 3.1.1(however, that was an issue with 3.1 on that line when using old versions of php which was subsequently fixed in 3.1.1)
—-
cart icon: you can simply turn this off in wppizza -> layout – though i agree with you that this should/could probably be automatically omitted if online orders are disabled .—–
>Some of the layout parameters where switched
sorry, but i do not know which parameters you are referring to (in fact, was this actually an update from wppizza 2.x perhaps ?)—
appetizers/category (http://larosametuchen.com/our-menu/appetizers/) :
try wppizza version 3.1.2 (i’ll spare you th edetails why this might alleviate your problems )4 November, 2017 at 1:34 am #32252PS: btw, you are also *outputting* php notices/warnings/errors
you should NEVER do that on a production site
please see here as to how to turn this off
http://docs.wp-pizza.com/troubleshooting/8 November, 2017 at 3:17 am #32447Olly,
Version 3.1.2 fixed the Appetizer problem. Thanks. My initial upgrade to 3.1.1 fixed the fatal error, I had been able to fix the smaller errors e.g. cart icon etc. Thanks for pointing me to the trouble shooting page wrt the warnings, that was next on my list. - AuthorPosts
- The topic ‘Menu Category no longer in category list’ is closed to new replies.