Join the community today
Register Now

Xenforo Cannot declare class XenForo_Autoloader

Discussion in 'Forum software usage' started by KeVo, Aug 13, 2015.

  1. KeVo

    KeVo Active Member

    180
    71
    28
    May 28, 2014
    Ratings:
    +101
    Local Time:
    10:57 PM
    1.11.x
    10.1.18
    Does anyone else running with PHP7 and using the Release Candidate versions of XenForo 1.5 have this issue on your boards? Not sure what this issue is. I overwrite everything and haven't changed anything in the file prior.

    Code:
    Fatal error: Cannot declare class XenForo_Autoloader, because the name is already in use in /home/nginx/domains/mydomain.com/public/library/XenForo/Autoloader.php on line 16
    
    Fatal error: Cannot declare class XenForo_Autoloader, because the name is already in use in /home/nginx/domains/mydomain.com/public/library/XenForo/Autoloader.php on line 16


     
  2. KeVo

    KeVo Active Member

    180
    71
    28
    May 28, 2014
    Ratings:
    +101
    Local Time:
    10:57 PM
    1.11.x
    10.1.18
    I went to a backup and downgraded to PHP 5.6.12. The upgrade process worked like a charm afterwards. It seems there was some conflicts there somewhere.
     
  3. eva2000

    eva2000 Administrator Staff Member

    54,859
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    1:57 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Unfortunately I haven't tried PHP 7 with Xenforo. Hope you reported that error to Xenforo devs so they can fix it for PHP 7 support :)

    thanks for being a early adopter :D
     
  4. KeVo

    KeVo Active Member

    180
    71
    28
    May 28, 2014
    Ratings:
    +101
    Local Time:
    10:57 PM
    1.11.x
    10.1.18
    Yeah, I told them about the issue. :)

    Reach too closely to the sun and you get burned sometimes. LOL
     
  5. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    11:57 AM
    Mainline
    10.2
    Happy roll back :D
    Yeah PHP 7 is not really production ready.
     
  6. eva2000

    eva2000 Administrator Staff Member

    54,859
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    1:57 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    more like Xenforo isn't PHP7 ready hehe
     
  7. Andy

    Andy Active Member

    544
    89
    28
    Aug 6, 2014
    Ratings:
    +133
    Local Time:
    10:57 PM
    Saw it on my small site with php 7 when i upgraded to 1.5 RC 2 this morning.
    I did nprestart a few times and the upgrade went through without issue.