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 Pro Support Forums > Photopost Pro Installation & Upgrades

Photopost Pro Installation & Upgrades If you're having install or upgrade problems

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old October 29th, 2006, 12:25 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Oct 2006
Posts: 29
Undefined variable: argv

I am seeing this alot in my apache logs

[client 24.137.213.35] PHP Notice: Undefined variable: argv in /srv/vhosts/cookalbums.ca/photoalbum/index.php on line 15
[client 24.137.213.35] PHP Notice: Undefined variable: argv in /srv/vhosts/cookalbums.ca/photoalbum/index.php on line 15, referer: http://cookalbums.ca/photoalbum/showgallery.php/cat/524
[client 24.137.213.35] PHP Notice: Undefined variable: argv in /srv/vhosts/cookalbums.ca/photoalbum/index.php on line 15, referer: http://cookalbums.ca/photoalbum/showgallery.php/cat/525
[client 24.137.213.35] PHP Notice: Undefined variable: argv in /srv/vhosts/cookalbums.ca/photoalbum/index.php on line 15, referer: http://cookalbums.ca/photoalbum/showgallery.php/cat/517
[client 24.137.213.35] PHP Notice: Undefined variable: argv in /srv/vhosts/cookalbums.ca/photoalbum/index.php on line 15, referer: http://cookalbums.ca/photoalbum/showgallery.php/cat/506
[client 24.137.213.35] PHP Notice: Undefined variable: argv in /srv/vhosts/cookalbums.ca/photoalbum/index.php on line 15, referer: http://cookalbums.ca/photoalbum/showgallery.php/cat/517
[client 24.137.213.35] PHP Notice: Undefined variable: argv in /srv/vhosts/cookalbums.ca/photoalbum/index.php on line 15, referer: http://cookalbums.ca/photoalbum/showgallery.php/cat/509
[client 24.137.213.35] PHP Notice: Undefined variable: argv in /srv/vhosts/cookalbums.ca/photoalbum/index.php on line 15, referer: http://cookalbums.ca/photoalbum/adm-...dmact=sidemenu
[client 24.137.213.35] PHP Notice: Undefined variable: argv in /srv/vhosts/cookalbums.ca/photoalbum/index.php on line 15, referer: http://cookalbums.ca/photoalbum/adm-...dmact=sidemenu
[client 24.137.213.35] PHP Notice: Undefined variable: argv in /srv/vhosts/cookalbums.ca/photoalbum/index.php on line 15



Photopost seems to be working fine, I can not see anything wrong.

Line 15:
if ( is_numeric($argv[0]) )

Here is what the index.php file has around line 15:

// //
// PhotoPost Copyright 2006, All Enthusiast, Inc. //
////////////////////////////////////////////////////////////////////////////

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



Thanks
Duane
dcook8645 is offline   Reply With Quote
Old October 29th, 2006, 01:46 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,806
You can safely delete that if clause its just a check

The real answer is your PHP error reporting is set too high so unless you own the server and can change PHP error reporting lower so it does not report empty variables go ahead and remove those lines
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   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
Undefined variable error jtorral General Discussion 4 June 20th, 2006 09:15 PM
how to correct undefined variable: argv sailnet Photopost Pro Installation & Upgrades 2 February 24th, 2006 10:03 AM
Notice: Undefined variable: argv in d:\html\mysite\review\index.php on line 16 sailnet Classifieds Installation & Upgrades 1 January 24th, 2006 05:35 PM
Undefined Variable / Undefined Constant TimB ReviewPost Bug Reports 1 March 17th, 2005 05:43 PM
Undefined variable: argv error V4.0.1 flumpydog Photopost Pro Installation & Upgrades 5 July 5th, 2004 09:37 PM


All times are GMT -5. The time now is 03:25 PM.

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