• Resolved thinkforward

    (@thinkforward)


    I tried re-saving my Display settings in the Events Calendar Category Colors settings.

    I tried adding ?refresh_css as a query to the end of the /events URL

    the category colors ARE correct when the plugin is activated.

    The following errors are still displaying:

    Warning: file_put_contents(/home/xxx/public_html/andersonscustard.com/wp-content/uploads/teccc_334258cf4af3482966e8f9216661f020.css): failed to open stream: No such file or directory in /home/customer/www/andersonscustard.com/public_html/wp-content/plugins/the-events-calendar-category-colors/src/Category_Colors/Frontend.php on line 232

    Warning: file_put_contents(/home/xxx/public_html/andersonscustard.com/wp-content/uploads/teccc_334258cf4af3482966e8f9216661f020.min.css): failed to open stream: No such file or directory in /home/customer/www/andersonscustard.com/public_html/wp-content/plugins/the-events-calendar-category-colors/src/Category_Colors/Frontend.php on line 233

    Warning: chmod(): No such file or directory in /home/customer/www/andersonscustard.com/public_html/wp-content/plugins/the-events-calendar-category-colors/src/Category_Colors/Frontend.php on line 234

    I have deactivated the plugin for now in order to stop the error from displaying in the header of my live site.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Andy Fragen

    (@afragen)

    Do you have a directory /home/xxx/public_html/andersonscustard.com/wp-content/uploads/ or is the directory path to the uploads folder different?

    Thread Starter thinkforward

    (@thinkforward)

    Good question. SiteGround migrated us off of cPanel and to their new “Site Tools” infrastructure and perhaps the folder structure is different now. There appears to no longer be one main account with sub-folders for each site, rather we create FTP users directly for each site independently.

    How do you suggest I go about getting the new path to be recognized?

    Plugin Author Andy Fragen

    (@afragen)

    I’ve added a new filter teccc_uploads_dir. You should return the filepath to your wp-content/uploads.

    You can test it here, https://github.com/afragen/the-events-calendar-category-colors/archive/develop.zip

    add_filter( 'teccc_uploads_dir',
       function() {
           return 'full/path/to/wp-content/uploads';
       }, 10, 1 );
    Plugin Author Andy Fragen

    (@afragen)

    Actually it’s the following.

    add_filter( 'teccc_uploads_dir',
       function( $uploads_path ) {
           return 'full/path/to/wp-content/uploads';
       }, 10, 1 );
    • This reply was modified 4 years, 1 month ago by Andy Fragen.
    Thread Starter thinkforward

    (@thinkforward)

    No change, I’ve tried declaring the full path as ‘andersonscustard.com/public_html/wp-content/uploads’ and ‘home/customer/www/andersonscustard.com/public_html/wp-content/uploads’ and still getting the same 3 errors printed atop the site. I’ve deactivated the plugin again for now.

    Thread Starter thinkforward

    (@thinkforward)

    Well, as it turns out it was because the uploads folder was not writable as a result of the migration – my host corrected it and we’re in business. Thanks for your help and sorry to bother for something as silly

    Plugin Author Andy Fragen

    (@afragen)

    You can’t guess at what the file path is you need to know it. The default should be correct but I don’t know why it’s not working for you. You might want to ask Siteground support what the file path is.

    Plugin Author Andy Fragen

    (@afragen)

    Glad it’s fixed.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘PHP error related to the temporary CSS file’ is closed to new replies.