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 Bug Reports

Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old May 17th, 2011, 12:34 PM   #1 (permalink)
Member
 
Join Date: Mar 2006
Posts: 279
Arrow Error related to PP query

I am encountering a weird issue. Since a long time I am getting error emails like this:
Quote:
An error was encountered during execution of the query:

SELECT id,user,userid,cat,storecat,title,ismature,bigimage,height,width FROM
pp_photos WHERE approved=1 AND storecat=0 ORDER BY date DESC LIMIT 37

The query returned with an errorcode of:

MySQL server has gone away

If you need assistence or feel this is a 'bug'; please report it to our support
forums at: Photopost Pro Bug Reports - PhotoPost Community

To turn off these emails, set $debug=0 in your config-inc.php file.
On first glance you would expect that this email means that the server has gone offline. But, I get these almost daily and its always the exact same query.
Do you have an idea what is happening?
Alfa1 is offline   Reply With Quote
Old May 17th, 2011, 12:43 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
The query is sound. You can issue that same query in phpmyadmin in your hosting control panel and see if will return 37 results. No issue with that query. MYSQL HAS GONE AWAY means your mysql has shut down. As to why mysql has shut down I can not say maybe your host and server logs would have more info to assist in regards to that.
__________________
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 May 17th, 2011, 07:07 PM   #3 (permalink)
Member
 
Join Date: Mar 2006
Posts: 279
What function / event causes that query?

I run a highly active board. If the mysql server goes away then that means that a large volume of users experience problems and I would expect other error mails as well. But I am not getting other error mails. Just one of these almost every day.

I will try to find out if I can find anything in the logs.
Alfa1 is offline   Reply With Quote
Old May 17th, 2011, 07:56 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
That query can be from 3 different files its a generic query either for featured photos or previews on the showphoto page.

mysql has gone away is pretty absolute that error is what is coming back from mysql on your server. That is not a message from our software.
__________________
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 May 20th, 2011, 05:48 PM   #5 (permalink)
Member
 
Join Date: Mar 2006
Posts: 279
The logs have been reviewed for every time the error occurred. At none of these times there were MySQL restarts. No high server loads and no full memory either. Meanwhile the same error keeps coming in. So something is going wrong with that query. Its quite a mystery.
The only thing we can think of is upgrade MySQL to 5.5 and hope its gone then.
Please let me know if you or Michael have any ideas / suggestions.
Alfa1 is offline   Reply With Quote
Old May 21st, 2011, 11:15 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
Well as I said that query is sound nothing special about it.

Code:
Content visible to verified customers only.
That will return the latest 37 photos uploaded to your site. I will see if we have any ideas but as stated it is hard to think of anything when the error reported is a mysql server level error message.
__________________
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 May 22nd, 2011, 07:48 PM   #7 (permalink)
Member
 
Join Date: Mar 2006
Posts: 279
Do you know why on earth is looking for exactly 37 photos? The number is always the same.
Alfa1 is offline   Reply With Quote
Old May 22nd, 2011, 08:20 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
Yes that is easy. Your electing to show 12 photos on the featured photo blocks. We grab the number you want plus 25 to be able to get enough results after viewing permissions etc are applied to fill the blocks. Therefore your limit is 37.
__________________
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error Query maomao Photopost Pro Installation & Upgrades 2 May 13th, 2010 08:47 AM
Upgrade Error related to old version of vB 3.5.2? cossa Photopost Pro Installation & Upgrades 1 December 4th, 2009 04:39 PM
GD installed, but related error CreationNation Photopost Pro Installation & Upgrades 4 October 10th, 2007 05:53 PM
Execution of a Query Error ******* nuguru Photopost Pro Bug Reports 3 December 7th, 2006 06:12 PM
all ads - query error cnczone Classifieds Bug Reports 2 July 20th, 2004 08:44 AM


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

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