PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Installation & Upgrades (http://www.photopost.com/forum/photopost-pro-installation-upgrades/)
-   -   MySQL errors? (http://www.photopost.com/forum/photopost-pro-installation-upgrades/129221-mysql-errors.html)

gdaybloke December 8th, 2006 06:30 AM

MySQL errors?
 
Forgive me, I know absolutely diddly about MySQL, but I'm hoping someone can help me out here...

Two issues:
1) People going back and forth between the gallery and the forums are finding themselves being logged out of one or the other in the switch? I'm assuming it's a cookie issue?

2) Got a handful of MySQL errors:

Got this one four times:
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 ('5ff6a413640f9c99f14a92eb0b9c8b44',, 1165515224, 1165515224, '1896383a', '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 ' 1165515224, 1165515224, '1896383a', '0', '1')' at line 2
Got this one twice
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
Before I pull what's left of my hair out, can anyone tell me if my two problem are related and how I might go about correcting them?

Chuck S December 8th, 2006 08:45 AM

In phpbb2.php make sure your login and logout function are like this

Code:

Content visible to verified customers only.

gdaybloke December 8th, 2006 09:51 PM

Copied and pasted, thanks Chuck.

Now if I can just work out why it's not keeping people logged in when they bounce between gallery and forum I'll be happy.

Chuck S December 9th, 2006 10:04 AM

Make sure your cookies are set the same between apps.

cookie path /

cookie prefix phpbb2mysql

cookie domain .domain.com

gdaybloke December 9th, 2006 10:57 AM

That's what I was trying to to last night... but now it won't let me log in at all, so I can't get to the admin control panel.

Chuck S December 9th, 2006 10:58 AM

You need to see how you are writing your cookie as something is not set correct as noted above. If both applications are set the way noted above the cookie is readable sitewide

gdaybloke December 9th, 2006 11:02 AM

I know there's something up with the cookies, but I can't get into the Admin panel in Photopost to adjust the cookie settings there, as it won't let me log in at all.


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