|
Joined: Oct 2007
Posts: 354 Likes: 8
Enthusiast
|
Enthusiast
Joined: Oct 2007
Posts: 354 Likes: 8 |
I'm seeing this error when trying to load faq.php. 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: <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.
|
|
|
|
Joined: Dec 2003
Posts: 6,560 Likes: 78
|
Joined: Dec 2003
Posts: 6,560 Likes: 78 |
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,289 Likes: 115
|
Joined: Jun 2006
Posts: 16,289 Likes: 115 |
It sounds like one of your variables in the faq.php files have text outside of the standard variable definition. Properly formatted: $ubbt_lang['B_POLL'] = "Putting a poll in your post is simple."; Messed up would be something like: $ubbt_lang['B_POLL'] = "Putting a poll in" your post is simple."; or $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.
|
|
|
|
Joined: Oct 2007
Posts: 354 Likes: 8
Enthusiast
|
Enthusiast
Joined: Oct 2007
Posts: 354 Likes: 8 |
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. 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.
|
|
|
|
Joined: Dec 2003
Posts: 6,560 Likes: 78
|
Joined: Dec 2003
Posts: 6,560 Likes: 78 |
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: 354 Likes: 8
Enthusiast
|
Enthusiast
Joined: Oct 2007
Posts: 354 Likes: 8 |
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.
|
|
|
|
Joined: Dec 2003
Posts: 6,560 Likes: 78
|
Joined: Dec 2003
Posts: 6,560 Likes: 78 |
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
|
|
|
1 members (domspeak),
337
guests, and
176
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|