Welcome to Centmin Mod Community
Become a Member

Xenforo Cannot declare class XenForo_Autoloader

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

  1. KeVo

    KeVo Active Member

    179
    70
    28
    May 28, 2014
    Ratings:
    +100
    Local Time:
    11:51 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

     
    • Informative Informative x 1
  2. KeVo

    KeVo Active Member

    179
    70
    28
    May 28, 2014
    Ratings:
    +100
    Local Time:
    11:51 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

    30,839
    6,903
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,393
    Local Time:
    3:51 PM
    Nginx 1.13.x
    MariaDB 5.5
    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

    179
    70
    28
    May 28, 2014
    Ratings:
    +100
    Local Time:
    11:51 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
     
    • Like Like x 1
  5. RoldanLT

    RoldanLT Well-Known Member

    3,975
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    1:51 PM
    1.11
    10.2
    Happy roll back :D
    Yeah PHP 7 is not really production ready.
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,839
    6,903
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,393
    Local Time:
    3:51 PM
    Nginx 1.13.x
    MariaDB 5.5
    more like Xenforo isn't PHP7 ready hehe
     
    • Agree Agree x 2
  7. Andy

    Andy Active Member

    333
    48
    28
    Aug 6, 2014
    Ratings:
    +57
    Local Time:
    12:51 AM
    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.
     
    • Like Like x 1
    • Informative Informative x 1