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 October 12th, 2006, 07:09 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Location: Toronto, Ontario
Posts: 30
Site errors?

Hey guys I am getting an error on the classified



Fatal error: [] operator not supported for strings in /home/mywebsite/public_html/classifieds/index.php on line 176

so this is the lines in the bb codes

// Strip out BB codes
$find[] = '#\[.*/?\]#siU'; $replace[] = '';
$comcomment = preg_replace($find, $replace, $comcomment);

$cache['comments']['cat'][$numfound] = $thumbcat;
$cache['comments']['comment'][$numfound] = ( strlen($comcomment) > 100 ? substr($comcomment,0,100)."..." : $comcomment );

$filenoext = get_filename( $thumbimg );
$theext = get_ext( $thumbimg );
$image_file_path = "{$Globals['datafull']}/{$thumbcat}/thumbs/{$thumbimg}";
list( $thumbw, $thumbh ) = @getimagesize( $image_file_path );

$cache['comments']['thumblink'][$numfound] = get_imagethumb( $thumbimg, $thumbcat, $thumbuid, 1, 0, 1, $thumbw, $thumbh );
if ( $Globals['spider'] == "yes" ) $cache['comments']['link'][$numfound] = "{$Globals['maindir']}/showproduct.php/product/{$cache['comments']['lcphoto'][$numfound]}/cat/{$cache['comments']['cat'][$numfound]}";
else $cache['comments']['link'][$numfound] = "{$Globals['maindir']}/showproduct.php?product={$cache['comments']['lcphoto'][$numfound]}&cat={$cache['comments']['cat'][$numfound]}";

$numfound++;
if ( $numfound == $Globals['numcompal'] ) break;
}
}

if ( $Globals['ratingspal'] == "yes" ) {

WhenI remove line 176 it showes my site and the products loaded in it but I get more errors.

Is there something wrong with this?
I have the classifieds 2.5 and 3.6.1 VB last week it worked no problem and now it is giving me these errors.
marinefiend is offline   Reply With Quote
Old October 12th, 2006, 07:46 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,801
Code:
Content visible to verified customers only.
Its your newer PHP try replacing in index.php that to this as this is already in the beta

Code:
Content visible to verified customers only.
__________________
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
Old October 12th, 2006, 07:48 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Location: Toronto, Ontario
Posts: 30
Thanks Chuck

now get this error and it is showing four times
Warning: preg_replace(): Empty regular expression in /home/mywebspace/public_html/classifieds/index.php on line 177

so 177 is

$comcomment = preg_replace($find, $replace, $comcomment);
marinefiend is offline   Reply With Quote
Old October 12th, 2006, 07:49 PM   #4 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Location: Toronto, Ontario
Posts: 30
Well at least I can see the products uploaded now
marinefiend is offline   Reply With Quote
Old October 12th, 2006, 07:51 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Location: Toronto, Ontario
Posts: 30
Dam also now getting this in show catagory
Fatal error: [] operator not supported for strings in /home/mywebspace/public_html/classifieds/showcat.php on line 536
marinefiend is offline   Reply With Quote
Old October 12th, 2006, 07:57 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,801
No you need to remove both lines I noted and put just the one line
__________________
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
Old October 12th, 2006, 08:01 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Location: Toronto, Ontario
Posts: 30
Ok so yes then that would work. Duh

but now getting this error

Fatal error: [] operator not supported for strings in /home/myspace/public_html/classifieds/showcat.php on line 536

$find[] = '#\[.*/?\]#siU'; $replace[] = '';
marinefiend is offline   Reply With Quote
Old October 12th, 2006, 08:45 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,801
very similar replace the two lines in showcat.php with this

Code:
Content visible to verified customers only.
__________________
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
Old October 12th, 2006, 08:50 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Location: Toronto, Ontario
Posts: 30
Thanks for the quick reply Chuck.

I was also just thinking if I should just goto the Beta, are all the known bugs fixed in the beta 1 that are in the bug forum?

Cause this would most likely fix my issue no?
marinefiend is offline   Reply With Quote
Old October 12th, 2006, 09:45 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,801
no open issues right now no
__________________
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
my site jeremy2006 Show off your PhotoPost site! 0 April 15th, 2006 03:21 AM
upgraded to 3.5 on dev site: errors msimonds Installs and Upgrade - vBulletin 3.5.X 3 October 15th, 2005 02:32 PM
Help me, a few errors, pp site searches render little help. MXjunk127 Photopost Pro Installation & Upgrades 4 June 5th, 2005 11:14 PM
does my site look right? youradultworld Photopost Pro Installation & Upgrades 3 May 12th, 2005 07:03 AM
Copied Reviewpost to new site - evrything points to old site criscokid ReviewPost Installation & Upgrades 6 January 9th, 2005 02:03 PM


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

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