Page 2 of 2

Re: Upgrade 1.4.1 -> 1.5.1 resulted in a small admin problem

Posted: Mon Jan 12, 2009 3:53 pm
by Rolf
humm  :-\

The php on the webserver is now 5.2.6, the helpdesk has changed is already.
But my adminpanel has no CSS anymore... Coincidence...  ???

Tried to change the admin theme, deleted the cache, no luck until now.

®


[edit]

When I change to ' display_errors = on ' the admin looks fine (even the breadcrumbs, we are getting somewhere!), but I get an error in the site:

Code: Select all


Warning: Parameter table_id is not known... dropped in /usr/local/WWW/A/.5c1/a/a/htdocs/lib/misc.functions.php on line 1347



php_errorlog looks like: http://forum.cmsmadesimple.org/index.ph ... 549.0.html
1. check your session_save_path and try to set

2. try this workaround, edit include.php:

@ini_set('session.use_trans_sid', 0);
#if(!@session_id())
#{
    #Trans SID sucks also...
    @ini_set('url_rewriter.tags', '');
    @ini_set('session.use_trans_sid', 0);
    @session_start();
    if( isset($CMS_ADMIN_PAGE) )
      {
        if( !isset($_SESSION[CMS_USER_KEY]) )
          {
            // maybe change this algorithm.
            $key = substr(str_shuffle(md5($dirname.time().session_id())),-8);
            $_SESSION[CMS_USER_KEY] = $key;
          }
      }
#}
Did not work for me...

Tried to search the forum, couldn't find something yet. Tonight another try, first have to eat  ;)

[/edit]

Re: Upgrade 1.4.1 -> 1.5.1 resulted in a small admin problem

Posted: Mon Jan 12, 2009 4:59 pm
by Edida
Hi Rolf,

How come I still have 4.4.9 in my system info?
Does xs4all change that person by person? I don't think that likely. Or?

Nothing changed at http://www.obsdetimp.nl.

::)  :-\

Re: Upgrade 1.4.1 -> 1.5.1 resulted in a small admin problem

Posted: Mon Jan 12, 2009 5:19 pm
by Rolf
Hey Edida,

you have to call yourself sometimes... :D It was done just for my site.
But wait untill I solved my next little problem!
We will keep in touch!

®

Re: Upgrade 1.4.1 -> 1.5.1 resulted in a small admin problem

Posted: Tue Jan 13, 2009 1:59 pm
by Rolf
Hey all.

Problem solved! The strange admin problem is solved by changing the PHP version to 5.2.6
I think you can say that CMSMS 1.5.1+ isn't working properly on old php versions anymore...
Who is keeping up the minimal requirements on http://wiki.cmsmadesimple.org/index.php ... quirements ?
Think this has to change...

The course of the CSS problem was the calendar module.
The upcominglist in the template had a: table_id="upcominglist"
I put this right into the calendar template.

Thanks Mark and Nullig for your assistance!

Edida, you can call xs4all and let them change your php-version also  ;)

Rolf  ;D

Re: [solved] Upgrade 1.4.1 -> 1.5.1 resulted in a small admin problem

Posted: Thu Jan 15, 2009 4:19 pm
by Dee
I encountered the same problem on a clean 1.5.1 install (all pages showing in the admin breadcrumbs), also on dutch xs4all hosting.
Before calling the helpdesk to upgrade to PHP5 I dug into it to see what was going wrong.

The problem is not in the PHP version, but the fact PHP runs as CGI, this causes $_SERVER['SCRIPT_NAME'] to always return /cgi-bin/php

Changing lib/classes/class.admintheme.inc.php line 125 from

Code: Select all

$this->url = $_SERVER['SCRIPT_NAME'];
to

Code: Select all

$this->url = $_SERVER['PATH_INFO'];
fixed the issue.

Regards,
D

Re: [solved] Upgrade 1.4.1 -> 1.5.1 resulted in a small admin problem

Posted: Thu Jan 15, 2009 5:16 pm
by Edida
YES! Dee,

This did the trick for me too!  ;D
Great, thanks,

So, Rolf, I think I just wait for XS4ALL to change the php at their time  :P

Saves me the cost of a phonecall,  :D

BTW Hope it will be automaticly changed in a new update!  ???

Re: [solved] Upgrade 1.4.1 -> 1.5.1 resulted in a small admin problem

Posted: Thu Jan 15, 2009 7:26 pm
by Rolf
Good to know what the real problem is!

I tried everything within my knowlegde. What Dee found is far beyond it. My compliments!
Changing the php version solved my problem, but so I understand it was more luck than wisedom...  ;)

But I learned a lot trying to find the problem !!!  :D
Saves me the cost of a phonecall
And yes Edida, you are really Dutch! :P hahaha 
See you the 24th at the cmsms-workshop in Rosmalen!  ;D


®olf