Private Messages. No such folder exists

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785

Private Messages. No such folder exists

Postby AmateurCichlids » Tue Sep 07, 2004 4:06 am

URLhttp://66.70.90.41/phpBB2/
Template(s) used: Subsilver (modified)
Any and all MODs: Fetch All
Do you use a port of phpBB: Huh?
Version of phpBB: 2.0.10 (tables from 2.0.6 on old forums)
Version of PHP: 4.1.2
Which database server and version: MySQL 3.x
Host:
Did someone install this for you/who: Nope
Is this an upgrade/from what to what: Installed 2.0.10 fresh, then restored tables from shell
Conversion Nope
Have you searched for your problem: Yes
If so, what terms did you try: Private message, private, message, no such folder, no folder, private no folder,
State the nature of your problem: As mentioned above, I installed 2.0.10 then restored my database from the shell. I also restored a second data base from another site and merged the two. When you send a private message, it stores it in the database. But when you go to view that message you get the error, "No such folder exists".
I thought this may be a conflict with the two merged databases, so I emptied the tables and tried fresh. Same error. I was wondering if the table structure for *_privmsgs and *_privmsgs_text changed between 2.0.10 and 2.0.6 and if so, where can I get the table creation syntax so I can get private messaging working again?
Do you have a test account for us: I'll set up an account name test with password of test.

Thanks in advance.
Tim

[/b]
User avatar
AmateurCichlids
Registered User
 
Posts: 48
Joined: Sat Jun 19, 2004 3:31 pm
Location: Connecticut

Postby AmateurCichlids » Tue Sep 07, 2004 4:50 am

Update:

I've replaced the mysql tables for private messages, and I'm still getting a "No Such Folder" error when I go to private messages.
I've also replaced the privmsgs.php file.
Ideas?
Tim
User avatar
AmateurCichlids
Registered User
 
Posts: 48
Joined: Sat Jun 19, 2004 3:31 pm
Location: Connecticut

Postby flogger12 » Tue Sep 07, 2004 5:05 am

what folder is it looking for?

robert
User avatar
flogger12
Registered User
 
Posts: 14936
Joined: Tue Nov 25, 2003 2:13 am

Postby AmateurCichlids » Tue Sep 07, 2004 5:09 am

I get that message when I click on the private message link.
privmsgs.php?folder=inbox
So the inbox folder is the one it's looking for.
Tim
User avatar
AmateurCichlids
Registered User
 
Posts: 48
Joined: Sat Jun 19, 2004 3:31 pm
Location: Connecticut

Postby AmateurCichlids » Tue Sep 07, 2004 5:28 am

It appears for some reason, the $folder variable is not getting initialized. So the switch statement goes to the default on line 222 of privmsgs.php.
I can't figure out why the $folder variable is not set to inbox when passed that way by the link.
Any ideas? Anyone?
Tim
User avatar
AmateurCichlids
Registered User
 
Posts: 48
Joined: Sat Jun 19, 2004 3:31 pm
Location: Connecticut

Postby AmateurCichlids » Tue Sep 07, 2004 6:57 am

Is there anything in other files, like constants.php that can affect how privmsgs.php looks at variables?
Tim
User avatar
AmateurCichlids
Registered User
 
Posts: 48
Joined: Sat Jun 19, 2004 3:31 pm
Location: Connecticut

Postby AmateurCichlids » Tue Sep 07, 2004 7:46 am

Thank you for all your responses. 8O

It appears to get my random picture generator working, I defined the variable $folder in page_header.php

So, a general warning to all out there. Use descriptive, non-common names for any additional variables you define when altering code.

Tim
User avatar
AmateurCichlids
Registered User
 
Posts: 48
Joined: Sat Jun 19, 2004 3:31 pm
Location: Connecticut


Return to 2.0.x Support Forum

Who is online

Users browsing this forum: sirknight115 and 15 guests