Jump to content

[Resolved] Errors appearing on website load


moodybear

Recommended Posts

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"

 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites


<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! 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...