• Resolved cuttycliffy

    (@cuttycliffy)


    Error Details
    =============
    An error of type E_COMPILE_ERROR was caused in line 27 of the file /services/webpages/c/l/clockittoya.ca/public/wp/wp-content/themes/storefront/functions.php. Error message: require(): Failed opening required ‘inc/class-storefront.php’ (include_path=’.’)

Viewing 10 replies - 16 through 25 (of 25 total)
  • Thread Starter cuttycliffy

    (@cuttycliffy)

    Hi Cara,

    Sorry for not replying sooner on this thread. I increased the site’s PHP Time Limit from 30 seconds to 300 seconds. As for permissions on the site files/folders, they are all set as 0755 and I have no problem accessing/viewing them.

    I am now getting this error sometimes when I login to my admin page. I am not sure where to go from here. Any suggestions?

    Thanks,
    Mike

    Thread Starter cuttycliffy

    (@cuttycliffy)

    When I turn on debug in the wp config file, I am getting this error when click on customize for the theme:

    Warning: require_once(inc/customizer/class-storefront-customizer-control-radio-image.php): failed to open stream: No such file or directory in inc/customizer/class-storefront-customizer.php on line 163

    Fatal error: require_once(): Failed opening required ‘inc/customizer/class-storefront-customizer-control-radio-image.php’ (include_path=’.’) in inc/customizer/class-storefront-customizer.php on line 163

    Hi, @cuttycliffy!

    I’m honestly running out of ideas here, but I’m wondering if the error is due to things being called in the wrong order, which can happen especially with caching and optimization plugins. Can you see if disabling Autoptimize helps?

    If that doesn’t help, the issue may be from another plugin, in which case a full conflict test may be in order. For that, you can refer to our documentation here: How to Test for Plugin and Theme Conflicts.

    Thread Starter cuttycliffy

    (@cuttycliffy)

    Hi Cara,

    I disabled Autoptimize – still got the error.

    The error occurs in this file: class-storefront-customizer.php and line 163 is calling inc/customizer/class-storefront-customizer-control-radio-image.php.

    It seems like the php script is not seeing the folder – here is the path to that directory: /wp/wp-content/themes/storefront/inc/customizer that contains both files class-storefront-customizer.php and class-storefront-customizer-control-radio-image.php.

    Other links for the theme (such as Menu) work without errors. So is there something with the code not going to the correct path for these files? Is this a .htaccess issue? My WordPress and Site Address are the same: http://clockittoya.ca/wp – these were different at 1 point. There is a .htaccess on the root directory as well as at /wp/ – could that cause conflicts or should I have 2?

    I appreciate all you help…
    Thanks,
    Mike

    Hey Mike,

    I think you’re on to something here! Two .htaccess files should be okay as long as their rules don’t conflict with each other, but given your issue, it is something worth looking into. This will be best addressed by your hosting provider though.

    Thread Starter cuttycliffy

    (@cuttycliffy)

    The reply from my hosting service:

    We determined that the error in question occurs due to the missing file.
    
    The issue you experienced is considered to be coding-related, which is out of the scope of our support.
    
    We advise you to review your website code and make sure that the affected file is present on the webspace.

    So, anything else I can try that you can suggest to fix this issue in the Storefront theme?

    Thanks,
    Mike

    Hi Mike,

    So we’ve checked your class-storefront.php file before, and you’ve confirmed that it exists.

    And your hosting provider mentions a missing file. Do they now mean the class-storefront-customizer.php file that’s referred to in the most recent error? Can you please check your site to confirm if that is indeed missing as they say? If it is missing, can you add it back via FTP?

    Hey Mike,

    We haven’t heard back from you in a while, so I’m going to mark this thread as resolved. However, we’ll be here if/when you’re ready to continue.

    Thread Starter cuttycliffy

    (@cuttycliffy)

    Hi there,

    I had to re-open this thread as this issue is still present. It stopped for awhile but back again:

    Error Details
    =============
    An error of type E_COMPILE_ERROR was caused in line 27 of the file /services/webpages/c/l/clockittoya.ca/public/wp/wp-content/themes/storefront/functions.php. Error message: require(): Failed opening required ‘inc/class-storefront.php’ (include_path=’.’)

    Can you help me with any other suggestions to fix?
    Thanks,
    Mike

    Hi Mike,

    Have you reached out to your hosting provider about this issue?

    The error you mentioned above makes me think the hosting provider may be doing some things to prevent PHP access to files outside of your sub folder if this is shared hosting:

    Error:
    > Fatal error: require_once(): Failed opening required ‘inc/customizer/class-storefront-customizer-control-radio-image.php’ (include_path=’.’) in inc/customizer/class-storefront-customizer.php on line 163

    The code that would have triggered this error is:

    
    require_once dirname( __FILE__ ) . '/class-storefront-customizer-control-more.php';
    

    This should have rendered the full/absolute path in the error message as: /services/webpages/c/l/clockittoya.ca/public/wp/wp-content/themes/storefront/inc/customizer/class-storefront-customizer-control-radio-image.php.

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘E_COMPILE_ERROR with Storefront Theme’ is closed to new replies.