News:

Join the Facebook Fan Page.

Main Menu

Error installing packages

Started by Saintgrim, September 02, 2012, 04:02:33 AM

Previous topic - Next topic

Saintgrim

Here is my site, trying to finish installing my mods and I keep getting this at header

sglegendaryhacks.com


1.   cbi 1.0    1.7.5   [ Install Mod ] [ List Files ] [ Delete ]
2.   Thank-o-matic    3.0     [ Uninstall ] [ List Files ] [ Delete ]
3.   Global Headers Footers    2.0.1   [ Install Mod ] [ List Files ] [ Delete ]
4.   AJAX Recent Topics    1.1   [ Install Mod ] [ List Files ] [ Delete ]
5.   Thumbnail Topic Mod    1.2     [ Uninstall ] [ List Files ] [ Delete ]
6.   New Topic Button    1.0     [ Uninstall ] [ List Files ] [ Delete ]
7.   Ad Managment    3.0.1     [ Uninstall ] [ List Files ] [ Delete ]
8.   Regbar Warning    1.0.3     [ Uninstall ] [ List Files ] [ Delete ]
9.   Anti Bot: Are You Human/Bot?    3.0     [ Uninstall ] [ List Files ] [ Delete ]
10.   SimplePortal    2.3.5     [ Uninstall ] [ List Files ] [ Delete ]
11.   Spiders Don't Increase Topic Views    1.1.1     [ Uninstall ] [ List Files ] [ Delete ]
12.   Forum Firewall    1.1.5     [ Uninstall ] [ List Files ] [ Delete ]
13.   Disable Right Click    4.1.2   [ Install Mod ] [ List Files ] [ Delete ]
14.   Profile Comments    2.0.2     [ Uninstall ] [ List Files ] [ Delete ]
15.   AvatarSelect    1.2.1   [ Install Mod ] [ List Files ] [ Delete ]
16.   Bad Behavior mod    1.5.11     [ Uninstall ] [ List Files ] [ Delete ]
17.   Add to Existing Ban Group    1.0.3     [ Uninstall ] [ List Files ] [ Delete ]
18.   SMF Gallery Lite    3.1.4   [ Install Mod ] [ List Files ] [ Delete ]
19.   Downloads System    1.5.2   [ Install Mod ] [ List Files ] [ Delete ]

emanuele

Hello Saintgrim and welcome to sm.org.

One of the mods installed did put the text strings in the proper place.

Check your language files and search for text before the php opening tag ("<?php") or after the closing tag ("?>").

ETA: you can use this to find it http://www.simplemachines.org/community/index.php?topic=329069.0


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Saintgrim

Where would I find this at?

Edit: This is what I got

Below are the results of the scan

/home/sglegen5/public_html/forum/Sources/ForumFirewall.php
File does not end with ?>
/home/sglegen5/public_html/forum/Sources/smfhacks_source/regbar-warning.php
File does not end with ?>
/home/sglegen5/public_html/forum/Sources/smfhacks_source/index.php
File does not end with ?>
/home/sglegen5/public_html/forum/Sources/bad-behavior/BadBehavior-SMF.php
File does not end with ?>
/home/sglegen5/public_html/forum/Sources/ForumFirewall-Admin.php
File does not end with ?>
/home/sglegen5/public_html/forum/Sources/BadBehavior-mysql.php
File does not end with ?>
/home/sglegen5/public_html/forum/Themes/default/images/smfhacks_images/index.php
File does not end with ?>
/home/sglegen5/public_html/forum/Themes/default/css/smfhacks_css/index.php
File does not end with ?>
/home/sglegen5/public_html/forum/Themes/default/smfhacks_templates/regbar-warning.template.php
File does not end with ?>
/home/sglegen5/public_html/forum/Themes/default/smfhacks_templates/index.php
File does not end with ?>
/home/sglegen5/public_html/forum/Themes/default/languages/smfhacks_languages/regbar-warning.english-utf8.php
UTF-8 BOM found
File does not end with ?>
/home/sglegen5/public_html/forum/Themes/default/languages/smfhacks_languages/regbar-warning.english.php
File does not end with ?>
/home/sglegen5/public_html/forum/Themes/default/languages/smfhacks_languages/index.php
File does not end with ?>
/home/sglegen5/public_html/forum/Themes/default/languages/ff_firewall.spanish_es-utf8.php
UTF-8 BOM found
/home/sglegen5/public_html/forum/Themes/default/languages/Modifications.english.php
File does not end with ?>

emanuele



Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

MrPhil

What are you getting at the top of your page? Is it something like a block of PHP statements of the form
$txt['element_name'] = 'Some string';
? If so, a mod installation incorrectly dropped a block of PHP code outside of the existing PHP block. Once you find it (by searching for the strings you see on your screen), simply wrap the block of statements in <?php and ?> tags (if you don't understand how to merge them into an existing PHP block). Note that if these lines were placed at the beginning of the file, the utility you used might not have picked them up, and you will need to search for them. Just search all .php files for one of the message strings you see on-screen and that's it. You can use Windows File Search on your PC, or the grep utility on either a Linux server (preinstalled) or on Windows (you'll have to download and install). Either way, you need to learn how to search for text strings in your files.

Your listing there shows a couple of files with UTF-8 BOM (Byte Order Marks), due to improper editing. These will cause problems with "cannot modify header" or similar errors. You need to edit those files with a plain text editor (ViM or Notepad++) and simply resave them without BOM. The alternative is to edit them in a non-UTF-8 mode on your PC or control panel (so you can see the three characters at the very beginning of the file) and delete the three characters and save the file.

The other reported files not ending in ?> may or may not cause problems. It's possible that they will, and you'll need to add a ?> at the very end of the file (with nothing after it). Wait until you actually get errors reported before fooling with the code this way.

Advertisement: