Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading Your Zen Cart / Upgrading to 1.5.x / Hostmonster updates to PHP 5.4 we need to update to 1.5.1 and 1.5.2 ?

Hostmonster updates to PHP 5.4 we need to update to 1.5.1 and 1.5.2 ?

6 Feb 2014, 12:55 AM
#1
leialoha avatar

leialoha

New Zenner

Join Date:
Feb 2009
Location:
Kilauea, Kauai - Hawaii
Posts:
21
Plugin Contributions:
0

Post #1 by leialoha

My client got the message that Hostmomnster is updating all sites to PHP 5.4 (we currently at 5.2) in couple weeks! :lookaroun

and I called in and tried current site on php 5.4 for a second, and it goes blank, so we switched it back right away. :ohmy:

So i need to "update" to 1.5.1 and than to 1.5.2 ? (if i read the list what PHP 5.4 would need) :blink:

also saw there is a patch mentioned to make it work for PHP 5.4 also for 1.5.0 ? :mellow:

I apprechate any tips or links to solution i might oversaw !!! Mahalo Community :D

6 Feb 2014, 1:14 AM
#2
mikebr avatar

mikebr

Zen Follower

Join Date:
May 2007
Posts:
124
Plugin Contributions:
0

Post #2 by mikebr

I too am a Hostmonster client.
zencart 150 , need patches to work with PHP 5.4
thank you

6 Feb 2014, 3:17 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #3 by drbyte

Zen Cart v1.5.2 is compatible with PHP 5.4. You can obtain the beta from the post in the News & Announcements section of the forum.

Or, you can apply the PHP 5.4 patches for v1.5.1, also found in the News & Announcements section. However, this gives only partial compatibility, and is intended only as a temporary bandage until you upgrade to v1.5.2.

Prior versions are not compatible with PHP 5.4

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 Feb 2014, 3:40 AM
#4
leialoha avatar

leialoha

New Zenner

Join Date:
Feb 2009
Location:
Kilauea, Kauai - Hawaii
Posts:
21
Plugin Contributions:
0

Post #4 by leialoha

Aloha Dr. Byte,

Thank you!

I updated the testserver successfully to 151 and tested it with php 5.4 running as is for a moment, and seem without patch to work, I did browse and did a test shop but of cause test not all the details....

Will try to update tonight to 152 on our test server if my daughter lets me, and check it out as well.

thanks for your help and being so dedicated to zen cart !!

6 Feb 2014, 4:10 AM
#5
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #5 by mc12345678

Someone else had a problem with their site when they upgraded (rather when the host required upgrading) to PHP 5.4, the various discussions associated with it can be found at this thread: http://www.zen-cart.com/showthread.php?211753-After-upgrade-to-PHP-5-4-site-displays-a-blank-page

Long and short of it for the particular troubled site was that the database required some rebuilding. Of what was last posted, I didn't fully understand if the true cause was identified or not, but a lot went into trying to identify the instigator and find a functional solution. Hopefully all that is needed is the above as provided by Dr. Byte, but if there is more needed, maybe the above link will help.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

7 Feb 2014, 6:35 PM
#6
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Post #6 by divavocals

mc12345678:

Someone else had a problem with their site when they upgraded (rather when the host required upgrading) to PHP 5.4, the various discussions associated with it can be found at this thread: http://www.zen-cart.com/showthread.php?211753-After-upgrade-to-PHP-5-4-site-displays-a-blank-page

Long and short of it for the particular troubled site was that the database required some rebuilding. Of what was last posted, I didn't fully understand if the true cause was identified or not, but a lot went into trying to identify the instigator and find a functional solution. Hopefully all that is needed is the above as provided by Dr. Byte, but if there is more needed, maybe the above link will help.

Actually I DID state what I suspected was the issue I had (quoted myself and highlighted the relevant parts).. Bottomline there was a DATA CORRUPTION issue in the configuration table that caused my client's Zen Cart store to stop working when PHP 5.4 was enabled. (the WordPress portion of the site had NO issues) It's likely that the configuration table values for the shipping, order total or payment modules were the cause. Do I know WHICH ONE.. No.. So while I didn't get down the the VERY specific EXACT cause of the issue, I did narrow the field down considerably to possible causes and I stated HOW I came to my conclusion..

My client is hosted on Hostmonster, and the issue impacted BOTH their dev site and their live site. Once I re-built the configuration table (as outlined in the referenced post), I was able to get the Zen Cart store back up and FUNCTIONING when PHP 5.4 is enabled.

DivaVocals:

Well there appears to be a light at the end of my preverbial tunnel..

GOLD STAR to lhungil for providing me with a REASON why I'm not getting error logs.. two words.. data corruption..

With this info, I was able to narrow down the problem to the configuration table.

Working on a final resolution.. Replaced the configuration, configuration_group, and **admin_page **tables on the current dev site with the like tables from the re-created dev site, and the dev site came back up under PHP 5.4.. This has me hopeful in resolving what has been a frustrating experience..

I will be doing more testing, and once I am satisfied that this is the right solution/direction, then I am going to push the configuration, configuration_group, and **admin_page **tables from the dev site database to the live site database.

and before anyone asks.. I haven't a CLUE what specific data in the configuration tables on the dev site is THE offending data.. and YES I dumped the data and used Beyond Compare to compare the data dumps.. the problem is that past the Zen Cart default values, unless I installed add-ons which add configuration table values in the SAME order, the configuration data won't line up without manipulation of the data.. Since time is not a luxury I have (host says that support for PHP 5.2 will end this weekend) I had to let got of finding out the EXACT offending data and work towards getting things WORKING.. I think I am finally moving in that direction..

Thanks for everyone's help, suggestions, and support..

Hope this thread helps someone else with similar issues..

DivaVocals:

So all is well and I wanted to share what I suspect is the POSSIBLE offending data..

After aligning nearly everything between the dev and live sites in terms of add-on installs and other configuration settings, the ONLY items left that would affect the configuration table were the various modules installed (payment, shipping, order totals). The dev site only has the free shipper, USPS shipping and Check/Money Order enabled. The live site had the same shipping options, but Authorize.net was the only payment module enabled. Though the order totals were identical between the dev and live site, I couldn't rule them out as a possible culprit. So to test my "theory", I did the following:

  1. Turned off ALL the order total, shipping and payment modules in the dev site.
  1. Backed up JUST the values in the configuration table for the order total, shipping and payment modules in the live site.
  1. Put the dev site into maintenance mode
  1. Pushed the configuration, configuration_group, and admin_page tables from the dev site database to the live site database, and re-enabled PHP 5.4 on the live site. The live site came back up in maintenance mode.. (whoo hoo!!)
  1. Backed up the live site's newly populated configuration, configuration_group, and admin_page tables.
  1. Restored on the live site JUST the configuration values for the payment, shipping, & order totals from backup I made in step 2


As I expected.. the live site died..

So I restored the configuration, configuration_group, and **admin_page **tables from the backup I made in step 5, and logged into the admin and manually configured all the order total, shipping and payment modules for the live site.

All is right with the world.. Sure was a very long journey to get here, and I still don't know the EXACT cause..

Thanks to everyone who posted here, or PM'd, or e-mailed to help.. You are all very much appreciated.. and it was all helpful in one way or another to getting to the end of this nightmare.. Hope I don't have to do this again..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

10 Feb 2014, 9:58 AM
#7
leialoha avatar

leialoha

New Zenner

Join Date:
Feb 2009
Location:
Kilauea, Kauai - Hawaii
Posts:
21
Plugin Contributions:
0

Post #7 by leialoha

Leialoha:

Aloha Dr. Byte,

Thank you!

I updated the testserver successfully to 151 and tested it with php 5.4 running as is for a moment, and seem without patch to work, I did browse and did a test shop but of cause test not all the details....
Now 1.5.1
I did the same changes to the main Installation (we got one not in a subfolder, the actual shop, and the dev one in a subfolder)
So now when i switch to new PHP my dev ones runs fine and my live store showes a blanc, admin does not work either.
under php 5.2 both work fine.

Only difference between them beside the location is that the live store got Power SEO plug in running that is supposedly 1.5.x compi

Is getting late, and that Hostmonster is switching to 5.4 in the next 12h is annoying. BUT I can switch manual back and will be good for a while to figure this out.

I tried changing password/username on database... did not work for me.
I dont get error messages. :wacko:

Leialoha:(

10 Feb 2014, 6:42 PM
#8
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #8 by mc12345678

Leialoha:

Now 1.5.1
I did the same changes to the main Installation (we got one not in a subfolder, the actual shop, and the dev one in a subfolder)
So now when i switch to new PHP my dev ones runs fine and my live store showes a blanc, admin does not work either.
under php 5.2 both work fine.

Only difference between them beside the location is that the live store got Power SEO plug in running that is supposedly 1.5.x compi

Is getting late, and that Hostmonster is switching to 5.4 in the next 12h is annoying. BUT I can switch manual back and will be good for a while to figure this out.

I tried changing password/username on database... did not work for me.
I dont get error messages. :wacko:

Leialoha:(

Realize had to sleep at some point, but look above at what Diva Vocals did to get her site to work above and beyond relocating anything. The issue ended up being in the database, which is what it may seem to be for you as well.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

18 Feb 2014, 2:43 AM
#9
leialoha avatar

leialoha

New Zenner

Join Date:
Feb 2009
Location:
Kilauea, Kauai - Hawaii
Posts:
21
Plugin Contributions:
0

Post #9 by leialoha

Thanks, what Diva Volcas did is little bit over my head, will think about it, but also ready to install a fresh version of 1.5.2 and merge the custom changes that done on core files if I can... not sure yet.

19 Feb 2014, 10:44 AM
#10
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #10 by mc12345678

Leialoha:

Thanks, what Diva Volcas did is little bit over my head, will think about it, but also ready to install a fresh version of 1.5.2 and merge the custom changes that done on core files if I can... not sure yet.

Umay still need to apply some of what Diva Vocals was discussing even after a "new" cart is installed if you use the process of upgrading that is published. This is because if you are experiencing the same problem as DV, the issue was database related and not file related.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

19 Feb 2014, 2:08 PM
#11
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Post #11 by divavocals

mc12345678:

Umay still need to apply some of what Diva Vocals was discussing even after a "new" cart is installed if you use the process of upgrading that is published. This is because if you are experiencing the same problem as DV, the issue was database related and not file related.

nods in agreement:yes:

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.