• kech61

    (@kech61)


    Hi,

    First of all thanks for this fantastic Plugin, I hope you enjoy the coffee 😉
    I use the Plugin in concunction with CDN-linker-master and it speeded up my site compared to w3tc. I’m looking forward to see it on Nginx next week.

    OK, I have a minor issue:

    URL	/wp-admin/options-general.php
    HTTP referrer	http://www.openandromaps.org/wp-admin/options-general.php
    unlink(/tmp/wp-ffpc-precache-log): Operation not permitted
    
    Stack trace:
    
    …vhosts/openandromaps.org/httpdocs/wp-content/plugins/wp-ffpc/
    wp-ffpc-class.php (317)
    …sts/openandromaps.org/httpdocs/wp-content/plugins/wp-ffpc/
    wp-ffpc-abstract.php (195)
    in WP_FFPC_ABSTRACT::plugin_admin_init called at ? (?)
    …ay called at /var/www/vhosts/openandromaps.org/httpdocs/wp-includes/
    plugin.php (496)
    …alled at /var/www/vhosts/openandromaps.org/httpdocs/wp-admin/includes/
    menu.php (149)
    …re_once called at /var/www/vhosts/openandromaps.org/httpdocs/wp-admin/
    menu.php (269)
    …equire called at /var/www/vhosts/openandromaps.org/httpdocs/wp-admin/
    admin.php (128)
    …led at /var/www/vhosts/openandromaps.org/httpdocs/wp-admin/
    options-general.php (10)

    The /httphosts/tmp is 755.

    As I said – no real issue but it would be fine to sort it out.

    Best regards and Thanks for all your effort,
    Christian
    http://www.openandromaps.org

    https://ww.wp.xz.cn/plugins/wp-ffpc/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter kech61

    (@kech61)

    /*The /httphosts/tmp is 755.*/

    Sorry its /httpdocs/tmp of course

    Thread Starter kech61

    (@kech61)

    OK, resolved.

    It seems that the “sys_get_temp_dir()” function is not without problems in some environments so I replaced it in “wp-ffpc-class.php”, function “plugin_pre_init()” :

    Line 96-99:

    $this->precache_logfile = WP_CONTENT_DIR . '/tmp/' . self::precache_log;
    /* this is the precacher php worker file */
    $this->precache_phpfile = WP_CONTENT_DIR . '/tmp/' . self::precache_php;
    /* search for a system function */

    Works perfect.
    Thanks again for this plugin,

    Christian

    Plugin Author petermolnar

    (@cadeyrn)

    hi,

    interesting find; I’ll dig in to php a bit to see what could possibly result in this situation.

    thank you for sharing the solution!

    Thread Starter kech61

    (@kech61)

    Hi,

    I further investigated this issue and found the initial log at [serverroot]/tmp where php can write the log but it can’t delete it.
    This location causes a second issue: If you run the plugin on one vps at more than one WordPress install it trys to use the same log for all blogs.

    This seems to be common on VPS-Servers with Plesk/Nginx – there seems to be an environment var missing for user/tmp.
    Found this issue in several blogs.

    Maybe the WP_CONTENT_DIR is the better solution – however im no expert.
    Thanks for reply,

    Christian

    BTW: Same issue with shariff-sharing, solved with WP_CONTENT_DIR too…

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

The topic ‘unlink(/tmp/wp-ffpc-precache-log): Operation not permitted’ is closed to new replies.