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:
    2:08 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

    180
    71
    28
    May 28, 2014
    Ratings:
    +101
    Local Time:
    2:08 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

    40,620
    9,015
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,881
    Local Time:
    5:08 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
     
    style="display:inline-block;min-width:400px;max-width:970px;width:95%;height:90px" data-ad-client="ca-pub-6669518204467592" data-ad-slot="4024536743" data-ad-format="auto">
  4. KeVo

    KeVo Active Member

    180
    71
    28
    May 28, 2014
    Ratings:
    +101
    Local Time:
    2:08 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. rdan

    rdan Well-Known Member

    4,549
    1,090
    113
    May 25, 2014
    Ratings:
    +1,591
    Local Time:
    3:08 AM
    Mainline
    10.2
    Happy roll back :D
    Yeah PHP 7 is not really production ready.
     
  6. eva2000

    eva2000 Administrator Staff Member

    40,620
    9,015
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,881
    Local Time:
    5:08 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 Active Member

    433
    66
    28
    Aug 6, 2014
    Ratings:
    +90
    Local Time:
    3:08 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