Am getting this error on index page after installation:
Fatal error: Class SortedListIterator cannot extend from interface Iterator in /home/dummy/public_html/easycms/classes/utils/SortedListIterator.class on line 71
What is wrong, and how can I fix?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ok, it is indeed a problem you'll only see with PHP5, since in PHP5 they added an Iterator interface.
quick solution to this is to rename the Iterator class in classes/util/Iterator.class, classes/util/SortedListIterator.class and classes/core/XMLIterator.class
what I did was change em all to easycms_Iterator, and that solved this problem for me, but you're going to run into more problems if you're going to try to run this with PHP5
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Am getting this error on index page after installation:
Fatal error: Class SortedListIterator cannot extend from interface Iterator in /home/dummy/public_html/easycms/classes/utils/SortedListIterator.class on line 71
What is wrong, and how can I fix?
Thanks
quick guess...
you're running PHP5, right?
ok, it is indeed a problem you'll only see with PHP5, since in PHP5 they added an Iterator interface.
quick solution to this is to rename the Iterator class in classes/util/Iterator.class, classes/util/SortedListIterator.class and classes/core/XMLIterator.class
what I did was change em all to easycms_Iterator, and that solved this problem for me, but you're going to run into more problems if you're going to try to run this with PHP5
Indeed, there are problems using easy-CMS with PHP5.
I am still working on it : next release will be PHP5-compliant.
BTW, thanks Wouter for the comments about the Iterator class.