Not logged in. · Lost password · Register
Forum: General Help and Support General Stuff RSS
Css disappear
Avatar
Nickko #1
User title: Ergonome
Member since Oct 2007 · 627 posts · Location: Bruxelles
Group memberships: Local Moderators, Members
Show profile · Link to this post
Subject: Css disappear
On my wiki : http://wiki.usability.fr/doku.php
Css and formating disappear, I fix the problem by emptying the cache on the server (data/cache/) but few seconds after the problem reappear.
Nickko
Ergonome / Usability expert

http://nickko.be
http://www.usability.fr/
Avatar
andi (Administrator) #2
User title: splitbrain
Member since May 2006 · 3500 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
http://wiki.usability.fr/lib/exe/css.php returns a blank page which usually means a fatal PHP error occured. Check your error logs to find out what happend. Probably the function that is used to deliver the cached CSS fails. Maybe some needed PHP functions are disabled by your hoster? Anyway check your webserver error logs.
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Avatar
Nickko #3
User title: Ergonome
Member since Oct 2007 · 627 posts · Location: Bruxelles
Group memberships: Local Moderators, Members
Show profile · Link to this post
Thank's Andi, my host is 1&&, i don't think he disabled any PHP function, but i go check.
When you say "Check your error logs" witch errors logs is it. I don't have errors logs on my server, they have errors logs in dokuwiki ?
Nickko
Ergonome / Usability expert

http://nickko.be
http://www.usability.fr/
Avatar
andi (Administrator) #4
User title: splitbrain
Member since May 2006 · 3500 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
webserver error logs. Ask your provider for them if you can't find them somewhere in your FTP account or hosting control panel.
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Avatar
Nickko #5
User title: Ergonome
Member since Oct 2007 · 627 posts · Location: Bruxelles
Group memberships: Local Moderators, Members
Show profile · Link to this post
Ok, thanks

Edit : I have found this script for generate error.log on my hosting (1&1) :
http://faq.1and1.fr/scripts/php/exemples/4.html

<?php
  error_reporting(0);
  $old_error_handler = set_error_handler("userErrorHandler");

  function userErrorHandler ($errno, $errmsg, $filename, $linenum, $vars) {
    $time=date("d M Y H:i:s");
    // Get the error type from the error number
    $errortype = array (1    => "Error",
                        2    => "Warning",
                        4    => "Parsing Error",
                        8    => "Notice",
                        16   => "Core Error",
                        32   => "Core Warning",
                        64   => "Compile Error",
                        128  => "Compile Warning",
                        256  => "User Error",
                        512  => "User Warning",
                        1024 => "User Notice");

  $errlevel=$errortype[$errno];

  //Write error to log file (CSV format)
  $errfile=fopen("errors.csv","a");
  fputs($errfile,"\"$time\",\"$filename: $linenum\",\"($errlevel) $errmsg\"\r\n");
  fclose($errfile);

  if($errno!=2 && $errno!=8) {
    //Terminate script if fatal errror
    die("A fatal error has occured. Script execution has been aborted");
    }
  }

?>

I test that this evening.
Nickko
Ergonome / Usability expert

http://nickko.be
http://www.usability.fr/
This post was edited on 2009-09-07, 17:48 by Nickko.
Avatar
Nickko #6
User title: Ergonome
Member since Oct 2007 · 627 posts · Location: Bruxelles
Group memberships: Local Moderators, Members
Show profile · Link to this post
I have try the previous script but no errors.csv was crated.
Nickko
Ergonome / Usability expert

http://nickko.be
http://www.usability.fr/
Avatar
Nickko #7
User title: Ergonome
Member since Oct 2007 · 627 posts · Location: Bruxelles
Group memberships: Local Moderators, Members
Show profile · Link to this post
I have my error log :

"10 Sep 2009 21:03:31","/homepages/.../htdocs/wiki/inc/init.php: 530","(Notice) Undefined index:  DOKU_UNITTEST_ASSUME_WINDOWS"

"10 Sep 2009 21:03:31","/homepages/.../htdocs/wiki/inc/init.php: 168","(Warning) ini_set() [<a href='ref.outcontrol'>ref.outcontrol</a>]: Cannot change zlib.output_compression - headers already sent"

"10 Sep 2009 21:03:31","/homepages/.../htdocs/wiki/inc/init.php: 214","(Notice) Undefined index:  purge"

"10 Sep 2009 21:03:31","/homepages/.../htdocs/wiki/inc/init.php: 530","(Notice) Undefined index:  DOKU_UNITTEST_ASSUME_WINDOWS"
Nickko
Ergonome / Usability expert

http://nickko.be
http://www.usability.fr/
Avatar
andi (Administrator) #8
User title: splitbrain
Member since May 2006 · 3500 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by Nickko:
"10 Sep 2009 21:03:31","/homepages/.../htdocs/wiki/inc/init.php: 168","(Warning) ini_set() [<a href='ref.outcontrol'>ref.outcontrol</a>]: Cannot change zlib.output_compression - headers already sent"

That's the one causing the trouble I guess.  http://www.dokuwiki.org/faq:blankpage might have a tip for you
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Avatar
Nickko #9
User title: Ergonome
Member since Oct 2007 · 627 posts · Location: Bruxelles
Group memberships: Local Moderators, Members
Show profile · Link to this post
I have just re-install the dokuwiki and it seem to work now.
Nickko
Ergonome / Usability expert

http://nickko.be
http://www.usability.fr/
Avatar
Nickko #10
User title: Ergonome
Member since Oct 2007 · 627 posts · Location: Bruxelles
Group memberships: Local Moderators, Members
Show profile · Link to this post
Thank's Andi
Nickko
Ergonome / Usability expert

http://nickko.be
http://www.usability.fr/
Avatar
Nickko #11
User title: Ergonome
Member since Oct 2007 · 627 posts · Location: Bruxelles
Group memberships: Local Moderators, Members
Show profile · Link to this post
In reply to post #8
Quote by andi on 2009-09-10, 23:45:
That's the one causing the trouble I guess.  http://www.dokuwiki.org/faq:blankpage might have a tip for you

I have see this page :

findbadphp.php says :
starting...
/homepages/25/d144922175/htdocs/wiki/conf/acl.auth.php doesn't start with <?php
/homepages/25/d144922175/htdocs/wiki/conf/users.auth.php doesn't start with <?php
/homepages/25/d144922175/htdocs/wiki/lib/images/fileicons/index.php doesn't start with <?php
/homepages/25/d144922175/htdocs/wiki/lib/plugins/linkmanager/filemanager.php doesn't start with <?php
/homepages/25/d144922175/htdocs/wiki/lib/tpl/default/mediamanager.php doesn't start with <?php
/homepages/25/d144922175/htdocs/wiki/lib/tpl/arctic/detail.php doesn't start with <?php
/homepages/25/d144922175/htdocs/wiki/lib/tpl/arctic/mediamanager.php doesn't start with <?php
/homepages/25/d144922175/htdocs/wiki/lib/tpl/dokubook/mediamanager.php doesn't start with <?php
/homepages/25/d144922175/htdocs/wiki/lib/tpl/minimalmobile/mediamanager.php doesn't start with <?php
/homepages/25/d144922175/htdocs/wiki/lib/tpl/monobook/do_detail.php doesn't start with <?php
/homepages/25/d144922175/htdocs/wiki/lib/tpl/monobook/do_media.php doesn't start with <?php
/homepages/25/d144922175/htdocs/wiki/lib/tpl/sidebar/detail.php doesn't start with <?php
/homepages/25/d144922175/htdocs/wiki/lib/tpl/sidebar/main.php doesn't start with <?php
/homepages/25/d144922175/htdocs/wiki/lib/tpl/sidebar/media.php doesn't start with <?php
/homepages/25/d144922175/htdocs/wiki/lib/tpl/sidebar/mediaedit.php doesn't start with <?php
/homepages/25/d144922175/htdocs/wiki/lib/tpl/sidebar/mediaref.php doesn't start with <?php
finished...

But it's justified for this pages.

I have no suhosin and varfilter modules

When i type this adresse : http://wiki.usability.fr/lib/exe/css.php i get a blank page
When i type this adresse : http://wiki.usability.fr/lib/exe/css.php?purge=true the page is normal.

why ? how can i resolve the problem ?
Nickko
Ergonome / Usability expert

http://nickko.be
http://www.usability.fr/
Avatar
Sabbasth #12
Member since Jun 2010 · 1 post
Group memberships: Members
Show profile · Link to this post
Hi,

I have a similar problem as described by Nickoo previously.
Dokuwiki is running on Apache/2.2.4 and FreeBSD 8.0

Dokuwiki worked perfectly since nearly a year (we currently have the last version). There's nearly a month ago we made some modifications on our webservices. I modified some modules on Apache and made a pass on the dokuwiki configuration (activating xml-RPC and modified other options).
I suspect the changes I made on Apache to be the problem, but on the test server I have the same problem and can't find the answer.

Here are my tests to point the problem :

- When the problem occurs, I start another browser (Firefox instead of Opera) and the problem is there also.
- If I change css/cache related options it works some time (cache time, template, CSS compression, etc.)

- Launched the findbadphp script with no related errors :
starting...
/usr/local/www/intranet/lib/images/fileicons/index.php doesn't start with <?php
/usr/local/www/intranet/lib/tpl/default/mediamanager.php doesn't start with <?php
/usr/local/www/intranet/lib/tpl/cyanide/mediamanager.php doesn't start with <?php
/usr/local/www/intranet/conf/users.auth.php doesn't start with <?php
/usr/local/www/intranet/conf/acl.auth.php doesn't start with <?php
/usr/local/www/intranet/bin/wantedpages.php doesn't start with <?php
/usr/local/www/intranet/bin/dwpage.php doesn't start with <?php
/usr/local/www/intranet/bin/indexer.php doesn't start with <?php
finished...
- I have nothing in the log files related to php, with LogLevel debug

- Everything is done with the default template
- Tried accessing css.php : blank page
- Tried accessing css.php&purge=1 : css is working.
- I hacked the css_cacheok function : the css are loaded
function css_cacheok($cache,$files,$tplinc){
    global $config_cascade;

    return false;
}

- The access log is a 200 OK status code, but an empty page is sent :
10.1.8.123 - - [24/Jun/2010:14:33:17 +0200] "GET /lib/exe/css.php HTTP/1.1" 200 -
and
10.1.8.123 - - [24/Jun/2010:14:35:49 +0200] "GET /lib/exe/css.php?purge=true HTTP/1.1" 200 29139
- I tried installing dokuwiki on another server (new machine, new webserver), same problem. Actually all my tests on this test server except the cache hack because we need dokuwiki.

The debug file is available here.
Avatar
hartmut71 #13
Member since Mar 2014 · 17 posts · Location: Ulm, Germany
Group memberships: Members
Show profile · Link to this post
Even if this topic is quite old, I've had the same problem tonight. And perhaps somebody else will dig into this problem, too.
Any CSS had disappeared: No fonts, No images, no colors. The Website looked quite "rude"  ;-)  

When I checked the ....../lib/exe/css.php  file in the browser, I obtained valid results, hundreds of lines of CSS, even the image links therein were perfectly valid. Then I purged any content in the data/cache folder. Then, after refreshing (F5) the browser, CSS and design were fine again, the problem completely solved.
This post was edited 3 times, last on 2014-04-26, 03:22 by hartmut71.
Avatar
Nickko #14
User title: Ergonome
Member since Oct 2007 · 627 posts · Location: Bruxelles
Group memberships: Local Moderators, Members
Show profile · Link to this post
It's perhaps a memory limit problem.
Nickko
Ergonome / Usability expert

http://nickko.be
http://www.usability.fr/
Rene #15
Member since Jan 2014 · 191 posts
Group memberships: Members
Show profile · Link to this post
These problems mostly arise when a file is broken/mutulated/blocked or missing, it normaly has nothing to do with Dokuwiki.

Purging the cache will help when you had not done things like : copying/uploading/ftp'ing.

If you did copying/uploading/ftp'ing probably a file is defect and you should do it again.
It often happens (in my case, because i copy a lot) when using ftp.
(Look at log files)
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-12-06, 09:19:07 (UTC +01:00)