Module Gallery 2.0.1 Errors

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
quethiock
Forum Members
Forum Members
Posts: 42
Joined: Mon Jun 16, 2008 5:18 am

Module Gallery 2.0.1 Errors

Post by quethiock »

Hi

Getting a series of errors when updating a Gallery. After changing the choice of template, or saving a Gallery, on pressing Save I get the following error messages above the CMS Admin Menu items .. but the odd thing is the Save takes effect - i.e. the change I have made works OK so it looks to me like it is trying to do the same operation twice.

So, the Error Mesages:

Code: Select all

Warning: Cannot modify header information - headers already sent by (output started at /home/imtdorgu/public_html/admin4rt8hHuib654/moduleinterface.php:99) in /home/imtdorgu/public_html/include.php on line 96
Warning: Cannot modify header information - headers already sent by (output started at /home/imtdorgu/public_html/admin4rt8hHuib654/moduleinterface.php:99) in /home/imtdorgu/public_html/include.php on line 99
Warning: Cannot modify header information - headers already sent by (output started at /home/imtdorgu/public_html/admin4rt8hHuib654/moduleinterface.php:99) in /home/imtdorgu/public_html/include.php on line 102
Warning: Cannot modify header information - headers already sent by (output started at /home/imtdorgu/public_html/admin4rt8hHuib654/moduleinterface.php:99) in /home/imtdorgu/public_html/include.php on line 103
Warning: Cannot modify header information - headers already sent by (output started at /home/imtdorgu/public_html/admin4rt8hHuib654/moduleinterface.php:99) in /home/imtdorgu/public_html/include.php on line 106
Warning: Cannot modify header information - headers already sent by (output started at /home/imtdorgu/public_html/admin4rt8hHuib654/moduleinterface.php:99) in /home/imtdorgu/public_html/include.php on line 109
And Lines 89 to 110 of Include.php file:

Code: Select all

if( isset($CMS_ADMIN_PAGE) )
  {
    function cms_admin_sendheaders($content_type = 'text/html',$charset = '')
    {
      if( !$charset ) $charset = get_encoding();

      // Date in the past
      header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");

      // always modified
      header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
 
      // HTTP/1.1
      header("Cache-Control: no-store, no-cache, must-revalidate");
      header("Cache-Control: post-check=0, pre-check=0", false);

      // HTTP/1.0
      header("Pragma: no-cache");
        
      // Language shizzle
      header("Content-Type: $content_type; charset=$charset");
    } 
Line 22 of moduleintrerface.php (the only 'operational' line):

Code: Select all

include_once(dirname(__FILE__) . '/index.php');
My Config file (with Pretty URL's enabled):

Code: Select all

<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config['dbms'] = 'mysql';
$config['db_hostname'] = 'localhost';
$config['db_username'] = '****';
$config['db_password'] = '****';
$config['db_name'] = '****';
$config['db_prefix'] = 'cms_';
$config['db_port'] = 0;
$config['root_url'] = 'http://www.imtd.org.uk';
$config['timezone'] = 'Europe/London';
$config['default_encoding'] = 'utf-8';
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.html';
$config['use_hierarchy'] = '1';
$config['query_var'] = 'page';
$config['admin_dir'] = 'xxxxxxxxxxxxxxxx';
# $config['admin_dir'] = 'admin';
# $config['debug_to_log'] = '1';
# $config['debug'] = '1';
?>
I have the following Installation Information:

Code: Select all

CMS Install Information
CMS Version 		1.11.11

Installed Modules
CMSMailer 		5.2.2
CMSPrinting 		1.0.5
SEOTools2 		1.2.1
MenuManager 		1.8.6
MicroTiny 		1.2.7
ModuleManager 		1.5.8
News 		2.14.4
Search 		1.7.11
ThemeManager 		1.1.8
FormBuilder 		0.7.3
Captcha 		0.4.6
CGExtensions 		1.42.2
FrontEndUsers 		1.24.1
CustomContent 		1.10
FileManager 		1.4.5
NMS 		2.4.3
Gallery 		2.0.1
Uploads 		1.18.4
CGSimpleSmarty 		1.7.4
I re-installed the website this morning from scratch (apart from the MySQL Database contents) hoping a fresh install would clear it but no luck so it has to be somewhere else. I have been puzzling over this for a few weeks now and finally it's got to me. Any help/pointers would be very much appreciated.

Regards

Mike
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: Module Gallery 2.0.1 Errors

Post by staartmees »

what's your php-version?
quethiock
Forum Members
Forum Members
Posts: 42
Joined: Mon Jun 16, 2008 5:18 am

Re: Module Gallery 2.0.1 Errors

Post by quethiock »

Version 5.3.29

Hope that helps!

Regards

Mike
quethiock
Forum Members
Forum Members
Posts: 42
Joined: Mon Jun 16, 2008 5:18 am

Re: Module Gallery 2.0.1 Errors

Post by quethiock »

Just seen other information posted in a different query, so:

Current PHP Version - 5.3.29
Server Database Version - 5.5.37
Running on Apache
Server Operating System - linux 2.6.18-371.4.1.el5 on x86_64

Don't know if that helps further.

Regards

Mike
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: Module Gallery 2.0.1 Errors

Post by staartmees »

You don't get Errors but Warnings. "Notices aren't errors. Disable php error reporting (at least for notices) and probably the other warnings are gone too."
http://forum.cmsmadesimple.org/viewtopi ... 5&p=311780
quethiock
Forum Members
Forum Members
Posts: 42
Joined: Mon Jun 16, 2008 5:18 am

Re: Module Gallery 2.0.1 Errors

Post by quethiock »

Ahh - yes - I assumed they were "errors" but as you say, they are Warnings and it does say that the changes have been successfully made.

I hope I'm not missing something obvious here and it's a stupid question but how do you disable php error reporting please?

I've looked through all the CMSMS admin pages and I can't see anything about error reporting, my webspace runs (or is administered under) cPanel and I can't see an option there. I did have two debug commands in the config.php file but they were commented out anyway:

Code: Select all

# $config['debug_to_log'] = '1';
# $config['debug'] = '1';
Just in case, I totally removed those two lines but no change - still getting the Warning. I then added a line:

Code: Select all

$config['debug'] = false;
In the hope that that would fix it but no success again. :(

I'm getting stumped now.

Regards

Mike
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: Module Gallery 2.0.1 Errors

Post by staartmees »

quethiock
Forum Members
Forum Members
Posts: 42
Joined: Mon Jun 16, 2008 5:18 am

Re: Module Gallery 2.0.1 Errors

Post by quethiock »

Thanks for that staartmees. Unfortunately that option isn't available in my cPanel - no Arvixe options at all. I can't even look and see what options are set in php.ini. :( There is an non-editable list of the most significant settings but not error reporting.

I will have to raise a Support Question with my ISP.

Thanks for your help staartmees.

Regards

Mike
Post Reply

Return to “Modules/Add-Ons”