• Resolved evtechconsulting

    (@evtechconsulting)


    Good evening –

    Hello LiteSpeed Support,

    I’m encountering persistent PHP warning errors with the LiteSpeed Cache plugin on my WordPress site. My hosting company has advised me to contact the plugin developer directly.

    Here are the errors they’re seeing:
    PHP Warning: file_put_contents(/home6/evtechc1/public_html/wp-content/litespeed/qc_curr_requestb73c728fe58b5493f98062cb5c10f14f): failed to open stream: No such file or directory in /home6/evtechc1/public_html/wp-content/plugins/litespeed-cache/src/cloud.cls.php on line 1370

    PHP Warning: file_put_contents(/home6/evtechc1/public_html/wp-content/litespeed/qc_last_requestb73c728fe58b5493f98062cb5c10f14f): failed to open stream: No such file or directory in /home6/evtechc1/public_html/wp-content/plugins/litespeed-cache/src/cloud.cls.php on line 1506

    PHP Warning: file_put_contents(/home6/evtechc1/public_html/wp-content/litespeed/qc_curr_requestb73c728fe58b5493f98062cb5c10f14f): failed to open stream: No such file or directory in /home6/evtechc1/public_html/wp-content/plugins/litespeed-cache/src/cloud.cls.php on line 150

    Environment details:

    • WordPress version: 6.8.2
    • LiteSpeed Cache version: 7.3.0.1
    • PHP version: PHP 7.4.33
    • Hosting: cPanel on shared hosting (home6 server path shown above)

    The warnings seem to indicate the plugin is trying to write to /wp-content/litespeed/, but the directory or files are missing or inaccessible.

    Could you please advise on how to resolve this issue? Do I need to manually recreate the litespeed directory with specific permissions, or is there a plugin configuration that controls this?

    Thank you for your assistance.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter evtechconsulting

    (@evtechconsulting)

    I also went through and created the report – Last Report Number: VSLABVTM

    Plugin Support qtwrk

    (@qtwrk)

    <?php
    if (is_dir('/home6/evtechc1/public_html/wp-content/litespeed/')) {
    if (@file_put_contents('/home6/evtechc1/public_html/wp-content/litespeed/test_file.txt', 'This is a test.') !== false) {
    echo "write ok";
    @unlink($file_path);
    echo " delete.";

    } else {
    echo " write fail";
    }
    }
    else{
    echo "no dir";
    }

    ?>

    could you please create a php file with above code, then open it in browser and see what it returns ?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP Warnings’ is closed to new replies.