Menu

Fatal error: Class SortedListIterator cannot

Support
2005-12-15
2012-12-13
  • Fred G Sanford

    Fred G Sanford - 2005-12-15

    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

     
    • Wouter

      Wouter - 2006-02-01

      quick guess...

      you're running PHP5, right?

       
    • Wouter

      Wouter - 2006-02-01

      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

       
    • Cedric Francoys

      Cedric Francoys - 2006-02-01

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.