WordPress.org

Forums

NS Cloner - Site Copier
[resolved] Network Activation Issue (8 posts)

  1. seano4ever
    Member
    Posted 1 year ago #

    Hi there,

    I have installed the plugin successfully. However, the following error message occurs when I network activate the plugin.

    Warning: session_start(): open(/tmp/sess_48d78e7b91ce1888565d28937e163c32, O_RDWR) failed: No such file or directory (2) in /home/conceptw/public_html/wp-content/plugins/ns-cloner-site-copier/ns-cloner.php on line 77

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/conceptw/public_html/wp-content/plugins/ns-cloner-site-copier/ns-cloner.php:77) in /home/conceptw/public_html/wp-content/plugins/ns-cloner-site-copier/ns-cloner.php on line 77

    Warning: Cannot modify header information - headers already sent by (output started at /home/conceptw/public_html/wp-content/plugins/ns-cloner-site-copier/ns-cloner.php:77) in /home/conceptw/public_html/wp-includes/option.php on line 747

    Warning: Cannot modify header information - headers already sent by (output started at /home/conceptw/public_html/wp-content/plugins/ns-cloner-site-copier/ns-cloner.php:77) in /home/conceptw/public_html/wp-includes/option.php on line 748

    Can you please advise how I can resolve this issue?

    https://wordpress.org/plugins/ns-cloner-site-copier/

  2. Never Settle
    Member
    Plugin Author

    Posted 1 year ago #

    You probably need to make sure that the
    /tmp/
    Directory exists in your web root and that its permissions are set correctly. You'll also need to make sure that PHP is configured to use that directory for session handling.

    All the best!

  3. seano4ever
    Member
    Posted 1 year ago #

    Thanks for the advice but no luck so far :(

    Been dealing with my host advised "Please note that a tmp folder is present in your web root and its permission is correct.

    Also, I have added "sessions.save_path = "/home/conceptw/tmp"" is a PHP.ini file present under your account but, it did not resolve an issue."

    We tried uninstalling and re-installing the plugin and the following message error occurs:

    Warning: touch(): Unable to create file wp-content/uploads/ns-cloner-site-copier.tmp because No such file or directory in /home/conceptw/public_html/wp-admin/includes/file.php on line 155

    Warning: unlink(wp-content/uploads/ns-cloner-site-copier.tmp): No such file or directory in /home/conceptw/public_html/wp-admin/includes/file.php on line 500
    Download failed. Destination directory for file streaming does not exist or is not writable.

    Can you please assist?

  4. Never Settle
    Member
    Plugin Author

    Posted 1 year ago #

    With a little searching on
    "Destination directory for file streaming does not exist or is not writable"
    I found a few threads:
    http://wordpress.org/support/topic/destination-directory-for-file-streaming-does-not-exist-or-is-not-writable-1
    http://wordpress.org/support/topic/download-failed-destination-directory-for-file-streaming-does-not-exist-or-is-n?replies=34
    and
    http://wordpress.org/support/topic/troubleshooting-wordpress-35-master-list?replies=4#post-3547427

    With the following:

    Error message: Download failed. Destination directory for file streaming does not exist or is not writable.

    Fix: When WordPress downloads any sort of file, then it has to be able to write that file somewhere. To do this, it uses the "temp" directory. If WP detects that it cannot write files to this temp directory, then you get the error message you are now getting. WP tries to find a valid temp directory, but sometimes servers are configured poorly.

    WordPress 3.5 changed the temp directory order to prefer the system's pre-defined temp directory instead of attempting to write into wp-content. On some badly configured hosting systems, this temp directory may be defined, but not actually writable. This causes the error message.

    You can work around this by specifying a temp directory on your server with a place that you know WordPress is allowed to write files to. You can do this by adding this line of code into the wp-config.php file.
    define( 'WP_TEMP_DIR' , ABSPATH . 'wp-content/' );

    Please try that mod in your wp-config.php file. If it's already defined, make sure that it points to the right location.

    Thanks!

  5. seano4ever
    Member
    Posted 1 year ago #

    Thanks for the help so far - Really appreciated :) The plugin has installed successfully but now I'm still receiving the first error message. The host is claiming that there is an issue with the plugin which I doubt since it has worked in the past for me.

    The error message I am receiving once again is:

    Warning: session_start(): open(/tmp/sess_cdf7bc88a4f62725bd23fecc4dee8ec2, O_RDWR) failed: No such file or directory (2) in /home/conceptw/public_html/wp-content/plugins/ns-cloner-site-copier/ns-cloner.php on line 77

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/conceptw/public_html/wp-content/plugins/ns-cloner-site-copier/ns-cloner.php:77) in /home/conceptw/public_html/wp-content/plugins/ns-cloner-site-copier/ns-cloner.php on line 77

    Warning: Cannot modify header information - headers already sent by (output started at /home/conceptw/public_html/wp-content/plugins/ns-cloner-site-copier/ns-cloner.php:77) in /home/conceptw/public_html/wp-includes/option.php on line 747

    Warning: Cannot modify header information - headers already sent by (output started at /home/conceptw/public_html/wp-content/plugins/ns-cloner-site-copier/ns-cloner.php:77) in /home/conceptw/public_html/wp-includes/option.php on line 748

    Any ideas? :)

  6. Never Settle
    Member
    Plugin Author

    Posted 1 year ago #

    Man, I don't know - super weird. I double checked those lines in the cloner and it's the session_start() call on line 77 which should just work on a proper hosting config:

    // Start session
    if ( is_admin() && !session_id() )
    	session_start();

    Were you able to try that trick with wp-config.php by adding the line:

    define( 'WP_TEMP_DIR' , ABSPATH . 'wp-content/' );

    ???

    Otherwise we might be back at square one :( Sorry. I really don't know what else to try at this point, but will rack my brain a bit more and ask the team again too!

  7. seano4ever
    Member
    Posted 1 year ago #

    When I added define( 'WP_TEMP_DIR' , ABSPATH . 'wp-content/' ); to the wp-config file, the plugin then installed fine. I then tried to network activate the plugin which is when error on line 77 occurs.

  8. Never Settle
    Member
    Plugin Author

    Posted 1 year ago #

    Something just occurred to me that may give us a lead on solving this - I noticed that the support response says that they added sessions.save_path = "/home/conceptw/tmp" to the php.ini file. However, that is not the correct name for the configuration property - it should be session.save_path ... with no extra "s" after "session".
    See documentation here.

    So, if you can edit your php.ini file I would try changing that. If you cannot edit your php.ini, try adding the following line right before the session_start call on line 77:

    session_save_path('/home/conceptw/tmp');

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NS Cloner - Site Copier
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.