Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Upgraded from 4.3 5 to 5.3.1 and installed private messaging plugin
Avatar
ashley briscoe
Member
Free Members
sp_UserOfflineSmall Offline
Mar 15, 2014 - 7:09 am

There are a lot of php errors on the site around depreciated code for the sites theme that I need to fix but I can't see any related to the forum.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 15, 2014 - 7:28 am

This is most disturbing. And the fact that it left the old table in place is even more strange - which still to me suggests an error...

Tell me - after you reactivated the PM plugin and ran the next page did it sem to take a long time to load? Just wondering about a timeout condition...

Do you know how to run database queries at all? Another approach would be to find out exactly what should get selected... and I can probably create a query to find out.

andy-signature.png
YELLOW
SWORDFISH
Avatar
ashley briscoe
Member
Free Members
sp_UserOfflineSmall Offline
Mar 15, 2014 - 7:41 am

No much experience with DB queries but i am sure i can figure it out. 

Quite the opposite it actually activates the plugin in 1-2 seconds which seems too fast

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 15, 2014 - 1:48 pm

No it should activate quite fast. It would be the next admin page load that probably mattered more.

I would try this query:

SELECT DISTINCT title, message_slug FROM wp_sfmessages ORDER BY message_id WHERE to_id <> from_id';

You may need to change the table prefix (wp_) if you changed to from the default at set up time,

You can run this via phpMyAdmin. It is a simple select and really we just need to find out if it returns any data rows - and if so - how many.

andy-signature.png
YELLOW
SWORDFISH
Avatar
ashley briscoe
Member
Free Members
sp_UserOfflineSmall Offline
Mar 15, 2014 - 2:01 pm

Hi I am getting the error 

ERROR: Unclosed quote @ 97
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 15, 2014 - 2:08 pm

Whoops. Sorry - should not have that single quote at the end. Copy and paste error. The semi-colon is optional.

andy-signature.png
YELLOW
SWORDFISH
Avatar
ashley briscoe
Member
Free Members
sp_UserOfflineSmall Offline
Mar 15, 2014 - 2:10 pm

Unfortunately still getting errors even without the semi colon:

SQL query: [Image Can Not Be Found]

 

SELECT DISTINCT title, message_slug FROM wp_sfmessages ORDER BY message_id WHERE to_id <> from_id
 LIMIT 0, 25 

 

MySQL said: [Image Can Not Be Found]

#1064 - 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 'WHERE to_id <> from_id<br />LIMIT 0, 25' at line 1 
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 16, 2014 - 3:33 am

From the error message it looks like the angle brackets are getting converted to html entities and thus mangled as far as SQL goes. You probably need to type it in not copy and paste.

andy-signature.png
YELLOW
SWORDFISH
Avatar
ashley briscoe
Member
Free Members
sp_UserOfflineSmall Offline
Mar 17, 2014 - 4:54 am

Hi I typed it in and it has made no difference. Is there anyway I can just rename the old table and import the data?

The plugin is not seeing the table at all, I am not sure where to go from here. I need to upgrade the live forum asap but don't want users to loose there PM's.

 

This is a far from ideal situation.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 17, 2014 - 5:12 am

It was not supposed to make any difference. The purpose was as explained in post 24 above - to find out of ot returned any data and, if so, how many rows of data...

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626