News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Forum is Down: Syntax Error, Help!

Started by Uhura!, November 23, 2013, 04:38:53 PM

Previous topic - Next topic

Uhura!

I can't even uninstall -

Here's what happens when I visit my forum now:

White screen & error~>

Quote
Parse error: syntax error, unexpected '$txt' (T_VARIABLE) in /home/ourmo0/public_html/community/Themes/default/languages/Modifications.english.php on line 219

Here's the mod

Here's line 219:
Quote$txt['avatarselect_error_req'] =  'An avatar is required! Please select one.';

Please tell me how to fix this.

Thank you!
:) Our Parenting Spot is an online parenting community for fathers, mothers, grandparents, teachers, and family service professionals. 8) We also provide low cost advertising options for authors, family service providers, and businesses with family friendly products and services. ;D Visit us @ www.OurParentingSpot.net!

Oldiesmann

Sounds like a missing semicolon or an unescaped single quote somewhere. If you can attach that file, I'll be glad to help :)
Michael Eshom
Christian Metal Fans

kat

If you can tell us if you did anything, like a mod install, just before this started happening, so much the better. :)

Uhura!

I did not do anything other than upload & install the mod from the admin panel @ the forum.

Here's the file. I appreciate the help.

Line 219 is this: $txt['avatarselect_error_req'] =  'An avatar is required! Please select one.';

Quote<?php
// Version: 2.0; Modifications

// SMF Sitemap Strings
$txt['sitemap'] = 'Sitemap';
$txt['sitemap_boards'] = 'Boards';
$txt['sitemap_topics'] = 'Topics';
$txt['sitemap_xml'] = 'Show Sitemap XML <em>link</em>';
$txt['sitemap_topic_count'] = 'Maximum number of topics to display in XML sitemap<br /><span class="smalltext">0 to show all (<strong class="error">NOT RECOMMENDED ON LARGE BOARDS</strong>)</span>';
$txt['sitemap_cache_ttl'] = 'Time that XML data should be cached (seconds)';
$txt['sitemap_board_none'] = 'No boards to display';
$txt['sitemap_topic_none'] = 'No topics to display';
$txt['sitemap_30day_priority'] = 'Priority for topics active in the last 30 days';
$txt['sitemap_60day_priority'] = 'Priority for topics active in the last 60 days';
$txt['sitemap_90day_priority'] = 'Priority for topics active in the last 90 days';
$txt['sitemap_91day_priority'] = 'Priority for topics older than 90 days';
$txt['invalid_sitemap_subaction'] = 'Invalid selection';

$txt['banned_user_avatar_url'] = 'For banned users, use this URL as an avatar:';
$txt['default_user_avatar_url'] = 'For users who have not set an avatar, use this URL as an avatar:';

$txt['noisen_footnote'] = 'Footnote';

$txt['infobox'] = 'Add Info Box';

$txt['sd_add'] = 'Share me:';
$txt['sd_social_bookmarks'] = 'Share me';

$txt['searchi'] = 'Search';
$txt['paypal'] = 'Donations';
$txt['cannot_payPal_view'] = 'Sorry, you\'re not allowed to view the Donation Page.';
$txt['permissionname_payPal_view'] = 'View Donation Page';
$txt['permissionhelp_payPal_view'] = 'Allow the people to view the Donation Page.  If not set, the people will not see the page.';
$txt['DonationsNotEnabled'] = 'Sorry, the donation page is not enabled at the moment. Please check back later.';
// Reason for editing mod
$txt['reason'] = 'Reason';
$txt['reason_edit'] = 'Reason For Edit';
$txt['permissionname_reason_edit'] = 'Set Reason for edit';
$txt['permissionhelp_reason_edit'] = 'Set if the membergroup is allowed to put the reason for edit their own posts.';
// Reason for editing mod END

//reCAPTCHA for SMF
$txt['recaptcha_configure'] = 'reCAPTCHA Verification System';
$txt['recaptcha_configure_desc'] = 'Use the reCAPTCHA Verification System. Don\'t have a key for reCAPTCHA? <a href="http://recaptcha.net/api/getkey?app=recaptcha_for_smf"> Get your reCAPTCHA key here</a>.';
$txt['recaptcha_enabled'] = 'Use reCAPTCHA Verification System';
$txt['recaptcha_enable_desc'] = '(This replaces the built-in visual verification with reCAPTCHA)';
$txt['recaptcha_theme'] = 'reCAPTCHA Theme';
$txt['recaptcha_theme_clean'] = 'Clean';
$txt['recaptcha_theme_blackglass'] = 'Black Glass';
$txt['recaptcha_theme_red'] = 'Red';
$txt['recaptcha_theme_white'] = 'White';
$txt['recaptcha_public_key'] = 'reCAPTCHA Public Key';
$txt['recaptcha_private_key'] = 'reCAPTCHA Private Key';
$txt['recaptcha_no_key_question'] = 'Don\'t have a key for reCAPTCHA?';
$txt['recaptcha_get_key'] = 'Get your reCAPTCHA key here.';

$txt['permissionname_profile_signature'] = 'Edit signature';
$txt['permissionname_profile_signature_own'] = 'Own signature';
$txt['permissionname_profile_signature_any'] = 'Any signature';
$txt['permissionname_simple_profile_signature_own'] = 'Edit their signature';
$txt['permissionname_simple_profile_signature_any'] = 'Edit other people\'s signatures';

$txt['permissionname_profile_website'] = 'Edit website details';
$txt['permissionname_profile_website_own'] = 'Own profile';
$txt['permissionname_profile_website_any'] = 'Any profile';
$txt['permissionname_simple_profile_website_own'] = 'Edit their website details';
$txt['permissionname_simple_profile_website_any'] = 'Edit other people\'s website details';

$txt['permissionname_profile_displayname'] = 'Edit display name';
$txt['permissionname_profile_displayname_own'] = 'Own display name';
$txt['permissionname_profile_displayname_any'] = 'Any display name';
$txt['permissionname_simple_profile_displayname_own'] = 'Edit their displayed name';
$txt['permissionname_simple_profile_displayname_any'] = 'Edit other people\'s displayed name';

// PJL : Start of Redirect on login/logout Mod.
$txt['logon_redirect_enable'] = 'Enable Logon Redirect<br /><span class="smalltext">(This redirect users to given URL when they login)</span>';
$txt['logon_redirect_url'] = 'Enter Login URL';
$txt['logout_redirect_enable'] = 'Enable Logout Redirect?<br /><span class="smalltext">(This redirect users to given URL when they logout)</span>';
$txt['logout_redirect_url'] = 'Enter Logout URL';
// End Mod.

$txt['lbnr'] = 'Look But No Read';
$txt['mods_cat_lbnr'] = 'Look But No Read';
$txt['boards_deny_guest_browsing'] = 'Boards to deny guest reading:';
$txt['categories_deny_guest_browsing'] = 'Categories to deny guest reading:';
$txt['enable_guest_browsing_control'] = 'Enable guest browsing control:';

// Topic Solved
$txt['topic_solved'] = 'Topic Solved';
$txt['topic_not_solved'] = 'Topic Not Solved';
$txt['topic_solved_quick'] = 'Mark selected as solved';
$txt['topic_solved_quick_confirm'] = 'Are you sure you want to mark selected topics as solved?';

$txt['topic_solved_board'] = 'Topic Solved Board';
$txt['topic_solved_board_desc'] = 'Enables the Topic Solved feature in the board';

$txt['topic_solved_log'] = 'Topic Solved Log';
$txt['topic_solved_no_log'] = 'There are no topic solve actions logged.';
$txt['topic_solved_desc'] = 'Lists topic solved actions that have been performed by moderators on your forum.';
$txt['modlog_topicsolved_log_desc'] = 'Below is a list of all the topic solved actions that have been carried out by moderators of the forum.<br /><b>Please note:</b> Entries cannot be removed from this log until they are at least twenty-four hours old.';
$txt['modlog_ac_solve'] = 'Solved &quot;{topic}&quot;';
$txt['modlog_ac_not_solve'] = 'Un-Solved &quot;{topic}&quot;';

$txt['permissionname_solve_topic'] = 'Marks topics solved';
$txt['permissionhelp_solve_topic'] = 'This permission allows a user to a topic solved.';
$txt['permissionname_solve_topic_own'] = 'Own topic';
$txt['permissionname_solve_topic_any'] = 'Any topic';
$txt['permissionname_simple_solve_topic_own'] = 'Mark their own topic as solved';
$txt['permissionname_simple_solve_topic_any'] = 'Mark anyone\'s topic as solved';

$txt['topic_solved_error_no_board'] = 'Sorry, topic solved feature is not enabled in this board.';
$txt['cannot_support_tools_solve_topic_own'] = 'You cannot mark your topics as solved.';
$txt['cannot_support_tools_solve_topic_any'] = 'You cannot mark topics as solved.';
// Topic Solved

$txt['pm_register'] = 'Send pm to new members';
$txt['pm_register_id'] = 'Select the ID of the sender';
$txt['pm_register_username'] = 'Select the Username of the sender';
$txt['pm_register_subject'] = 'The subject of the PM';
$txt['pm_register_body'] = 'The message of the PM (BBCODE)';
$txt['pm_register_body_desc'] = 'This is where you set the message that you would like to send to the user. To insert the username of the user just insert "<b>{$username}</b>".  For forum name use "<b>{$forumname}</b>".';

$txt['googleAnalyticsCode'] = 'Google Analytics code<br /><span class="smalltext">E.g. UA-00000000-0</span>';
// Start Posting Announcement mod by Nas
$txt['enable_announcement_guests']='Show an announcement to Guests';
$txt['enable_announcement_members']='Show an announcement to Members';
$txt['text_announcement_guests']='Announcement to display (for Guests)<div class="smalltext">HTML and BBC may be used.</div>';
$txt['text_announcement_members']='Announcement to display (for Memebers) <div class="smalltext">HTML and BBC may be used.</div>';
// End Posting Announcement mod by Nas
// ForumFirewall Start
$txt['permissionname_forumfirewall_goodgroup'] = 'Forum Firewall Whitelist Group';
$txt['permissionhelp_forumfirewall_goodgroup'] = 'This option will make a member group exempt from the Forum Firewall bandwidth check.  This group will not to be tested for Forum Firewall DOS attempts.';
// ForumFirewall End

//Begin Member Notepad Text Strings
$txt['mempad_title'] = 'Personal Notes';
$txt['mempad_save'] = 'Save Notes';
$txt['mempad_error'] = 'You are not allowed to edit this user\'s notepad.';

//END Member Notepad Text Strings         

//  Start Referrals System
$txt['ref_admin'] = 'Referrals System';
$txt['ref_settings'] = 'Settings';
$txt['ref_save_settings'] = 'Save Settings';
$txt['ref_refferals'] = 'Referrals:';
$txt['ref_refferal_link'] = 'Referral Link:';
$txt['ref_reffered_by'] = 'Referred by Membername:';
// Setttings
$txt['ref_showreflink'] = 'Show referral link on profile page';
$txt['ref_showonpost'] = 'Show referrals on post display';
$txt['ref_trackcookiehits'] = 'Track hits for referral link clicks';
$txt['ref_cookietrackdays'] = 'Number of days to store the tracking cookie for referrals';


//  End Referrals System         
//Start S.P.O.X.S. MOD
global $ID_MEMBER;
$txt['spoxs_submit'] = 'Save';
$txt['spoxs_admin_title'] = 'SPOXS - General Configuration';
$txt['spoxs_admin_description'] = 'Setting the area responsible for S.P.O.X.S.(Send.PM.On.X.Posts) Mod';
$txt['spoxs_enable'] = 'Activate Send Pm On X Posts?';
$txt['spoxs_pm_from'] = '<strong>Author ID</strong>
                  <br />ID Author of the user\'s Personal Message.
                  <br />This field is required entrance
                  <br /><strong>Your ID is: '.$ID_MEMBER.'</strong>';
$txt['spoxs_groups_select'] = '<strong>Post count based groups</strong>
                  <br />Select the groups that will be sent to the MP when you get the new Group';                  
$txt['spoxs_pm_subject'] = '<strong>Title</strong>
                     <br />Title PM to be sent';                  
$txt['spoxs_pm_message'] = '<strong>Message</strong>
                     <br />The message received by the user.
                     <br />You can use the variable <strong>[RANK]</strong> to provide for the New Range, <strong>[USERNAME]</strong> to display the user name
                     <br />and<strong>[POSTS]</strong> to show the number of posts filled.
                     <br />Accepts BBCode';      
$txt['spoxs_pm_default_body'] = 'Congratulations [USERNAME], You have [POSTS] posts and now your new group is [RANK].';
$txt['spoxs_pm_default_subject'] = 'Congratulations, New Group.';                  
//End S.P.O.X.S. MOD


// Added by Related Topics
$txt['admin_related_topic'] = 'Related Topics';
$txt['admin_related_topics_information'] = 'Information';
$txt['admin_related_topics_settings'] = 'Settings';
$txt['admin_related_topics_methods'] = 'Methods';

$txt['related_topics_admin_title'] = 'Related Topics';
$txt['related_topics_admin_desc'] = '';

$txt['related_latest_news'] = 'Latest News';
$txt['related_news_unable_to_connect'] = 'Unable to connect to <a href="http://www.smfarcade.info">SMFArcade.info</a> for latest news...';
$txt['related_version_info'] = 'Version Information';
$txt['related_installed_version'] = 'Installed Version';
$txt['related_latest_version'] = 'Latest Version';

$txt['related_topics_ignored_boards'] = 'Ignored Boards';

$txt['related_topics_methods_title'] = 'Methods';
$txt['related_topics_methods'] = 'Select methods used for determining Related Topics<div class="smalltext">Rebuild of index is required after changing these settings</div>';

$txt['related_topics_index'] = 'Index';
$txt['related_topics_rebuild'] = 'Rebuild Indexes';
$txt['related_topics_rebuild_desc'] = 'Use this after changing settings or to build initial cache';

$txt['relatedFulltext'] = 'Fulltext';

$txt['related_topics_settings_title'] = 'Related Topics';
$txt['relatedTopicsEnabled'] = 'Enable Related Topics';
$txt['relatedTopicsCount'] = 'How many related topics to show';

$txt['no_methods_selected'] = 'You haven\'t selected which methods to use to determine related topics';

$txt['related_topics'] = 'Related Topics';
$txt['Advertise'] = 'Advertise';
$txt['Logout'] = 'Logout';
$txt['ContactUs'] = 'Contact Us'
// END Added by Related Topics
// Begin Avatar Select  Text Strings
$txt['avatarselect_error_req'] =  'An avatar is required! Please select one.';
$txt['avatarselect_avatar'] = 'Avatar Select:';
$txt['avatarselect_pleaseselect'] = 'Please select an avatar.';
// END Avatar Select Text Strings

?>
:) Our Parenting Spot is an online parenting community for fathers, mothers, grandparents, teachers, and family service professionals. 8) We also provide low cost advertising options for authors, family service providers, and businesses with family friendly products and services. ;D Visit us @ www.OurParentingSpot.net!

Arantor

There should a ; at the end of $txt['ContactUs'] = 'Contact Us' a few lines above it.

Uhura!

Quote from: Arantor on November 23, 2013, 05:23:50 PM
There should a ; at the end of $txt['ContactUs'] = 'Contact Us' a few lines above it.

There's a reason why you're an SMF legend. Worked like a charm. Thanks!
:) Our Parenting Spot is an online parenting community for fathers, mothers, grandparents, teachers, and family service professionals. 8) We also provide low cost advertising options for authors, family service providers, and businesses with family friendly products and services. ;D Visit us @ www.OurParentingSpot.net!

Uhura!

No avatar on the registration form though... but I am glad my forum is not down!
:) Our Parenting Spot is an online parenting community for fathers, mothers, grandparents, teachers, and family service professionals. 8) We also provide low cost advertising options for authors, family service providers, and businesses with family friendly products and services. ;D Visit us @ www.OurParentingSpot.net!

Arantor

I'd take that up with the mod maintainer then, I don't know what's wrong with the mod offhand, and even though there were changes in 2.0.6 that affected registration, I was very careful not to break that mod.

Uhura!

Quote from: Arantor on November 23, 2013, 05:32:26 PM
I'd take that up with the mod maintainer then, I don't know what's wrong with the mod offhand, and even though there were changes in 2.0.6 that affected registration, I was very careful not to break that mod.

Ok Arantor, thanks again. :)
:) Our Parenting Spot is an online parenting community for fathers, mothers, grandparents, teachers, and family service professionals. 8) We also provide low cost advertising options for authors, family service providers, and businesses with family friendly products and services. ;D Visit us @ www.OurParentingSpot.net!

Advertisement: