Error in forum-uploads.php after site migration to new domain
Quote from Raudulv on February 17, 2021, 1:05 pmHi!
I migrate my site with asgaros forum (version 1.15.9) from old domain to another new.
E.g. they are http://source.ru and http://target.ru.
After migration I have error with attempt to upload image:
Warning: mkdir(): No such file or directory in /home/h101530770/target.ru/docs/wp-content/plugins/asgaros-forum/includes/forum-uploads.php on line 97 Warning: mkdir(): No such file or directory in /home/h101530770/target.ru/docs/wp-content/plugins/asgaros-forum/includes/forum-uploads.php on line 101 Warning: Cannot modify header information - headers already sent by (output started at /home/h101530770/target.ru/docs/wp-content/plugins/asgaros-forum/includes/forum-uploads.php:97) in /home/h101530770/target.ru/docs/wp-includes/pluggable.php on line 1296 Warning: Cannot modify header information - headers already sent by (output started at /home/h101530770/target.ru/docs/wp-content/plugins/asgaros-forum/includes/forum-uploads.php:97) in /home/h101530770/target.ru/docs/wp-includes/pluggable.php on line 1299When I added into line 100 (before “mkdir($path);”) in forum-uploads.php “echo($path);” to check $path value, I see:
Warning: mkdir(): No such file or directory in /home/h101530770/target.ru/docs/wp-content/plugins/asgaros-forum/includes/forum-uploads.php on line 97 /home/raudulv/source.ru/docs//wp-content/uploads/asgarosforum/6/ Warning: mkdir(): No such file or directory in /home/h101530770/target.ru/docs/wp-content/plugins/asgaros-forum/includes/forum-uploads.php on line 101 Warning: Cannot modify header information - headers already sent by (output started at /home/h101530770/target.ru/docs/wp-content/plugins/asgaros-forum/includes/forum-uploads.php:97) in /home/h101530770/target.ru/docs/wp-includes/pluggable.php on line 1296 Warning: Cannot modify header information - headers already sent by (output started at /home/h101530770/target.ru/docs/wp-content/plugins/asgaros-forum/includes/forum-uploads.php:97) in /home/h101530770/target.ru/docs/wp-includes/pluggable.php on line 1299I checked: ABSPATH in wp-config.php defined correctly.
How can I resolve this problem?
Hi!
I migrate my site with asgaros forum (version 1.15.9) from old domain to another new.
E.g. they are http://source.ru and http://target.ru.
After migration I have error with attempt to upload image:
Warning: mkdir(): No such file or directory in /home/h101530770/target.ru/docs/wp-content/plugins/asgaros-forum/includes/forum-uploads.php on line 97 Warning: mkdir(): No such file or directory in /home/h101530770/target.ru/docs/wp-content/plugins/asgaros-forum/includes/forum-uploads.php on line 101 Warning: Cannot modify header information - headers already sent by (output started at /home/h101530770/target.ru/docs/wp-content/plugins/asgaros-forum/includes/forum-uploads.php:97) in /home/h101530770/target.ru/docs/wp-includes/pluggable.php on line 1296 Warning: Cannot modify header information - headers already sent by (output started at /home/h101530770/target.ru/docs/wp-content/plugins/asgaros-forum/includes/forum-uploads.php:97) in /home/h101530770/target.ru/docs/wp-includes/pluggable.php on line 1299
When I added into line 100 (before “mkdir($path);”) in forum-uploads.php “echo($path);” to check $path value, I see:
Warning: mkdir(): No such file or directory in /home/h101530770/target.ru/docs/wp-content/plugins/asgaros-forum/includes/forum-uploads.php on line 97 /home/raudulv/source.ru/docs//wp-content/uploads/asgarosforum/6/ Warning: mkdir(): No such file or directory in /home/h101530770/target.ru/docs/wp-content/plugins/asgaros-forum/includes/forum-uploads.php on line 101 Warning: Cannot modify header information - headers already sent by (output started at /home/h101530770/target.ru/docs/wp-content/plugins/asgaros-forum/includes/forum-uploads.php:97) in /home/h101530770/target.ru/docs/wp-includes/pluggable.php on line 1296 Warning: Cannot modify header information - headers already sent by (output started at /home/h101530770/target.ru/docs/wp-content/plugins/asgaros-forum/includes/forum-uploads.php:97) in /home/h101530770/target.ru/docs/wp-includes/pluggable.php on line 1299
I checked: ABSPATH in wp-config.php defined correctly.
How can I resolve this problem?
Quote from Asgaros on February 17, 2021, 1:25 pmHello @raudulv
Can you check if theĀ /wp-content/uploads/asgarosforum folder exists? Also ensure that you have permissions to create those folders – otherwise you can create that folder manually.
Hello @raudulv
Can you check if theĀ /wp-content/uploads/asgarosforum folder exists? Also ensure that you have permissions to create those folders – otherwise you can create that folder manually.
Quote from Raudulv on February 17, 2021, 1:43 pmThank You, Asgaros.
I created this folder manually as You recommend.
Unfortunately the error persists.
As I see module forum-uploads.php trying to create folder /home/raudulv/source.ru/docs//wp-content/uploads/asgarosforum/6/. This path includes source.ru – name of old domain.
Thank You, Asgaros.
I created this folder manually as You recommend.
Unfortunately the error persists.
As I see module forum-uploads.php trying to create folder /home/raudulv/source.ru/docs//wp-content/uploads/asgarosforum/6/. This path includes source.ru – name of old domain.
Quote from Raudulv on February 17, 2021, 7:46 pmSorry. I found reason of trouble.
Incorrect value in “upload_path” option. It was not problem of asgaros-forum.
Thank You one more time for ready to help.
Sorry. I found reason of trouble.
Incorrect value in “upload_path” option. It was not problem of asgaros-forum.
Thank You one more time for ready to help.