UserCP | FAQ | Chat | Calendar | Search | Rules | 2 New Posts | My Account | Affiliates | Merchants | Sample Stores | Contact

   Nav: ABW > Forum > Programming / Coding / Datafeeds > GoldenCAN

U: P:        

Help with php error logs


Reply Post New Thread
 
Tools Search Display
Similar
  #1    
Old February 4th, 2008, 12:41 PM
2busy's Avatar
2busy 2busy is online now
ABW Ambassador
Member of the ABW Inner Circle
 
Join Date: January 17th, 2005
Location: Tropical Mountaintop
Posts: 2,434
Question Help with php error logs

I am hoping someone can help me translate the error logs for some GoldenCan pages and figure out who to contact about it. I don't know if the errors are due to something in the Merchan't db or the php from GoldenCan. The "line 152" in this case reads:
Code:
include($URL);
and is part of the GC PHP code. There are about 20 lines in my error logs and they are all GC page-related. Here is a sample error code line, there is not a big difference in the rest of the error code lines except some are on domains and some are subdomains:

[02-Feb-2008 02:24:14] PHP Warning: include(http://si.goldencan.com/GetData.asp...uctpage.html%3F) [<a href='function.include'>function.include</a>]: failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in /home/mydomain/public_html/mysubdomain.com/productpage.html on line 152

PS - I am 1" away from clueless re: PHP. help?
Thank you
Reply With Quote
  #2    
Old February 4th, 2008, 07:14 PM
Bob Lawrence's Avatar
Bob Lawrence Bob Lawrence is offline
Buying Stocks In Raid
Member of the ABW Inner Circle
 
Join Date: July 2nd, 2007
Posts: 569
Send a message via Yahoo to Bob Lawrence
Default

2busy,
Have you changed the .htaccess file to include the following so that your server will
run php scripts.

this file is usually in the public folder -> .htaccess
one or the other line of code should let you run a php script if mod rewrite is turned on, on your server.

AddType application/x-httpd-php .htm .html

AddHandler application/x-httpd-php .html .php .htm
Reply With Quote
  #3    
Old February 4th, 2008, 08:00 PM
sjangro's Avatar
sjangro sjangro is offline
ABW Ambassador
Member of the ABW Inner Circle
 
Join Date: January 18th, 2005
Location: Boston
Posts: 1,527
Default

There's a php setting called allow_url_fopen and allow_url_include (only in later versions of PHP) that are required to access external URLs as files. One of these may be set to off and causing your problem.

If you have access to your server's php.ini, you can set them there.

if not, you can try setting them directly in that file, before line 152, with these php commands:

ini_set("allow_url_fopen", "1");
ini_set("allow_url_include", "1");

Worth a shot. good luck.
Reply With Quote
Register to remove this Sponsor Advertisement Box
  #4    
Old February 5th, 2008, 02:20 AM
2busy's Avatar
2busy 2busy is online now
ABW Ambassador
Member of the ABW Inner Circle
 
Join Date: January 17th, 2005
Location: Tropical Mountaintop
Posts: 2,434
Default

Thank you Bob, but yes, the .htaccess files are OK, the headers, footers and menus (all .php) are all loading fine except when it hits a problem in the GC feed and then the rest of the page (the footer) doesn't load.
And thank you sjangro, I can access the php.ini file and it doesn't need editing in that area anyway. Other scripts are working from AvantLink and PopShops, just getting errors from some of the GC feeds. Because these sites are on shared hosting and there is always a new series of errors apparently from other sites on the server I am thinking that it is maybe a question of shared hosting with a very busy neighbor. I'm not using MySQL with any of the domains on that host but I can see lists of errors from someone else's scripts. The GC pages are loading just fine now so maybe it is a processing error on my host's server. I'll see what they can do. I do appreciate your input, it gave me a few things to check into.
Reply With Quote
  #5    
Old February 5th, 2008, 05:24 PM
DoctorMike DoctorMike is offline
Affiliate Manager
 
Join Date: December 20th, 2005
Posts: 355
Default

Some hosts are updating from PHP 4 to PHP 5 these days, and it may be that that caused a hiccup. If you have a script that normally works but suddenly doesn't, you might check with your host to see if they have changed any settings.
__________________
The Hosting Team - Solid, inexpensive cPanel web hosting with friendly 24/7/365 service.
Recurring commissions, 2nd-tier commissions, 90-day cookies. New - Web Site Editing Service - get rid of those typos!
Reply With Quote
  #6    
Old February 5th, 2008, 07:04 PM
2busy's Avatar
2busy 2busy is online now
ABW Ambassador
Member of the ABW Inner Circle
 
Join Date: January 17th, 2005
Location: Tropical Mountaintop
Posts: 2,434
Default

Yes DoctorMike, I just saw this there: PHP version 5.2.5.
I just don't know what can be done on my end if this change is affecting Golden Can's php? The pages seem to have one error and then show OK. I'm only using .php includes for navigation, headers and footers and those are not producing entries in the error logs. It's the pages with GoldenCan that are showing up in the error logs with a line of code referenced.
I need to take a look at the php.ini settings though and make sure I have the right things in the right places. On one site all the errors are on a neighbors site but it looks like all those server error processes are causing problems on mine. Plain .html pages without any includes are taking forever to load.
Reply With Quote
Register to remove this Sponsor Advertisement Box
Reply Post New Thread
 

 

 

Tools Search
Search:

Advanced Search
Display

Forum Jump
 
Posting Rules
You may not post new threads, You may not post replies, You may not post attachments, You may not edit your posts

vB code is On | Smilies are On | [IMG] code is On | HTML code is Off


All times are GMT -5 - The time now is 11:40 AM

Content may not be republished, in any manner, without prior written permission, violators WILL be Prosecuted.
The views and opinions expressed are strictly those of the individual poster, the contents herein may not have been reviewed.

Trademarks are property of their respective owners.
(C) 2001 - 2009 - ABestWeb - All Rights Reserved