stylesheets not loading without debugmode

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
MaKK0
Forum Members
Forum Members
Posts: 17
Joined: Thu Jun 05, 2008 7:59 am

stylesheets not loading without debugmode

Post by MaKK0 »

I did an upgrade to the latest version of CMS made simple, but now things arent working as before the upgrade.

I already solved some of theproblems, but i can't figure out why the stylesheets aren't loading if debug mode is disabled. In both admin panel and frontend. If enabled, the stylesheets are loading.

Errors are:

<b>Notice</b>: Undefined index: news_url in <b>/httpdocs/modules/News/action.default.php</b> on line <b>344</b><br />

<br />
<b>Notice</b>: Undefined index: news_url in <b>/httpdocs/modules/News/action.default.php</b> on line <b>344</b><br />
<br />
<b>Notice</b>: Undefined index: news_url in <b>httpdocs/modules/News/action.default.php</b> on line <b>344</b><br />
<br />

<b>Notice</b>: Undefined index: news_url in <b>httpdocs/modules/News/action.default.php</b> on line <b>344</b><br />
<br />
<b>Notice</b>: Undefined index: news_url in <b>httpdocs/modules/News/action.default.php</b> on line <b>344</b><br />
<br />
<b>Notice</b>: Undefined index: detailpage in <b>httpdocs/modules/News/News.module.php</b> on line <b>853</b><br />



Website address is http://www.satellietgroep.nl

Any suggestions?


Some information about the system/software:
----------------------------------------------

Cms Version: 1.9.2

Installed Modules:

* CMSMailer: 2.0
* FileManager: 1.0.3
* MenuManager: 1.7.4
* ModuleManager: 1.4
* News: 2.11
* nuSOAP: 1.0.2
* Printing: 1.1.1
* Search: 1.6.8
* ThemeManager: 1.1.3
* TinyMCE: 2.8.2
* CGExtensions: 1.22.1
* Album: 0.9.3
* Comments: 1.9.2


Config Information:

* php_memory_limit:
* process_whole_template: false
* output_compression: false
* max_upload_size: 2000000
* default_upload_permission: 664
* url_rewriting: mod_rewrite
* page_extension:
* query_var: page
* image_manipulation_prog: GD
* auto_alias_content: true
* locale:
* default_encoding:
* admin_encoding: utf-8
* set_names: false


Php Information:

* phpversion: 5.2.16
* md5_function: On (True)
* gd_version: 2
* tempnam_function: On (True)
* magic_quotes_runtime: Off (False)
* E_STRICT: 0
* memory_limit: 256M
* max_execution_time: 300
* output_buffering: 4096
* safe_mode: Off (False)
* file_uploads: On (True)
* post_max_size: 100M
* upload_max_filesize: 200M
* session_save_path: No check because open basedir active
* session_use_cookies: On (True)
* xml_function: On (True)


Server Information:

* Server Api: apache2handler
* Server Db Type: MySQL (mysql)
* Server Db Version: 5.1.54


----------------------------------------------
User avatar
jissey
Forum Members
Forum Members
Posts: 61
Joined: Sun Jul 18, 2010 12:17 pm
Location: South of France

Re: stylesheets not loading without debugmode

Post by jissey »

Hi,
try this: error_reporting(E_ALL ^ E_NOTICE); in an UDT
or if you can in php.ini file: error_reporting = E_ALL & ~E_NOTICE
Check for the register_globals directive to (it must be at off).
MaKK0
Forum Members
Forum Members
Posts: 17
Joined: Thu Jun 05, 2008 7:59 am

Re: stylesheets not loading without debugmode

Post by MaKK0 »

thanks for your reply!

Tried making an UDT with "error_reporting(E_ALL ^ E_NOTICE)" as content, and "errorreporting" as name, but it gives an error:

* Invalid code entered.
* Parse error: syntax error, unexpected '}' in httpdocs/admin/adduserplugin.php(100) : eval()'d code on line 1

(Troubleshooting)

Can you be a bit more detailed? Can't figure out what I have to do exactly :)

Thanks!
User avatar
jissey
Forum Members
Forum Members
Posts: 61
Joined: Sun Jul 18, 2010 12:17 pm
Location: South of France

Re: stylesheets not loading without debugmode

Post by jissey »

Then, you can:
-Try to put the code in your config.php, it was not a good idea in an UDT. Remember:

Code: Select all

error_reporting(E_ALL ^ E_NOTICE);
See http://fr.php.net/manual/en/function.er ... orting.php

-Or put this in your .htaccess file

Code: Select all

php_value error_reporting 8191
-Or better if you have access to the php.ini (if your are on a dedicated or virtual server), verify the directive and correct it if necessary.

Hope it will help you.
MaKK0
Forum Members
Forum Members
Posts: 17
Joined: Thu Jun 05, 2008 7:59 am

Re: stylesheets not loading without debugmode

Post by MaKK0 »

Can you tell me what it does? Because I have put the code after <?php in the config.php but nothing happens...

I can't access php.ini
User avatar
jissey
Forum Members
Forum Members
Posts: 61
Joined: Sun Jul 18, 2010 12:17 pm
Location: South of France

Re: stylesheets not loading without debugmode

Post by jissey »

It normaly turns off the display of "notices errors" from PHP.
You must have:

Code: Select all

<?php
error_reporting(E_ALL ^ E_NOTICE);
#CMS Made Simple Configuration File
#Please clear the cache (Site Admin->Global Settings in the admin panel)
#after making any changes to path or url related options

#-----------------
#Behaviour Settings
#-----------------
......
If it has no effect, try the .htaccess solution.
Add the corresponding directive in your existing .htaccess file at the root of your site.
MaKK0
Forum Members
Forum Members
Posts: 17
Joined: Thu Jun 05, 2008 7:59 am

Re: stylesheets not loading without debugmode

Post by MaKK0 »

To bad, both arent working. But i am more looking for a solution that the css is loaded while NOT being in debug mode :)

Someone?
MaKK0
Forum Members
Forum Members
Posts: 17
Joined: Thu Jun 05, 2008 7:59 am

Re: stylesheets not loading without debugmode

Post by MaKK0 »

After the upgrade from an old CMSMS installation to the latest version, i discovered a couple problems. Found the solutions on the forum and the internet and some logical thinking.

Weird characters

First i had the problem that there were some strange characters in the beginning of the page. It had something todo with Mac osc / cyberduck and hidden ._files wich the FTP program was uploading. After deleting the ._ files on the FTP server, the characters disappeared. *solved*

CSS not loading
Changing {stylesheet} to {cms_stylesheet} solved my problems, the CSS is loading in the frontend Wahoo! But, in the Admin it still wasn't loading. So I had to change lib/classes/class.admintheme.inc.php

from

Code: Select all

<link rel="stylesheet" type="text/css" href="style.php" />
to

Code: Select all

<link rel="stylesheet" type="text/css" href="http://www.domain.nl/admin/themes/default/css/style.css" />
The last problem i walked in to: TinyMCE not loading. Solution was enabling "static" in the advanced settings of TinyMCE.

Thanks!
brawsky

Re: stylesheets not loading without debugmode

Post by brawsky »

Thanks for the info :) :)
Locked

Return to “CMSMS Core”