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 Installation & Upgrades

Classifieds Installation & Upgrades If you're having install or upgrade problems, post here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old February 21st, 2009, 05:13 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2005
Posts: 24
MySQL Error on fresh install

I've just done a fresh install PP Classifieds (version 3.05) on a new machine after having hardware problems. It is integrated with VB 3.7

Testing it out I posted an advert and got this error message:

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in C:\websites\hangout\ppc\pp-inc.php on line 3346

Tables seemed ok but a did a MySQL repair tables anyway. Still the same problem.

Thanks for your help.
azarl is offline   Reply With Quote
Old February 21st, 2009, 08:32 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,653
Turn on debug setting to display errors in global options in admin and then try the action and tell us the error when logged in as admin.
__________________
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 February 21st, 2009, 09:25 AM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2005
Posts: 24
It gets worse

I did that and got:
We're sorry, but the system experienced an unrecoverable error. Please try again later

Now can't get into anything
azarl is offline   Reply With Quote
Old February 21st, 2009, 09:35 AM   #4 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2005
Posts: 24
Reset debug back to 0 in table cp_settings I'm back to the original error - at least I can get in again
azarl is offline   Reply With Quote
Old February 21st, 2009, 09:29 PM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,653
If your logged in as admin the true error should be displayed.

what is this site?

That line looks like it may be this

Code:
Content visible to verified customers only.
Your sure things where installed or was this an upgrade?
__________________
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 February 22nd, 2009, 05:20 AM   #6 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2005
Posts: 24
Logged in as admin.

This is on a local machine, clean install of both VB and PPClassifieds. When I get it working I'll take down the live machine and replace with this one.

If I comment out from 3346

while ( list( $rating, $votes ) = mysql_fetch_row($totalv) )
{
if ( $rating == 1 ) $overall -= $votes;
elseif ( $rating == 3 ) $overall += $votes;
}

The error goes
azarl is offline   Reply With Quote
Old February 22nd, 2009, 06:37 AM   #7 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2005
Posts: 24
Sorted it! (I think)

I output the variables $totalv and the query string, $query from the line above, to a text file. Line 3343 of pp_inc.php was trying to query a non-existent table - cp_feedback hadn't been created by the install process.

I tried to create it manually using the CREATE TABLE string from install.php and it produced a MySQL error - can't have a default value for the BLOB/TEXT field 'comments'. I've removed the default from it, run again and created the table. It appears OK now.
azarl is offline   Reply With Quote
Old February 22nd, 2009, 10:20 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,653
Yep bet you have mysql 5 set in STRICT MODE. Let me know if you have any other issues.
__________________
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 February 23rd, 2009, 03:46 AM   #9 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2005
Posts: 24
Thanks, I set it to "no_auto_create" now
azarl is offline   Reply With Quote
Old February 23rd, 2009, 06:45 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,653
No problem as long as you got it working.
__________________
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
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
keep getting mysql error... after fresh installtion on vb3.6.5 romanticyao How Do I? - vBulletin 3.6x 1 April 13th, 2007 07:19 PM
2.1 fresh install and... well, can't install. Database error. Exilera Installs and Upgrade - vBulletin 3.6x 6 December 2nd, 2006 09:50 AM
Fresh install and I get this error: wacnstac Classifieds Installation & Upgrades 3 February 8th, 2006 09:19 AM
error during fresh install alf2g Photopost Pro Installation & Upgrades 1 July 19th, 2004 07:44 AM
Fresh Install 4.8d + Threads .6x and MySQL Error Keet Photopost Pro Installation & Upgrades 4 July 18th, 2004 07:44 PM


All times are GMT -5. The time now is 02:56 PM.

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