Previous Thread
Next Thread
Print Thread
Hop To
#217543 10/03/2008 6:11 PM
Joined: Jun 2008
Posts: 48
Likes: 1
A
Newbie
Newbie
A Offline
Joined: Jun 2008
Posts: 48
Likes: 1
We are moving a site from a Windows server to a Unix server. After cleaning up all the text case issues that windows did not care about and Unix choked on the forum is operational on the new server. We DID NOT run the UBBThreads install script. We dumped the database from the current server, edited the database name etc., and ran the .sql file on the new server. We copied over the entire web site and the /forums subdirectories because there was a selection of custom code.

The new site does not produce any UBB errors and the database queries and inserts work properly. There are three errors that I can not figure out:

1) On the login screen after entering Username and Password and clicking on the "log in" button the browser shows a 404 page not found error. Click twice on the back button and you are back at the login page showin "not logged in" but you are in fact logged and and clicking on "Forum List" takes you to the forum list. It appears it does the work but fails when it sends the browser the URL for the next page.

2) Upon adding a new post when you click the "Submit" button the work is completed but the browser displays a 404 error. Click the browser re-load button and you are back to the forum list with the post having been made. You are not sent back to the actual post that was just submitted. This also happens with a reply and the fefresh button re-loads the level 0 forum page. Edit a post works just fine where the "Change Post" button takes you to the changed post page and then to the edited post. It seems like a problem with the "submit" button function() and getting "lost" on the page/post it is supposed to return to. I am too new to UBBThreads to know where in the php code the submit button code is located.

3) In control panel "permission checks" shows "FAIL" almost across the board but all the fourm functions are working. Is it possible there is a set of table entries somewhere that still contain the directory, file, and table information from the Windows server and do to the case sensitive issues the permission check is failing because the data used to assemble the permission checks produces a test string that is not correct for the revised Unix environment?

Abbott

Abbott #217544 10/03/2008 6:57 PM
Joined: Dec 2006
Posts: 1,235
veteran
veteran
Joined: Dec 2006
Posts: 1,235
Sounds like your directories don't have the correct permissions. You need to CHMOD the following:
  • includes/ directory: set permissions to 0777
  • files within the includes/ directory: set permissions to 0666
  • sessions/ directory: set permissions to 0777
  • templates/compile directory: set permissions to 0777
  • templates/ directory: set permissions to 0777
  • cache/ directory: set permissions to 0777
  • cache_builders/ directory: set permissions to 0777
  • cache_builders/custom/ directory: set permissions to 0777
  • files within the cache_builders/custom/ directory: set permissions to 0666
  • styles/ directory: set permissions to 0777
  • files within the styles/ directory: set permissions to 0666
  • tmp/ directory: set permissions to 0777
  • gallery/ directory: set permissions to 0777
  • directories within the gallery/default directory: set permissions to 0777
To do this, use FTP software ( CuteFTP, Filezilla, etc. ) to log in to your server. On each of the directories listed above, right click on the folder and and select Properties or CHMOD if it's listed, then change the permissions as shown. If only 3 digits are allowed ignore the leading zero.

More info here: https://www.ubbcentral.com/doc_install.php

Joined: Jun 2008
Posts: 48
Likes: 1
A
Newbie
Newbie
A Offline
Joined: Jun 2008
Posts: 48
Likes: 1
Thanks

I had set permissions based on the UBB.threads Install Guide but it did not cover entries displayed on the permission check page in Control Panel. For example templates/ directory was set to 0777 but templates/default was still 755 and the files within default/ were 0644. I went through and set the permissions for the subdirectories and file contents and then permission check reported OK but it does not help with the submit button error.

There is one file test.php in the Includes directory that will not allow a permission change from 0644 to 0666. I can edit and rename the file. The other include files are fine.

Abbott

Abbott #217550 10/03/2008 7:53 PM
Joined: Jun 2008
Posts: 48
Likes: 1
A
Newbie
Newbie
A Offline
Joined: Jun 2008
Posts: 48
Likes: 1
More info

On further investigation It appears there is a problem with a config setting that helps build the REQUEST_URI. The refering post and request URI post numbers are correct.

The 404 error is produced
<!--#echo var="HTTP_REFERER" --> http://testdomian.net/forums/ubbthr...amp;page=1&what=showflat&fpart=1

<!--#echo var="REQUEST_URI" --> /public_html/forums/ubbthreads.php?ubb=showflat&Number=86965&page=0

<!--#echo var="HTTP_HOST" --> testdomain.net

<!--#echo var="HTTP_REFERER" --> 404

Time to go look at the config file closely.

Abbott

Abbott #217552 10/03/2008 11:04 PM
Joined: Jun 2008
Posts: 48
Likes: 1
A
Newbie
Newbie
A Offline
Joined: Jun 2008
Posts: 48
Likes: 1
It appears to be any time the submit button is part of a form the URL passed back to the browser resolves to "/public_html/forums/" instead of a complete URL such as:

http://testdomian.net/forums/
http://www.testdomain.net/forums/

or even the local

/home/username/public_html/forums/

I thought it might be a problem with BASE_URL in the config.inc.php file but that entry is => '/forums' so I am not sure how that would resolve to '/public_html/forums/'

The other settings:
'FULL_URL' => 'http://testdomain.net/public_html/forums',
'BASE_URL' => '/forums',
'FULL_PATH' => '/home/accountname/public_html/forums',
'SESSION_PATH' => '/home/accountname/public_html/forums/sessions',
'REFERERS' => 'http://www.testdomain.net',

All other links and functions in the forums work properly. It is only the return URL after clicking the 'submit' and 'log in' buttons that send a bad URL to the browser.

A post edit does return a confirmation page and returns properly after the 10 second delay.

Confused

Abbott

Abbott #217566 10/05/2008 9:12 AM
Joined: Jun 2006
Posts: 3,837
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
'FULL_URL' => 'http://testdomain.net/public_html/forums',

Should be

'FULL_URL' => 'http://testdomain.net/forums',

Ian #217584 10/06/2008 9:15 AM
Joined: Jun 2008
Posts: 48
Likes: 1
A
Newbie
Newbie
A Offline
Joined: Jun 2008
Posts: 48
Likes: 1
Ian

Thanks. You are right on the mark! I figured it out over the weekend. When I tried

'FULL_URL' => 'http://www.testdomain.net/forums'

everything worked except the logout link would keep cycling me back to the forums still logged in. Changing it to

'FULL_URL' => 'http://testdomain.net/forums'

Got everything working properly. I must have looked at that entry a dozen times and it did not jump out at me.

Abbott


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
3 members (rootman, Gizmo, Nightcrawler), 562 guests, and 186 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)