homepage Welcome to WebmasterWorld Guest from 54.196.225.45
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
how to troubleshoot php
smallcompany




msg:4384548
 8:48 pm on Nov 7, 2011 (gmt 0)

I have PHP script that writes few variables into a cookie. It suddenly stopped working without changes made from my side. Hosting company claimed there were no changes on their side, but when I run php info, I see the build date and time to be exactly when it stopped working.

The PHP version is 5.2.17

The php info shows the right path to my php.ini file.

Here are the setting for error reporting:

# supress php errors
display_startup_errors = off
display_errors = off
html_errors = off
docref_root = 0
docref_ext = 0
# php error logging
log_errors = on
error_reporting = 6135
error_log = /mypath/phperror.txt
# disable repeated error logging
ignore_repeated_errors = on
ignore_repeated_source = on

I'm waiting for support to get back to me now. In a meantime, what could I do to drill into this further?

Thanks

 

jatar_k




msg:4384602
 10:51 pm on Nov 7, 2011 (gmt 0)

what is it exactly that stopped working?

have you diagnosed exactly what part if the code is having the issue?

smallcompany




msg:4384642
 12:26 am on Nov 8, 2011 (gmt 0)

what is it exactly that stopped working?


A script gets called from PHP.INI via auto_prepend_file. It works with referring URL to get variables and writes them into a cookie. Later on, I call them from a cookie and pass them as needed.
I have this working on numerous sites with numerous hosting companies.

But with this specific host, all stopped working on that specific day after, as per host, "Apache and PHP were recompiled on the server, but there weren't any configuration changes."

That recompilation somehow made my script stop working. Now I'm trying to point the support into the right direction.
I can see that earlier today they have recompiled the software again, but that did not make any difference.

penders




msg:4384863
 1:38 pm on Nov 8, 2011 (gmt 0)

What was the previous version of PHP - when it was working OK?

smallcompany




msg:4384973
 6:24 pm on Nov 8, 2011 (gmt 0)

What was the previous version of PHP - when it was working OK?


Don't know. But I do know that it works with another host that runs the same version as of now. Plus, it may be that the version was the same prior that recompilation. Now I see November 7 after I emailed them about it. I guess they tried to see if just recompiling it would fix it.

Anyway, I'll try to break the script and test it in two steps at least. The support guys are willing to help so I'll give them a chance.

Thanks to all.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved