[Upgrade-Problem] Fatal error: Call to a member function on a non-object...

Hilfe zur Installation
Post Reply
ezzemm

[Upgrade-Problem] Fatal error: Call to a member function on a non-object...

Post by ezzemm »

Hallo zusammen!
Erstmal ein großes Lob an die Programmierer des CMSMS für dieses tolle CMS und dieses Forum, daß mir schon oft weitergeholfen hat.
Nun habe ich leider folgendes Problem:

Bei dem Upgrade von 0.11.2 auf 0.13 ist irgendwas passiert; wenn ich auf "Inhalt->Seiten" klicke, kommt folgende Fehlermeldung:
Fatal error: Call to a member function on a non-object in /homepages/23/d18758287/htdocs/cms/lib/classes/class.content.inc.php on line 2139

Vielleicht hilft die Info, daß ich das CMSMS mit 0.11.1 installiert habe, dann auf 0.11.2 und nun eben auf 0.13
Ich habe die Datei mal angehängt (das .txt löschen). Die Suchfunktion im Forum habe ich schon benutzt, nur eine Lösung habe ich leider nicht gefunden. (Meine Fähigkeiten bzgl. PHP sind leider auch sehr begrenzt)

Viele Grüße, ezzemm

[attachment deleted by admin]
cyberman

Re: [Upgrade-Problem] Fatal error: Call to a member function on a non-object...

Post by cyberman »

ezzemm wrote: Vielleicht hilft die Info, daß ich das CMSMS mit 0.11.1 installiert habe, dann auf 0.11.2 und nun eben auf 0.13
Dazwischen gab es noch die 0.12  ;D ...

Spass beiseite - wie genau hast du die jeweiligen Versionen installiert? Einfach nur die Dateien drübergebügelt oder auch ein Upgrade der Datenbank gemacht (./install/upgrade.php)?
ezzemm

Re: [Upgrade-Problem] Fatal error: Call to a member function on a non-object...

Post by ezzemm »

Servus :))

Die 0.12 habe ich ausgelassen. Ich wollte ein produktives System nicht ändern, wenn kein Not am Mann ist. Da ich aber ein Berechtigungssystem einbauen muß, und FrontendUsers 0.13 braucht, wars nun an der Zeit ;)

Zu deiner Frage: Ich habe jeweils das Upgrade durchgeführt mittels upgrade.php
Zumindest bei 0.11.2->0.13; bei 0.11.1 auf 0.11.2 bin ich mir nicht so sicher. Damals habe ich gerade erst angefangen, mich in das CMSMS, und in PHP-Anwendungen überhaupt, einzuarbeiten.

Gruß, ezzemm
ezzemm

Re: [Upgrade-Problem] Fatal error: Call to a member function on a non-object...

Post by ezzemm »

Kann mir keiner helfen?  :'(
User avatar
quadracer
Forum Members
Forum Members
Posts: 44
Joined: Wed Apr 26, 2006 9:59 am

Re: [Upgrade-Problem] Fatal error: Call to a member function on a non-object...

Post by quadracer »

Can read german better than write - sorry for the englisch reply.

If I've understand right your new/upgraded 0.13 installation works, only on content -> pages there you have a problem.

Please try this:

- Make a backup from your current database (http://dev.cmsmadesimple.org/projects/databasebackup/)
- create a fresh (not upgraded) cmsms installation in your test area (local xampp server for instance)
- install the used modules/plugins from your 0.11 installation
- import the backup

If it works now you have "only" an upgrade problem. Then you can repeat this with your current (online) installation.

There are a lot of changes between 0.11 and 0.13 so an upgrade can be difficult sometimes.
ezzemm

Re: [Upgrade-Problem] Fatal error: Call to a member function on a non-object...

Post by ezzemm »

Hello Quadracer, thank you for your help :)

On your advert, I did following:
- I installed on my 2nd SQL-DB a testinstallation with 0.13
- with Backup0.5 I restored my Backup of my ProductiveSystem I made with Backup0.4
- This worked, but I klick on "Content->Pages", I recieve the old message
Fatal error: Call to a member function on a non-object in /homepages/23/d18758287/htdocs/cms_test/lib/classes/class.content.inc.php on line 2139

Then I did following:
- I installed on my 2nd SQL-DB a testinstallation with 0.11.2
- with Backup0.4 I restored my Backup of my ProductiveSystem I made with Backup0.4
- I deleted Backup0.4 and installed Backup0.5
- Then I want to make a Backup, but I received following message:
Fatal error: Call to undefined function: getdb() in /homepages/23/d18758287/htdocs/cms_test/modules/Backup/Backup.module.php on line 232

And then I did following:
- I installed on my 2nd SQL-DB a testinstallation with 0.13
- with Backup0.4 I restored my Backup of my ProductiveSystem I made with Backup0.4
- This worked, but I klick on "Content->Pages", I recieve the old message
Fatal error: Call to a member function on a non-object in /homepages/23/d18758287/htdocs/cms_test/lib/classes/class.content.inc.php on line 2139

What can I do else?  :'(
User avatar
quadracer
Forum Members
Forum Members
Posts: 44
Joined: Wed Apr 26, 2006 9:59 am

Re: [Upgrade-Problem] Fatal error: Call to a member function on a non-object...

Post by quadracer »

Hmm, but a fresh installation works?
Which modules you are using?
Have you installed some other exotic modules?
Have you changed something in source?
ezzemm wrote: Fatal error: Call to a member function on a non-object in /homepages/23/d18758287/htdocs/cms_test/lib/classes/class.content.inc.php on line 2139
Line 2139 told this

Code: Select all

            while ($currentNode->getLevel()!=$curlevel) {
Don't know if there are some changes from 0.11.2 to 0.13
- Then I want to make a Backup, but I received following message:
Fatal error: Call to undefined function: getdb() in /homepages/23/d18758287/htdocs/cms_test/modules/Backup/Backup.module.php on line 232
If I'm right backup version 0.5 is a customized version for adodb lite so CMSms 0.11.2 can't understand this.
What can I do else?
Have you tried to import only the content database table manually (with phpmyadmin)?

Have you tried an update to version 0.12.1 before?
Last edited by quadracer on Sun Jul 09, 2006 9:33 am, edited 1 time in total.
ezzemm

Re: [Upgrade-Problem] Fatal error: Call to a member function on a non-object...

Post by ezzemm »

Hello Quadracer :)

On your advert, I did following:
- I installed on my 2nd SQL-DB a testinstallation with 0.11.2
- with Backup0.4 I restored my Backup of my ProductiveSystem I made with Backup0.4
- then I updated the system to 0.12
- This worked, but I klick on "Content->Pages", I recieve the old message
Fatal error: Call to a member function on a non-object in /homepages/23/d18758287/htdocs/cms_test/lib/classes/class.content.inc.php on line 2139
- and if I want to make an Backup with the module, I receive following message:
Fatal error: Call to undefined function: metatables() in /homepages/23/d18758287/htdocs/cms_test/modules/Backup/Backup.module.php on line 233
- and if I restore the first Backup I receive on the klick on "Content->Pages" following message:
Fatal error: Call to a member function on a non-object in /homepages/23/d18758287/htdocs/cms_test/lib/classes/class.content.inc.php on line 2073
???

I dont use other Modules except Backup
ezzemm

Re: [Upgrade-Problem] Fatal error: Call to a member function on a non-object...

Post by ezzemm »

Ich weiß nun wo das Problem lag. Ich hatte Seiten, die sehr lang waren; mehrere tausend Zeichen. Diese in Version 11.2 gelöscht, auf 13 upgegraded, funktioniert :)
cyberman

Re: [Upgrade-Problem] Fatal error: Call to a member function on a non-object...

Post by cyberman »

Na da soll einer drauf kommen - besten Dank für die Info ...
Post Reply

Return to “Installation und Einstellungen”