PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Bug Reports (http://www.photopost.com/forum/photopost-pro-bug-reports/)
-   -   MySQL errors (http://www.photopost.com/forum/photopost-pro-bug-reports/133239-mysql-errors.html)

gdaybloke September 9th, 2007 06:37 PM

MySQL errors
 
Okay, since I installed PhotoPost on my client's site I've had difficulty getting it to integrate successfully with phpBB.

1. We're running phpBB 2.0.22. Every time someone switches between the forum and the gallery, it logs them out of the gallery, forcing them to manually log in again every time. This is a significant inconvenience to my client and her patrons.

I can only assume this is directly linked to only a dozen or so of the members showing up when clicking the Personal Galleries link from the gallery index.

In the past when I've brought this up I've received some advice on setting the cookies, but each time it's caused other problems - including denying access to the admin panels of the forum when using IE7, which I'm sure you can understand is not acceptable.

2. We've also periodically been receiving mySQL errors. Since I know diddly about mySQL, I'm hoping someone here can provide some insight.

The most recent two batches of errors:
Quote:

Originally Posted by September 2nd
Quote:

An error was encountered during execution of the query:

DELETE FROM phpbb_sessions WHERE session_user_id=

The query returned with an errorcode of:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Quote:

REPLACE INTO phpbb_sessions (session_id,session_user_id,session_start,session_time,session_ip,session_page,session_logged_in)
VALUES ('6e3c3f72d079a4ed57b35cf4a875a894',, 1188772819, 1188772819, '1896cbbe', '0', '1')

The query returned with an errorcode of:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 1188772819, 1188772819, '1896cbbe', '0', '1')' at line 2
Quote:

REPLACE INTO phpbb_sessions (session_id,session_user_id,session_start,session_time,session_ip,session_page,session_logged_in)
VALUES ('6e3c3f72d079a4ed57b35cf4a875a894',, 1188772819, 1188772819, '1896cbbe', '0', '1')

The query returned with an errorcode of:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 1188772819, 1188772819, '1896cbbe', '0', '1')' at line 2

Quote:

Originally Posted by September 9th
Quote:

An error was encountered during execution of the query:

REPLACE INTO phpbb_sessions (session_id,session_user_id,session_start,session_time,session_ip,session_page,session_logged_in)
VALUES ('ca5e965344526e346ca50bc9ae4d9f09',, 1189373721, 1189373721, '415c33eb', '0', '1')

The query returned with an errorcode of:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 1189373721, 1189373721, '415c33eb', '0', '1')' at line 2
Quote:

An error was encountered during execution of the query:

REPLACE INTO phpbb_sessions (session_id,session_user_id,session_start,session_time,session_ip,session_page,session_logged_in)
VALUES ('ca5e965344526e346ca50bc9ae4d9f09',, 1189373721, 1189373721, '415c33eb', '0', '1')

The query returned with an errorcode of:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 1189373721, 1189373721, '415c33eb', '0', '1')' at line 2
Quote:

DELETE FROM phpbb_sessions WHERE session_user_id=

The query returned with an errorcode of:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

I would appreciate any help anyone can provide. If a PhotoPost staff member could take a look at things, that would be a huge help.

Chuck S September 9th, 2007 07:19 PM

Line 214-221 those two queries in your phpbb2.php file replace with this.

Code:

Content visible to verified customers only.
Make sure to upload this changed file to your forums subdirectory under photopost and that should resolve your mysql error

As far as your first issue I suggest you set your cookies like this and this is the prefered way on any site.

cookie path /

cookie prefix phpbb2mysql

cookie domain .domain.com


All times are GMT -5. The time now is 01:17 AM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97