Page 1 of 1
[solved] Fatalerror: Cannot instantiate non-existent class: tree+mls+v1.4.1
Posted: Sun Aug 31, 2008 3:07 pm
by smansman
After Installation I get the following
Version of php 4.3.9 (requirements say 4.3.3) version of cmsms 1.4.1
Apache 2.0 Handler, Apache/2.0.52 (CentOS)
mysql 4.1.2
I get the following error
Fatal error: Cannot instantiate non-existent class: tree in /var/www/vhosts/domainNAME/httpdocs/book/lib/classes/class.contentoperations.inc.php on line 556
which is a a call to tree() function from the pear packages!!!
any Ideas ?
also on the same server under another directory version 1.3.1 works like a charm
Thank you in advance
Also MLE is installed (alby's Multi language)
Re: Fatal error: Cannot instantiate non-existent class: tree mls and version 1.4.1
Posted: Sun Aug 31, 2008 7:16 pm
by alby
smansman wrote:
also on the same server under another directory version 1.3.1 works like a charm
Try to copy this file from 1.3.1 to 1.4.1 (but first is better that you can a backup copy)
Alby
PS: You cannot upgrade your php installation (4.X is now DEPRECATED and UNSUPPORTED from php.net)?
Re: Fatal error: Cannot instantiate non-existent class: tree mls and version 1.4
Posted: Sun Aug 31, 2008 8:53 pm
by smansman
--> Alby nope its part of a server that has plesk and a few sites that have 4.x specific scripts
thank I will try what you said BUT the tree() function on line 556 exists

I will check if it is included on any other file and on what line

thanks I will let you know
Re: Fatal error: Cannot instantiate non-existent class: tree mls and version 1.4
Posted: Sun Aug 31, 2008 9:05 pm
by smansman
Partially solved if you put on line 28 the folowing code (on ver 1.4.1)
require_once('lib/Tree/index.html');
right before
require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'class.content.inc.php');
it works like a charm

BUT BE CAREFUL thisa is a very dirty quick hack and someone should find out why the file containing the tree function is not included
Thanks for the help IF someone has a better solution (and cleaner on the code) please share it with us
Also on the
http://wwwDOMAINNAME.gr/book/admin/listcontent.php
the same problem nothing shows up

will investigate and let you know
Re: Fatal error: Cannot instantiate non-existent class: tree mls and version 1.4
Posted: Sun Aug 31, 2008 9:14 pm
by alby
smansman wrote:
Partially solved if you put on line 28 the folowing code (on ver 1.4.1)
However try with 1.3.1 version (or older release) because someone
report problem
Alby
Re: (Partial Solved)Fatalerror:Cannot instantiate non-existent class:tree+mls+v1
Posted: Mon Sep 01, 2008 7:52 am
by smansman
alby wrote:
smansman wrote:
Partially solved if you put on line 28 the folowing code (on ver 1.4.1)
However try with 1.3.1 version (or older release) because someone
report problem
Alby
OK the final solutions is (you can solve it 2 ways)
on line 500 of file lib/classes/class.contentoperations.inc.php there is the following peace of code
require_once(dirname(dirname(__FILE__)).'/Tree/Tree.php');
change it to
require_once(dirname(dirname(__FILE__)).'/Tree/index.html');
or 2nd Solution is (thanks to Mark)
just copy the file /lib/Tree/Tree.php from version 1.3.1 to /lib/Tree/Tree.php of version 1.4.1
Someone of the maintainers please let us know if the file tree.php was changed from Tree.php to index.html and the Tree.php contains just a reference to the Tree.php
anyway I dont know for what reason code of Tree.php was removed and put to index.html you can solve it both ways what the best is I dont know depend why the code was moved to index.html
Thank you Ably for your help
ps on the Tree.php of the dummy Tree.php there was also a ` character before
3rd solution
OR you can just rename /lib/Tree/index.html to /lib/Tree/Tree.php on version 1.4.1
Re: Fatal error: Cannot instantiate non-existent class: tree mls and version 1.4
Posted: Mon Sep 01, 2008 2:06 pm
by smansman
alby wrote:
smansman wrote:
Partially solved if you put on line 28 the folowing code (on ver 1.4.1)
However try with 1.3.1 version (or older release) because someone
report problem
Alby
Alby maybe I should change the Subject because I see many people have this problem
the admin-->content-->page showing nothing depends on the tree() function
the index page showing nothing depends also on the tree()
maybe it should be fixed on the files people are downloading and you change the subject to something more generic and make it sticky ? or please tell me to whom of the maintainers send the little fix process
please tell me your thoughts
sman
Re: Fatal error: Cannot instantiate non-existent class: tree mls and version 1.4
Posted: Mon Sep 01, 2008 2:14 pm
by alby
smansman wrote:
Alby maybe I should change the Subject because I see many people have this problem
the admin-->content-->page showing nothing depends on the tree() function
the index page showing nothing depends also on the tree()
maybe it should be fixed on the files people are downloading and you change the subject to something more generic and make it sticky ? or please tell me to whom of the maintainers send the little fix process
I am a little puzzled why the error was reported by a few people (p.e.: I never seen this)
I do not say that there is no problem but can be many causes.
We should recreate the problem on a test/debug server.
Can you put this on forge tracker?
Alby
Re: [solved] Fatalerror: Cannot instantiate non-existent class: tree+mls+v1.4.1
Posted: Mon Sep 01, 2008 2:54 pm
by smansman
Alby if you tell me where this bug tracker think is I can BUT
its obvious
on line 500 of file lib/classes/class.contentoperations.inc.php there is the following peace of code
require_once(dirname(dirname(__FILE__)).'/Tree/Tree.php');
and on Tree.php there is the code
`
(notice the litle ` before)
and on index.html on folder lib/tree there is a file called index.html having all the code needed from the Tree.php (which is part of pearce project)
its actually just a misspell or something like that
The Tree.php is called for the first time on the whole code of cmsms 1.4.1 at this line 500 of file
lib/classes/class.contentoperations.inc.php which refers to an empty file and for some strange reason it ha been moved to index.html nothing special
sman
PS one thinkis for sure it creates a lot of trooble to many people
PS2 probably on a snapshot or on a nightly build this tiny litle bug was inserted so some people downloaded the bad file s and some people the good files

I got the files from Mark but I dont know when exactly Mark downloaded the 1.4.1 version and if he downloaded an update or a full download and if it was from cvs or not (long ps

)
Re: [solved] Fatalerror: Cannot instantiate non-existent class: tree+mls+v1.4.1
Posted: Mon Sep 01, 2008 3:16 pm
by alby
smansman wrote:
Alby if you tell me where this bug tracker think is I can BUT
http://dev.cmsmadesimple.org/tracker/?a ... unc=browse
but now I understand this
(I never seen because I use SVN version ....)
From 1.4.1:
Code: Select all
ls -l lib/Tree/
total 36
-rw-r--r-- 1 root root 30483 Jun 9 03:58 Tree.php
-rw-r--r-- 1 root root 27 Aug 9 16:58 index.html
Tree.php is ok (there is all php code) and index.html has:
I think that this is generated in building phase and there is in all index.html:
Code: Select all
find ./lib -name index.html
./lib/xajax/index.html
./lib/xajax/xajax_js/index.html
./lib/smarty/index.html
./lib/smarty/plugins/index.html
./lib/smarty/internals/index.html
./lib/index.html
............
This is a bug in building script
smansman wrote:
on line 500 of file lib/classes/class.contentoperations.inc.php there is the following peace of code
require_once(dirname(dirname(__FILE__)).'/Tree/Tree.php');
and on Tree.php there is the code
`
Check your installation because I have reversed their ...
smansman wrote:
PS2 probably on a snapshot or on a nightly build this tiny litle bug was inserted so some people downloaded the bad file s and some people the good files

I got the files from Mark but I dont know when exactly Mark downloaded the 1.4.1 version and if he downloaded an update or a full download and if it was from cvs or not (long ps

)
Don't download nightly build but svn version with a svn client
Alby
Re: [solved] Fatalerror: Cannot instantiate non-existent class: tree+mls+v1.4.1
Posted: Mon Sep 01, 2008 3:25 pm
by smansman
alby wrote:
smansman wrote:
Alby if you tell me where this bug tracker think is I can BUT
http://dev.cmsmadesimple.org/tracker/?a ... unc=browse
but now I understand this
(I never seen because I use SVN version ....)
From 1.4.1:
Code: Select all
ls -l lib/Tree/
total 36
-rw-r--r-- 1 root root 30483 Jun 9 03:58 Tree.php
-rw-r--r-- 1 root root 27 Aug 9 16:58 index.html
Tree.php is ok (there is all php code) and index.html has:
I think that this is generated in building phase and there is in all index.html:
Code: Select all
find ./lib -name index.html
./lib/xajax/index.html
./lib/xajax/xajax_js/index.html
./lib/smarty/index.html
./lib/smarty/plugins/index.html
./lib/smarty/internals/index.html
./lib/index.html
............
This is a bug in building script
smansman wrote:
on line 500 of file lib/classes/class.contentoperations.inc.php there is the following peace of code
require_once(dirname(dirname(__FILE__)).'/Tree/Tree.php');
and on Tree.php there is the code
`
Check your installation because I have reversed their ...
smansman wrote:
PS2 probably on a snapshot or on a nightly build this tiny litle bug was inserted so some people downloaded the bad file s and some people the good files

I got the files from Mark but I dont know when exactly Mark downloaded the 1.4.1 version and if he downloaded an update or a full download and if it was from cvs or not (long ps

)
Don't download nightly build but svn version with a svn client
Alby
I also downloaded both version (few moments ago) the full and the base and on both the files are correct also on the snv the files are correct BUT it seems that a downloaded file that many people got another time in the past has what i told you

the code of Tree.php has been moved to index.html anf the index.html code to Tree.php
any way lets hope they will see this topic and find the solution
do you want me to do anything else?
Re: [solved] Fatalerror: Cannot instantiate non-existent class: tree+mls+v1.4.1
Posted: Mon Sep 01, 2008 3:46 pm
by alby
smansman wrote:
do you want me to do anything else?
No, but remember that you must check always vs official release
Alby
Re: [solved] Fatalerror: Cannot instantiate non-existent class: tree+mls+v1.4.1
Posted: Mon Sep 01, 2008 4:02 pm
by smansman
alby wrote:
smansman wrote:
do you want me to do anything else?
No, but remember that you must check always vs official release
Alby
Alby Mark downloaded to my server from the official release
