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 > ReviewPost Pro Support Forums > ReviewPost Bug Reports

ReviewPost Bug Reports Let us know about any post installation problems you are having with ReviewPost.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old March 17th, 2005, 04:41 PM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Mar 2005
Location: New Zealand
Posts: 5
Undefined Variable / Undefined Constant

Getting the following errors on the 2.9 index page:

Notice: Undefined variable: argv in c:\web\reviewpost29\index.php on line 15

Notice: Use of undefined constant THIS_SCRIPT - assumed 'THIS_SCRIPT' in c:\web\reviewpost29\index.php on line 20


The relevant lines in the index.php are:

if ( is_numeric($argv[0]) ) {
header("Location: {$Globals['maindir']}/showproduct.php?product={$argv[0]}");
exit;
}

define( THIS_SCRIPT, "index" );


I was getting similar error in 2.84 and ended up commenting out the is_numeric argument. Not sure what it is doing?

The THIS_SCRIPT define seems to be new in 2.9 and I get the same sort of message when showing categories:

Notice: Use of undefined constant THIS_SCRIPT - assumed 'THIS_SCRIPT' in c:\web\reviewpost29\showcat.php on line 15
TimB is offline   Reply With Quote
Old March 17th, 2005, 04:43 PM   #2 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,834
It's a good idea to turn off notices on your server, they don't really serve a purpose. If you want you can add:

error_reporting (E_ALL ^ E_NOTICE);

at the top of index.php. We do this in pp-inc.php, but not before a couple of things are done.
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P 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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
vB_editor undefined and vbphrase is undefined V-Rodforums Installs and Upgrade - vBulletin 3.5.X 5 October 9th, 2005 09:57 PM
Undefined variable: argv error V4.0.1 flumpydog Photopost Pro Installation & Upgrades 5 July 5th, 2004 08:37 PM
Notice: Undefined variable: ppperpage in <---Help? box1234 ReviewPost Installation & Upgrades 1 July 1st, 2004 04:51 PM


All times are GMT -5. The time now is 12:13 PM.

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