Previous Thread
Next Thread
Print Thread
Hop To
Joined: Oct 2007
Posts: 282
Likes: 2
Enthusiast
OP Offline
Enthusiast
Joined: Oct 2007
Posts: 282
Likes: 2
I'm seeing this error when trying to load faq.php.

Quote
Parse error: syntax error, unexpected '<', expecting end of file in /usr/local/www/html/ubbthreads/languages/english/faq.php on line 46

I say strange, because this is line 46:

Quote
<li>Make sure you are entering your password correctly. Passwords are case-sensitive.</li>

Version, etc. is in my sig.

Last edited by Baldeagle; 04/06/2021 1:19 AM.

The Stovebolt Geek
https://www.stovebolt.com/ubbthreads/ubbthreads.php

UBBThreads 7.7.4
Web Server Apache/2.4.44
PHP Version 7.4.8
MySQL Version 5.6.49
Database Size 2.23 GB
Joined: Dec 2003
Posts: 6,353
Likes: 51
Online Yawn
Joined: Dec 2003
Posts: 6,353
Likes: 51
Well it may not answer the question of why.
But have you tried going to the member area and grab a copy of 7.7.4 and uploading faq.php?


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 16,063
Likes: 69
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,063
Likes: 69
It sounds like one of your variables in the faq.php files have text outside of the standard variable definition.

Properly formatted:
Code
$ubbt_lang['B_POLL'] = "Putting a poll in your post is simple.";


Messed up would be something like:
Code
$ubbt_lang['B_POLL'] = "Putting a poll in" your post is simple.";
or
Code
$ubbt_lang['B_POLL'] = "Putting a poll in"; your post is simple.";


The fix, in this case, would be to simply restore your faq.php file in the languages/english/ folder from the UBB.threads install archive; any customization you've made to this file will need to be reapplied.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Oct 2007
Posts: 282
Likes: 2
Enthusiast
OP Offline
Enthusiast
Joined: Oct 2007
Posts: 282
Likes: 2
Originally Posted by Ruben
Well it may not answer the question of why.
But have you tried going to the member area and grab a copy of 7.7.4 and uploading faq.php?
I have not. I likely still have a copy of the downloaded files, so I could do a compare to see if there's a difference. Hadn't thought of that. Thanks.

Update: I ran a diff on the site file and the backup, and they were different. So, I backed up the site file and then overwrote it with the backup file. That fixed the problem.

Here's the diff, if anyone wants to know. Apparently the list items got separated from the list somehow.

Code
diff faq.php /usr/local/www/html/ubbthreads/languages/english/faq.php 
45c45
< $ubbt_lang['B_HELP'] = "This checklist may help you successfully log in:<ol>
---
> $ubbt_lang['B_HELP'] = "This checklist may help you successfully log in:<ol><li>Make sure you are entering your password correctly. Passwords are case-sensitive.</li><li>Ensure that your browser supports cookies; if so, check the security level you are using. High levels of security restriction in certain browsers will automatically reject cookies. In order to use the key features of these forums, you'll need to accept cookies. The maker of your browser can help you with additional problems you may have with your cookie settings.</li><li>Completely log out by hitting the Log Out link in the upper right-hand corner of the page, and then log back in again.</li><li>After logging in, you may have to hit the Reload or Refresh button on your browser to expedite the authentication.</li><li>If these steps don't work you can try purging your cookies for this site using the <a href=\"%%BASE_URL%%/ubbthreads.php?ubb=mycookies\">My Cookies</a> tool.</li><li>If you continue to have problems, go to the Log In page and click \"{$ubbt_lang['FORGOTTEN']}\". Enter your real email address into the Email Address field and a temporary password will be emailed to the email address used for the account setup.</li></ol>";
80c80
< $ubbt_lang['B_MISTAKE'] = "Users can edit their own posts up to %%MAX_EDIT_TIME%% minutes after they are made. Where the change is substantial, it is courteous mark the post as edited so as to alert readers to the changed content. For cosmetic changes, it's better not to do so.";
---
> $ubbt_lang['B_MISTAKE'] = "Users can edit their own posts up to %%MAX_EDIT_TIME%% minutes after they are made. Where the change is substantial, it is courteous mark the post as edited so as to alert readers to the changed content. For cosmetic changes, it's better not to do so.";
124c124
< $ubbt_lang['B_MOREPOSTS'] = "You can change the number of posts displayed on each page by editing your display preferences. You can set this to anything between 1 and 99 posts per page. By default, this is set to %%TOPICS_PER_PAGE%% posts per page.";
---
> $ubbt_lang['B_MOREPOSTS'] = "You can change the number of posts displayed on each page by editing your display preferences. You can set this to anything between 1 and 99 posts per page. By default, this is set to %%TOPICS_PER_PAGE%% posts per page.";

Last edited by Baldeagle; 04/07/2021 2:11 PM.

The Stovebolt Geek
https://www.stovebolt.com/ubbthreads/ubbthreads.php

UBBThreads 7.7.4
Web Server Apache/2.4.44
PHP Version 7.4.8
MySQL Version 5.6.49
Database Size 2.23 GB
Joined: Dec 2003
Posts: 6,353
Likes: 51
Online Yawn
Joined: Dec 2003
Posts: 6,353
Likes: 51
You should still have access in the members area for UBBThreads 7.7.4


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Oct 2007
Posts: 282
Likes: 2
Enthusiast
OP Offline
Enthusiast
Joined: Oct 2007
Posts: 282
Likes: 2
Originally Posted by Ruben
You should still have access in the members area for UBBThreads 7.7.4
I do, but I unzip the builds into folders in my home directory, so it's easier to grab one that's already on the server. Your suggestion was perfect. Replacing the file solved the problem.


The Stovebolt Geek
https://www.stovebolt.com/ubbthreads/ubbthreads.php

UBBThreads 7.7.4
Web Server Apache/2.4.44
PHP Version 7.4.8
MySQL Version 5.6.49
Database Size 2.23 GB
Joined: Dec 2003
Posts: 6,353
Likes: 51
Online Yawn
Joined: Dec 2003
Posts: 6,353
Likes: 51
I have found that when you get those types of php errors.
Just because it says say line 46 it could be line 45 or 47.
It all has to do with where the statement really ends.

Glad you got it working.
Hopefully you did not have some customization to the faq file.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
7.7.5 become member issue
by Ruben - 04/15/2021 10:06 AM
Gobal announcement replies.
by Ruben - 04/09/2021 1:46 PM
Strange parse error in faq.php
by Baldeagle - 04/06/2021 1:12 AM
Upgrading to 7.7.5: Error:
by BB - 04/02/2021 10:48 AM
Does UBB 7.7.5 support webp images
by Ruben - 03/27/2021 12:00 PM
Who's Online Now
3 members (auelboard, Ruben, 1 invisible), 46 guests, and 67 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
gallery test
gallery test
by Mors, September 23
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 7.7.5