PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   sql sessions errors (http://www.photopost.com/forum/photopost-pro-how-do-i/128542-sql-sessions-errors.html)

pengrus November 7th, 2006 02:54 PM

sql sessions errors
 
I got many error notifications like this lately:

---------------------
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 ('357c23a64544764a6834c265c38f662f',, 1162932489, 1162932489, '46a79de2', '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 ' 1162932489, 1162932489, '46a79de2', '0', '1')' at line 2

--------------------------------

Any idea what caused this?

Thanks!

Chuck S November 7th, 2006 04:05 PM

You can edit your phpbb2.php integration file and encapsulate the userid variable like this

Code:

Content visible to verified customers only.

pengrus November 7th, 2006 04:57 PM

Thanks Chuck. I have applied that per your instruction.

pengrus November 7th, 2006 09:33 PM

I now get this error after the code change:

------------------------------------------

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

Chuck S November 9th, 2006 08:06 AM

do the same sort of thing this is not because of the patch only related

place single quotes around the userid variable in the delete query.

pengrus November 10th, 2006 12:17 PM

Hi Chuck,

Could you please let me know the details of codes need to be changed? I am not very good at. Thanks!

Chuck S November 10th, 2006 04:08 PM

Code:

Content visible to verified customers only.


All times are GMT -5. The time now is 01:38 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