Community Forums › Forums › Archived Forums › General Discussion › Issues after PHP Upgrade from 5.2 to 5.4
Tagged: News Pro Navigation Menu Issues
- This topic has 3 replies, 4 voices, and was last updated 9 years, 9 months ago by Victor Font.
-
AuthorPosts
-
March 14, 2014 at 12:11 am #94806qindeelMember
I was using a news child theme genesis framework without any problems for couple of years. Our host informed us about upgrade from 5.2 php to 5.4 php, and I took it casually like other updates/ upgrades. However after the upgrade, many menus and sub-menus got disappeared. My site is a news site, so there are menus, sub-menus and sub-sub-menus consisting of both pages and categories. When I was adding an extra menu item (whether a post or a page), and then save the menu again, the ticked box for Primary Navigation Menu becomes unticked and the menu disappears from my site. When I tick the box for Primary Navigation Menu again and save the menu again, the added extra menu item disappears from the menu.
I was not sure what was the problem. Then after some research, I edited the php.ini file and increase max_input_vars PHP directive from 1000 to 3000.
However the problem persisted. Then I reverted back to 5.2 and now it is fine which indicate the problem is with script and compatability of child theme with 5.4 php.
My worry is that my host will soon remove 5.2 php from servers, and this will affect my website.
Looking for help.
http://www.labourwatchpakistan.comMarch 14, 2014 at 12:58 am #94812SummerMemberWhich version of the News child theme are you using? Are you sure the problem isn't being caused by one of your plugins?
Genesis and the child theme should not have a problem with upgrading from 5.2 to 5.4... I didn't have any problems going from 5.2 to 5.3 to 5.4 on various servers over the past 2 years, but I recall reading on the WP.org forums how a lot of plugins certainly had problems when servers were updated to newer versions of PHP.
WordPress / Genesis Site Design & Troubleshooting: A Touch of Summer | @SummerWebDesign
Slice of SciFi | Writers, After DarkJuly 16, 2014 at 10:48 pm #114601martialwarriorParticipantI am having the exact same issue with my site now. Did anyone solve this? Menu Items are disappearing and when I add them back, they do not save, and the navigation location check box does not stay checked. Please Advise.
July 17, 2014 at 7:40 am #114635Victor FontModeratorChances are that your host is installing the new version of php in its default configuration. In newer versions of php, default configurations have shortcuts and quite a few modules turned off. Also, over the past few years a number of once mainstream function calls have been deprecated in favor of modern renditions.
I just went through this exercise for a client who has an extensive php application written over 10 years ago. She is switching to a new hosting environment where the latest version of php has been installed. In the new environment, her code wouldn't run. The first problem I found was that the original developer used massive amounts of php shortcuts. A php shortcut is where the developer starts a php call with just <? instead of <?php. When code is written this way with shortcuts turned off, the code won't execute. Another problem I found was that the old code used deprecated functions. Many of the database functions were being initialized using my_sql calls instead of the modern, preferred my_sqli.
There's a way that you can test for what's going on without getting your host involved. You can download a default php.ini file and save it to your installation's root directory. Then you need to force Apache to use that php.ini file by adding the following code to the very top of .htaccess:
suPHP_ConfigPath /home/<your-path>/public_html <Files php.ini> order allow,deny deny from all </Files>
From there you can tweak settings to see what works and what doesn't. Turn on shortcuts first, then activate modules to see if you can get things working. I would recommend turning on php errors so you can see where the code is bombing. It's a lot of work, but you should be able to find and solve the problem with whatever plugin(s) is causing the issue. I say plugin(s) because I think Genesis and WordPress are too well coded to cause these failures. If you have old plugins using deprecated functions, you may be out of luck.
Regards,
Victor
Author of:
The Ultimate Guide to the SDLC &
Winning With WordPress Basics
http://victorfont.com/
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet? -
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.