SMF Support > SMF 1.1.x Support

Weird strings of code at top of forum for pkg and theme installs

(1/3) > >>

akateisakate:
Hello, I recently upgraded to 1.1.16, and I am getting these errors. A friend had also given me some advice on them, as cited below, but she is not as familiar as you all are with SMF. I'm not sure how to piece the issue together in relation to what SMF files the errors pertain to. Thoughts? I've read some of the stickied threads in this section. Thank you.

Note: The errors also changed the font size in my admin panel, for whatever reason...


--- Quote ---When I try to install a package, this string is appearing at the top of the forum. KEYCAPTCHA for SMF is the name of the mod.

/KeyCAPTCHA for SMF $txt['keycaptcha_configure'] = 'KeyCAPTCHA interactive verification system'; $txt['keycaptcha_configure_desc'] = 'Use the KeyCAPTCHA. Don\'t have a key for KeyCAPTCHA? Get your KeyCAPTCHA key here.'; $txt['keycaptcha_enabled'] = 'Use KeyCAPTCHA'; $txt['keycaptcha_enable_desc'] = '(This replaces the built-in visual verification with KeyCAPTCHA)'; $txt['keycaptcha_private_key'] = 'KeyCAPTCHA Private Key'; $txt['keycaptcha_js_code'] = 'KeyCAPTCHA code'; $txt['visual_verification_label'] = 'To prevent automatic filling in of the form you should perform a task'; $txt['visual_verification_description'] = ' '; $txt['noscript_code_notice'] = 'You should turn on JavaScript on your browser. After that please reload the page. Otherwise you won't be able to post any information on this site.';

And, when I try to install a new theme, this shows up:

ExifII*1J2fizACD Systems Digital Imaging2008:11:22 03:08:160220515'00C     C  ! }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?S?
--- End quote ---

Friend:

--- Quote ---About that part:

//KeyCAPTCHA for SMF
$txt['keycaptcha_configure'] = 'KeyCAPTCHA interactive verification system';
$txt['keycaptcha_configure_desc'] = 'Use the KeyCAPTCHA. Don\'t have a key for KeyCAPTCHA? Get your KeyCAPTCHA key here.';
$txt['keycaptcha_enabled'] = 'Use KeyCAPTCHA';
$txt['keycaptcha_enable_desc'] = '(This replaces the built-in visual verification with KeyCAPTCHA)'; $txt['keycaptcha_private_key'] = 'KeyCAPTCHA Private Key';
$txt['keycaptcha_js_code'] = 'KeyCAPTCHA code';
$txt['visual_verification_label'] = 'To prevent automatic filling in of the form you should perform a task'; $txt['visual_verification_description'] = ' ';
$txt['noscript_code_notice'] = 'You should turn on JavaScript on your browser. After that please reload the page. Otherwise you won't be able to post any information on this site.';

This is only a few line of code to create some default error/help text.

About that part:

ExifII*1J2fizACD Systems Digital Imaging 2008:11:22 03:08:160220515'00C     C  ! }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?S?

Exif means "Exchangeable image file format". You said that you get that error when you tried to install the new theme, so I think it could be a parameter in your SMF config file or something. I'd also check if there were any .PNG file in the new theme. This format is not supported by the standard exif.

--- End quote ---

Thanks!

Krash.:

Mods and themes must be compatible with the SMF version you are running.  Check that the versions are correct.

Kermit:
You may want to check ./Themes/default/languages/Modifications.english.php file it should end


--- Code: ---?>
--- End code ---


and below of this line there shouldn't be any code or you can just add related file to your next post

MrPhil:
As for the KeyCAPTCHA lines, in some file (probably a language file) you have that block of lines misplaced before the first <?php or after the last ?>. You need to move the <?php before these lines or the ?> after them, whichever is appropriate.

As for the "Exif", for some reason something is printing out the contents of an image file (probably JPEG) as if it were a text file. Possibly a very mangled mod install appended an image file onto a .php file. I've never seen this happen, so you're going to have to do some searching for the word "Exif" in your .php files and remove it by hand.

akateisakate:
Modifications.english.php ends correctly. Here is its full text. Anything look wrong? Thank you!


--- Code: ---<?php
// Version: 1.1; Modifications


$txt['posts_limit'] = 'Post Per Day Limit';
$txt['post_too_many_per_day'] = 'Hello '. $context['user']['name']. ', you posted too many times in the last 24 hours.<br />In order to control spam, your ability to post has been disabled for 24 hours.';  

$txt['youtube'] = 'YouTube';
$txt['youtube_invalid'] = '#Invalid YouTube Link#';
$txt['bookmarks'] = 'My Bookmarks';
$txt['bookmark_list'] = 'Bookmarks';
$txt['bookmark_list_empty'] = 'You don\'t have any bookmarks at the moment. Add one by clicking \'Add bookmark\' in topics.';
$txt['bookmark_open_window'] = 'Open in new window';
$txt['bookmark_delete'] = 'Delete selected bookmarks';
$txt['bookmark_delete_success'] = '%1$s bookmarks were deleted successfully!';
$txt['bookmark_delete_failure'] = 'Not all bookmarks could be deleted.';
$txt['bookmark_add'] = 'Add bookmark';
$txt['bookmark_add_success'] = 'The topic was successfully added to your bookmarks!';
$txt['bookmark_add_exists'] = 'This topic is already listed in your bookmarks!';
$txt['bookmark_add_failed'] = 'Failed to add the topic to your bookmarks.';
$txt['permissionname_make_bookmarks'] = 'Create bookmarks for topics';
$txt['cannot_make_bookmarks'] = 'Sorry, you don\'t have permission to make bookmarks.';

// PM on new user registration.
$txt['pm_register_enable'] = 'Send a PM to newly registered members?';
$txt['pm_register_id'] = 'ID of the member to send PM as';
$txt['pm_register_id_desc'] = 'This is the user profile that will be loaded when the PM is sent.  To set as a guest sent PM set it to 0.';
$txt['pm_register_from'] = 'Send PM to newly registered member as';
$txt['pm_register_from_desc'] = 'This is the username that will appear when the PM is sent.';
$txt['pm_register_subject'] = 'The subject of the PM';
$txt['pm_register_body'] = 'The content of the PM goes here';
$txt['pm_register_body_desc'] = 'This is where you type 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>{$boardname}</b>".';
$txt['pm_register_body_sample'] = 'This is a sample message.' ."\n\n". 'Hello {$username}, welcome to {$boardname}.  That will output Hello "username", welcome to "forum_name".';


            $txt['twitter_title'] = 'Twitter';
            $txt['twitter_desc'] = 'Enter your USERNAME on Twitter (i.e. if your Twitter link is http://www.twitter.com/john_doe, enter john_doe here)';
            ?>
--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version