Learn about Centmin Mod LEMP Stack today
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

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

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

    36,868
    8,070
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,428
    Local Time:
    3:53 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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
    70
    28
    May 28, 2014
    Ratings:
    +100
    Local Time:
    11:53 AM
    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. rdan

    rdan Premium Member Premium Member

    4,367
    1,053
    113
    May 25, 2014
    Ratings:
    +1,524
    Local Time:
    1:53 AM
    Mainline
    10.2
    Happy roll back :D
    Yeah PHP 7 is not really production ready.
     
  6. eva2000

    eva2000 Administrator Staff Member

    36,868
    8,070
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,428
    Local Time:
    3:53 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    more like Xenforo isn't PHP7 ready hehe
     
    • Agree Agree x 2
  7. Andy

    Andy Premium Member Premium Member

    422
    61
    28
    Aug 6, 2014
    Ratings:
    +85
    Local Time:
    12:53 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.
     
    • Like Like x 1
    • Informative Informative x 1
..