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!

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:
    167
    Likes Received:
    34
    Trophy Points:
    103
    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:
    167
    Likes Received:
    34
    Trophy Points:
    103
    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:
    43,943
    Likes Received:
    1,820
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice