Image URL from child site

Hi,

When I add a post with an image from the MainWP dashboard, on my child site I can see the image loaded from the main domain (where I have the MainWP dashboard)

There is any possibility to add a post from the MainWP dashboard with an image where an image will be loaded from the child site?

Hi Michall,

By default, MainWP should transfer a media file to child sites and the file should be loaded directly from the child site.

I am not sure what is causing this behavior on your setup.

Can you please post the community system report from your MainWP Dashboard for review? The report is located in your Dashboard under Status → Server, on the top right of the page.

Be sure to use the button like the one below; this button hides all your private information:

image

Pressing the button auto-copies the report to your clipboard then just paste it in a reply here.


### Server Info                    Required                                               Detected                                     Status   ###

MainWP Dashboard                   
MainWP Dashboard Version           4.1.7                                                  4.1.7                                        Pass        
MainWP Upload Directory            Writable                                               Writable                                     Pass        
MainWP Extensions                  
Advanced Uptime Monitor Extension  5.1.3                                                  API License Active                           Pass        
MainWP Article Uploader Extension  4.0.1.1                                                API License Active                           Pass        
MainWP BackWPup Extension          4.0.3                                                  API License Active                           Pass        
MainWP Buddy Extension             4.0.1                                                  API License Active                           Pass        
MainWP Bulk Settings Manager Extension4.0.2.1                                                API License Active                           Pass        
MainWP Comments Extension          4.0.3                                                  API License Active                           Pass        
MainWP File Uploader Extension     4.0.1                                                  API License Active                           Pass        
MainWP Google Analytics Extension  4.0.3.1                                                API License Active                           Pass        
MainWP Page Speed Extension        4.0.1.1                                                API License Active                           Pass        
MainWP Rocket Extension            4.0.2                                                  API License Active                           Pass        
MainWP Staging Extension           4.0.1                                                  API License Active                           Pass        
MainWP Time Capsule Extension      4.0.1.1                                                API License Active                           Pass        
MainWP Vulnerability Checker Extension4.1                                                    API License Active                           Pass        
MainWP WooCommerce Status Extension4.0.6                                                  API License Active                           Pass        
MainWP WP Compress Extension       4.0.1                                                  API License Active                           Pass        
MainWP WordPress SEO Extension     4.0.1                                                  API License Active                           Pass        
WordPress                          
WordPress Version                  >=3.6                                                  5.8                                          Pass        
WordPress Memory Limit             >=64M                                                  40M                                          Warning     
MultiSite Disabled                 =true                                                  true                                         Pass        
FileSystem Method                  = direct                                               direct                                       Pass        
PHP                                
PHP Version                        >=5.6                                                  7.1.33                                       Pass        
PHP Safe Mode Disabled             =true                                                  true                                         Pass        
PHP Max Execution Time             >=30 seconds                                           30                                           Pass        
PHP Max Input Time                 >=30 seconds                                           60                                           Pass        
PHP Memory Limit                   >=128M                                                 2048M                                        Pass        
PCRE Backtracking Limit            >=10000                                                1000000                                      Pass        
PHP Upload Max Filesize            >=2M                                                   50M                                          Pass        
PHP Post Max Size                  >=2M                                                   8M                                           Pass        
SSL Extension Enabled              =true                                                  true                                         Pass        
SSL Warnings                       = empty                                                                                             Pass        
cURL Extension Enabled             =true                                                  true                                         Pass        
cURL Timeout                       >=300 seconds                                          60                                           Warning     
cURL Version                       >=7.18.1                                               7.29.0                                       Pass        
cURL SSL Version                   >=OpenSSL/0.9.8l                                       NSS/3.44                                     Pass        
PHP Allow URL fopen                YES                                                    
PHP Exif Support                   YES ( V7.1.)                                           
PHP IPTC Support                   YES                                                    
PHP XML Support                    YES                                                    
PHP Disabled Functions             No functions disabled.                                 
PHP Loaded Extensions              Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, bcmath, bz2, calendar, ctype, curl, date, dba, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, json, ldap, libxml, mbstring, mcrypt, mysqli, mysqlnd, openssl, pcre, pdo_mysql, pdo_sqlite, posix, session, shmop, sockets, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, zlib
MySQL                              
MySQL Version                      >=5.0                                                                                               Fail        
MySQL Mode                         NOT SET                                                
MySQL Client Encoding              utf8                                                   
Server Info                        
Server Software                    Apache/2.4.6 (CentOS) PHP/7.1.33                       
Operating System                   Linux                                                  
Architecture                       64		 bit                                               
Server Protocol                    HTTP/1.1                                               
HTTPS                              OFF                                                    
Server self connect                Not expected HTTP response body: 401 Unauthorized

Unauthorized
This server could not verify that you
are authorized to access the document
requested.  Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.
User Agent                         Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36
Gateway Interface                  CGI/1.1                                                
Memory Usage                       12.17 MB                                               
Request Time                       1627985757                                             
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                                                    
MainWP Settings                                                              
Use WP-Cron                        No                                                     
Optimize for Shared Hosting or Big NetworksNo                                                     
Automatic Daily Update             Install trusted updates                                
Abandoned Plugins/Themes Tolerance 365                                                    
Maximum number of posts to return  50                                                     
Maximum number of pages to return                                                         
Maximum Number of Comments                                                                
Primary Backup System              Default MainWP Backups                                 
Maximum simultaneous requests      4                                                      
Minimum delay between requests     200                                                    
Maximum simultaneous requests per ip1                                                      
Minimum delay between requests to the same ip1000                                                   
Maximum simultaneous sync requests                                                        
Minimum simultaneous install/update requests                                                       
Active Plugins                     
Akismet Anti-Spam                  4.1.10                                                 Inactive                                     
Easy WP SMTP                       1.4.7                                                  Active                                       
Hello Dolly                        1.7.2                                                  Inactive                                     
MainWP Broken Links Checker Extension1.6                                                    Inactive                                     
MainWP Dashboard                   4.1.7                                                  Active                                       
MainWP Links Manager Extension     2.1                                                    Inactive                                     
MainWP Spinner                     2.5                                                    Inactive                                     
MainWP Time Capsule Extension      4.0.1.1                                                Active                                       

Hi @michall,

It looks like there is some security rule on the dashboard site:

most likely HTTP Basic Auth and this could be blocking child sites when attempt to download image files.

Can you try to disable this temporarily and see if that helps?

Hi,

Thank you @bogdan . It was protection on htaccess. Removing the security helped.

Regards

Hi @michall,

thanks for verifying that.

I believe that you can set the same kind of protection by using the Clean and Lock extension without breaking this functionality.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.