PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Classifieds Support > Classifieds Bug Reports

Classifieds Bug Reports Post any problems you may be having with Classifieds here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old November 17th, 2009, 06:32 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Oct 2009
Posts: 111
Classifieds filling up error log - undefined constants

Hey Chuck... my entire system just crashed big time... out of disk space. There is a 600 gig error log full of these:

Code:
Content visible to verified customers only.

.
ktmtalk is offline   Reply With Quote
Old November 17th, 2009, 07:07 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
Turn down your PHP error reporting level. That should fix your log issue
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 17th, 2009, 07:30 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Oct 2009
Posts: 111
Quote:
Originally Posted by Chuck S View Post
Turn down your PHP error reporting level. That should fix your log issue
at the top of pp-inc.php???
at the top of pp-inc.php, we have:
error_reporting (E_ALL ^ E_NOTICE);

what if I add some defines at the very top of pp-inc.php?
for example:
Code:
Content visible to verified customers only.
ktmtalk is offline   Reply With Quote
Old November 17th, 2009, 07:32 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
No our reporting on the script is set correctly thats why you dont see empty variables all the garbage like that. Your server side must be set to report every little thing. You can talk to your host about this if you dont have access to edit the server php settings. that would be in your php.ini file.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 17th, 2009, 07:55 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Oct 2009
Posts: 111
Chuck... with all due respect, I should not have to change the php.ini file for the classifieds system.

If there is a statement in the classifieds that is causing an error because, as in this case, it is making a reference to a variable that has not been declared, then the code needs to be fixed so it doesn't cause that error.

Then again... thats the way I feel... Your Mileage May Vary.

btw: I am the host...

.
ktmtalk is offline   Reply With Quote
Old November 17th, 2009, 08:00 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
Well our classifieds is not showing any errors is it?

There is nothing wrong with the constants use in the files they use valid PHP.

The issue is the server wide php error reporting is set TOO HIGH. Hense your error log is reporting empty variable etc etc so if you look at it this way if your the host your the one causing this. If you turn down the reporting to only report true real php errors like noted in our script you will not get those types of things reported in your logs.

The defines your talking about are already defined in config-intc.php
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 17th, 2009, 08:03 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Oct 2009
Posts: 111
Quote:
The defines your talking about are already defined in config-intc.php
yes they are but not all modules include that file... hence the errors from calling a variable that is never set.

fine... somehow I knew this would end up being my fault and not the code.
ktmtalk is offline   Reply With Quote
Old November 17th, 2009, 08:17 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
Those variables are defined and called and used throughout the program.

pp-inc.php which is our global file used by all program files requires config-inc.php. That file requires header-inc.php and that file requires config-intc.php. See they are indeed defined. They are either on or off.

No one is placing blame here. I am merely explaining what your issue is. It has to do with PHP error reporting on the server being set to high. I am sorry you dont like my answer but I cant give you another.

There is no magical change to the code I can tell you to prevent what happens in your error logs based on what is being reported.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 17th, 2009, 08:36 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: Oct 2009
Posts: 111
Quote:
Originally Posted by Chuck S View Post
Those variables are defined and called and used throughout the program.

pp-inc.php which is our global file used by all program files requires config-inc.php.
yeah ??? How about showing me where you include that file in pp-inc.php BEFORE you make reference to those variables in pp-inc.php.

here is the pp-inc.php code you updated on 11/09/09
Code:
Content visible to verified customers only.
No include config-inc.php before the reference to "VB3_INTEGRATION" is made.

here is the pp-inc.php code you updated on 10/28/09
Code:
Content visible to verified customers only.
again.... No include of config-inc.php before the reference to "VB3_INTEGRATION" is made.

I could post the other updates but the point is moot.

There is NO include of "config-inc.php" before the reference is made to "VB3_INTEGRATION" .... hence, there will always be an error generated when a reference is made to an undeclared vraiable.... just like the 600 gig error log shows.... thousands and thousands of times.

forget it... I'll fix it myself. Like I said... I knew it was going to end up being my fault.

.
ktmtalk is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Undefined variable error jtorral General Discussion 4 June 20th, 2006 09:15 PM
vB_editor undefined and vbphrase is undefined V-Rodforums Installs and Upgrade - vBulletin 3.5.X 5 October 9th, 2005 10:57 PM
Undefined Variable / Undefined Constant TimB ReviewPost Bug Reports 1 March 17th, 2005 05:43 PM
Installed Classifieds but can't log in as Administrator fetus Classifieds Installation & Upgrades 3 February 7th, 2005 08:48 PM
installation error Fatal error: Call to undefined function: init_user_groups hoss ReviewPost Installation & Upgrades 1 January 16th, 2005 08:35 PM


All times are GMT -5. The time now is 05:57 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0