Posts image not downloaded to child site

When I create a post with an image from the MainWP dashboard, the image on the child site is showing the URL from the mainWP site. How can I download the image to the child site automatically when I create the post from the mainWP dashboard?

Here’s the logs on my mainWP account:


### WordPress Check                Required                                               Detected                                     Status   ###

FileSystem Method                  = direct                                               direct                                       Pass        
MultiSite Disabled                 =true                                                  true                                         Pass        
WordPress Memory Limit             >=64M                                                  64M                                          Pass        
WordPress Version                  >=3.6                                                  6.0.2                                        Pass        

### PHP                            Required                                               Detected                                     Status   ###

cURL Extension Enabled             =true                                                  true                                         Pass        
cURL SSL Version                   >=OpenSSL/1.1.0                                        OpenSSL/1.1.1n                               Pass        
cURL Timeout                       >=300 seconds                                          300                                          Pass        
cURL Version                       >=7.29.0                                               7.81.0                                       Pass        
PCRE Backtracking Limit            >=10000                                                1000000                                      Pass        
PHP Allow URL fopen                N/A                                                    YES                                                      
PHP Disabled Functions             N/A                                                    No functions disabled.                                   
PHP Exif Support                   N/A                                                    YES ( V8.0.)                                             
PHP IPTC Support                   N/A                                                    YES                                                      
PHP Loaded Extensions              N/A                                                    Core, PDO, PDO_ODBC, Phar, Reflection, SPL, SimpleXML, SourceGuardian, Zend OPcache, bcmath, bz2, calendar, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, imap, intl, json, libxml, litespeed, mbstring, mysqli, mysqlnd, odbc, openssl, pcntl, pcre, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, posix, pspell, readline, session, soap, sockets, sqlite3, standard, tidy, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, zlib            
PHP Max Execution Time             >=30 seconds                                           30                                           Pass        
PHP Max Input Time                 >=30 seconds                                           60                                           Pass        
PHP Memory Limit                   >=128M                                                 256M                                         Pass        
PHP Post Max Size                  >=2M                                                   516M                                         Pass        
PHP Safe Mode Disabled             =true                                                  true                                         Pass        
PHP Upload Max Filesize            >=2M                                                   512M                                         Pass        
PHP Version                        >=7.0                                                  8.0.18                                       Pass        
PHP XML Support                    N/A                                                    YES                                                      
SSL Extension Enabled              =true                                                  true                                         Pass        
SSL Warnings                       = empty                                                                                             Pass        

### MySQL                          Required                                               Detected                                     Status   ###

MySQL Client Encoding              N/A                                                    utf8mb4                                                  
MySQL Mode                         N/A                                                    NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION               
MySQL Version                      >=5.0                                                  5.7.23-23                                    Pass        

### Server Configuration           Detected Value                                      ###

Accept Content                     text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Charset Content             N/A                                                    
Architecture                       64		 bit                                               
Gateway Interface                                                                         
HTTPS                              ON                                                     
Memory Usage                       9.91 MB                                                
Operating System                   Linux                                                  
Request Time                       1662905496                                             
Server Protocol                    HTTP/2.0                                               
Server self connect                Response Test O.K.                                     
Server Software                    Apache                                                 
User Agent                         Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36

### MainWP Dashboard Settings      Detected Value                                      ###

Abandoned plugins/themes tolerance 365                                                    
Basic uptime monitoring enabled    No                                                     
Cache control enabled              No                                                     
MainWP Dashboard Version           Latest: 4.2.7 | Detected: 4.2.7 Pass                   
MainWP legacy backups enabled      No                                                     
Maximum number of pages to return                                                         
Maximum number of posts to return                                                         
Maximum simultaneous install and update requests3                                                      
Maximum simultaneous requests      2                                                      
Maximum simultaneous requests per ip1                                                      
Maximum simultaneous sync requests 3                                                      
Minimum delay between requests     200                                                    
Minimum delay between requests to the same ip1000                                                   
Number of child sites              190                                                    
Optimize for shared hosting or big networksYes                                                    
Plugin advanced automatic updates enabledNo                                                     
Primary backup system              MainWP Legacy Backups                                  
REST API enabled                   No                                                     
Site health monitoring enabled     No                                                     
Theme advanced automatic updates enabledNo                                                     
Use WP Cron                        Yes                                                    
WP Core advanced automatic updates enabledNo                                                     

### Extensions                     Version                                                License                                      Status   ###

No installed extensions            

### Plugin                         Version                                                Status                                    ###

Akismet Anti-Spam                  4.2.3                                                  Inactive                                     
Classic Editor                     1.6.2                                                  Active                                       
MainWP Dashboard                   4.2.7                                                  Active                                       
Wordfence Security                 7.5.9                                                  Active                                       
WP Memory                          2.45                                                   Active                                       
wptools                            3.41                                                   Active                                       

Hey @mywpsite

When you are creating a new post via MainWP Dashboard, and you add an image to that post via the “Add Media” button at the top of the text editor, that image will get copied to the child site’s Media Library, and the URL of the image will be that of the child site.

The same goes for the Featured images as well.

Can you please elaborate a bit more about how you are adding images to posts?

Hi Bojan

Thanks for answering this. That was exactly what I did but after the post was published, the URL of the image is referring to the domain where my mainWP dashboard is located. Apparently, the image was not copied to the child site as it should be. Would you know what might be causing this issue?

I noticed that when I added the image to the post, it would create the image link as something below:

“<“img class=“alignnone size-medium wp-image-7” src=“https:///wp-content/uploads/image-name.png” alt=”” width=“300” height=“133” />"

And that was the same link that was posted to the child site. Hope that gives you some clue what might be the issue here.

Thanks for the update.

Can you try temporarily disabling everything except for MainWP Dashboard and Classic Editor on the Dashboard and see if that helps?

And do you have Classic Editor installed on your child site?

Thank for the suggestion. I tried all that but it still doesn’t work. I managed to resolve it only after installing the plugin " [QQWorld Auto Save Images]".

So I’m trying to install the plugin on all my child sites and now I have a new problem. All the sites ended with this error “wordpress filesystem error:FTP hostname is required”, but I don’t find anywhere in mainWP to set the FTP hostname for the child sites?

Both issues are probably related. The FTP information is asked if the webserver can’t write files to the desired locations. That’s needed both for installing plugins as for uploading images. You should check the file/folder permissions and the ownership of these files and folders.

1 Like

I agree with @josklever. The issue is most likely related.

Try following Jos’ advice, and you can also try contacting your hosting support and have them investigate why you may be getting that error message.

1 Like