Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED Something went wrong while saving this configuration: Validate class not found from basename

Discussion in 'General Discussion' started by ItsMattSon, Jan 31, 2018.

  1. ItsMattSon

    ItsMattSon Well-Known Member

    Joined:
    Sep 5, 2016
    Messages:
    155
    Likes Received:
    31
    Trophy Points:
    28
    Location:
    Perth
    cPanel Access Level:
    Root Administrator
    Hi cPanel,

    For some reason, Magento2 breaks when the include_path is left to the default, which is:
    .:/opt/cpanel/ea-php70/root/usr/share/pear

    However, it works when I change it to a simple period:
    .

    Or if I change it to:
    .:/php/includes

    Can anyone tell me why that could possibly be behaving that way? It makes no sense to me! :/
     
  2. ItsMattSon

    ItsMattSon Well-Known Member

    Joined:
    Sep 5, 2016
    Messages:
    155
    Likes Received:
    31
    Trophy Points:
    28
    Location:
    Perth
    cPanel Access Level:
    Root Administrator
    Hi all,

    Resolved - my own fault! Turns out my custom open_basedir directive in the MultiPHP INI Editor was breaking this.

    I had:
    [PATH=/home/myacc4]
    open_basedir = "/usr/lib/php:/usr/local/lib/php:/tmp"

    Since /opt/ is not in the list, the default include_path consequently was breaking Magento2 functionality. The resolution was to either change the include_path to just a single period (so the /opt/ directory wouldn't be used as an include_path) or to add the /opt/cpanel/ea-php70/root/usr/share/pear directory to the open_basedir directive so the default include_path wouldn't cause trouble.

    Note, it worked using /php/includes in the include_path because that folder doesn't exist. If it did, it would've failed also, just like the /opt/ directory.

    Sorry for wasting anyone's time!
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    41,494
    Likes Received:
    1,612
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello Matt,

    I'm glad to see you were able to solve the issue. Thank you for sharing the outcome.
     
Loading...

Share This Page