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

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

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

Post 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]
Last edited by Rolf on Mon Jan 12, 2009 4:52 pm, edited 1 time in total.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
Edida
Power Poster
Power Poster
Posts: 408
Joined: Sun Jun 25, 2006 4:58 pm

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

Post 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.

::)  :-\
Edida
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

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

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

®
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

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

Post 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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

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

Post 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
Last edited by Anonymous on Thu Jan 15, 2009 4:38 pm, edited 1 time in total.
User avatar
Edida
Power Poster
Power Poster
Posts: 408
Joined: Sun Jun 25, 2006 4:58 pm

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

Post 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!  ???
Edida
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

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

Post 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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Locked

Return to “[locked] Installation, Setup and Upgrade”