Script having issues

I have a PHP/Mysql script for my website and it was working fine with no issues for months. Then my hosting company switched from 5.2 to 5.3 for all my sites, and it started to have issues. I have got it to work for the most part after I switched it back to 5.2. But it is not displaying all the text it should be on some pages.

How could this happen by just switching the version for PHP? I switched it back and I am still having issues, could it have done damage to anything? Please help this is extremely frustrating for me.

Thanks

It’s hard to say what could of went wrong, obviously with a new version of PHP their are many changes that take place you can view the change log here…

http://php.net/ChangeLog-5.php

I personally run 5.4.X

Are you on shared hosting? Did you or the hosting company switch it back to 5.2?

There’s really to many variables to determine what happen because you don’t know how the company upgraded and downgraded PHP.

All you can do is troubleshoot your current issue and find a resolution for it.

Are you on shared hosting? Yes, with dedicated IP
Did you or the hosting company switch it back to 5.2? I did. When they moved it to 5.3 they did this in the cpanel same way I did the roll back. I ran a phpinfo.php file and it shows version 5.2.17 is running for the site

You may want to contact the hosting company.

It could be an issue with the php.ini settings. When on a shared hosting account if they update your php on you it’s best to ask them to switch your account to the version of php you where on before. Most companies will keep a few servers for clients who can’t run the newer version of php or other software they may upgrade, and have them configured the same way as your current server.

I have had to do this many times over the years as things have become obsolete and someone asks me to get their site back up A.S.A.P. so we can get their site updated to an up to date standard.

I did backups of this site for months and rolled back to an old php.ini file from two months ago and still same issue with one item not coming up. :frowning: It is really frustrating as it was working before. I also rolled back the full website and sql db to a month ago before the changed the php version and still having same issues. Ideas?

Do you get any errors?

If not then add this to the beginning of your script

[php]<?php
ini_set(‘error_reporting’, E_ALL);[/php]

If you still don’t get any errors contact your hosting and ask if they can supply any error logs.

It’s practically impossible to help without errors, so please find some and get back here if you have any trouble fixing them :slight_smile:

I have an update on this and it has me really stumped. The website has been the same since last post over 90 days ago. About 80% of the website worked and then last Friday the items that were not displaying just started to work for some reason. I never made any changes or updates at all. I immediately made a back though just in case (Also checked in ftp and no files were update with new dates), and then went into the cpanel. The PHP version showing there was 5.2.17, I was very happy it was working but was saying how did this happen.

I came back later in the day (about 5 hours) and checked to make sure all was good and it was not working again :( I looked in the Cpanel and now PHP version was 5.4.22. I contacted the hosting company and they said I am running 5.2 and I ran phpinfo.ini and it showed I was running 5.2. What the heck is going on here? Any ideas or things to try? Or things I can ask my hosting company. They are as confused as I am now.

I dont know where cpanel gets the version number, but I would have ur host do a clean install of whatever version u need, but have a look at the error log, it should give ypu an indication of whats going on.

I asked the hosting company they said the version showing in Cpanel is for the whole server and all accounts on it. Also they said in a install of PHP only two items change the PHP.ini and Htaccess file. I have not installed PHP before but I would think there is more to it then this. Needs some help and what to ask or tell the hosting company here please.

You should have a log of all software updates that cpanel does… Look at those logs and see what new things was installed or updated.

Where would this be located in cpanel. I see access logs but nothing else.

Here’s the location of where all the logs are located.

I used to host with ServInt they are a great company, but I no longer use Linux hosting.

https://knowledgebase.servint.net/questions/652/cPanel+Logs+Location+Reference

Sponsor our Newsletter | Privacy Policy | Terms of Service