moodybear Posted September 23, 2016 Share Posted September 23, 2016 I'm getting these two errors when I open my main page, and something has happened with an "A" appearing before the £ on each item. Anyone help? "Warning: ini_set(): Cannot change zlib.output_compression - headers already sent in /home/moodybear/public_html/themoodybear/ini.inc.php on line 36 Warning: Cannot modify header information - headers already sent by (output started at /home/moodybear/public_html/themoodybear/index.php:11) in /home/moodybear/public_html/themoodybear/index.php on line 26" Quote Link to comment Share on other sites More sharing options...
bsmither Posted September 23, 2016 Share Posted September 23, 2016 Please examine carefully the file /index.php, to see if there is anything on line 10 or 11. What we are looking for is the closing PHP Code closing delimiter. That would be ?>. PHP code is always contained within <?php and ?>. Generally, the closing delimiter is not always required if there is no mixture of PHP code and stuff that actually gets sent to the web browser. So, if there is a closing delimiter, ?>, then what follows in that file, even if it is a blank line or a space character, that gets sent to the web browser and, as a result of that, so do the response headers. Headers cannot be sent more than once. Quote Link to comment Share on other sites More sharing options...
moodybear Posted September 23, 2016 Author Share Posted September 23, 2016 <div style="width: 100px; height: 20px; line-height: 20px; overflow: hidden;"> <br /> <a href="http://www.wigcited.com/">Real hair wigs</a> <a href="http://www.wigcited.com/">Human Hair Wigs</a> <a href="http://www.ami-sa.com/index2.html/">Real Hair Wigs</a> </div> <?php /** * CubeCart v6 * ======================================== * CubeCart is a registered trade mark of CubeCart Limited * Copyright CubeCart Limited 2015. All rights reserved. * UK Private Limited Company No. 5323904 * ======================================== * Web: http://www.cubecart.com * Email: [email protected] * License: GPL-3.0 https://www.gnu.org/licenses/quick-guide-gplv3.html */ require dirname(__FILE__).DIRECTORY_SEPARATOR.'ini.inc.php'; define('CC_IN_ADMIN', false); header('X-Frame-Options: SAMEORIGIN'); // do not allow iframes global $config_default; include CC_ROOT_DIR.CC_DS.'controllers'.CC_DS.'controller.index.inc.php'; $GLOBALS['smarty']->display('templates/'.$global_template_file); So this is what I see when I open index.php it appears something has tagged onto my site with human hair wigs! Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted September 23, 2016 Share Posted September 23, 2016 Are you still on CC version 5.2.5 or is that the skin version?Take a look in your Hooks>Snippets file to see if there is anything there you don't recognize. Quote Link to comment Share on other sites More sharing options...
moodybear Posted September 23, 2016 Author Share Posted September 23, 2016 I updated to V6.0.12 last week.. I've never looked in Snippets before, or used them... Quote Link to comment Share on other sites More sharing options...
bsmither Posted September 23, 2016 Share Posted September 23, 2016 Please use an external database utility such as phpMyAdmin (usually available in your hosting account's control panel) to examine the database table CubeCart_code_snippet. Delete every row in that table. Then, using the File Explorer in the hosting account's control panel, look in the folder /includes/extra/ and delete any file that starts with snippet_. Take note of the file index.php and note the "Last Modified Date" of that file (if possible). You will be looking for other files that have the same date. These may have been damaged. Of course, remove the bad code from index.php by deleting everything up to the <?php. Quote Link to comment Share on other sites More sharing options...
moodybear Posted September 23, 2016 Author Share Posted September 23, 2016 Thanks guys removed snippets, and the code and working great again! I now know what I need to look for.. Will check through all the files.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.