Images don't show up on child sites

Hi,

I just installed MainWP. Looks like a great extension! Thank you!

Here’s the setup.

Site 1 - this is the main site where MainWP is installed. I’ve also installed the child extension there so it can connect to this website as well
Site 2 - a child site

All posts are posting perfectly but with one exception. When I add a post with images, the images appear as intended in the post on Site 1, but Site 2 only publishes the text (including any captions that might be under the images), but not the images themselves. This is the case for both inserted media, featured image, just uploaded for this post or picked from the media library.

Is there anything that needs to be changed in the set up or another plugin installed?

Thanks.

Hi this doesn’t look like normal behavior, however, it’s not a bug that I can duplicate on my test setups.

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.

@bogdan I have the same issue with my child sites, but I found the error. I’ve added media file xxx.jpg to the library and put it into the editor as large size. WordPress created a dedicated file xxx-1024x1024.jpg. On child site, WordPress uploaded this file, not as xxx-1024x1024.jpg but xxx-1024x1024-1.jpg.

Hi Pawel, thanks for the feedback. I just re-tested this again to be 200% sure, but still everything works for me:

Checked the source code and the file doesn’t get renamed:

I will be happy to help troubleshooting this issue further, so if you can it would be good to start with the Community System Report.

There is my report

### Server Info                    Required                                               Detected                                     Status   ###

MainWP Dashboard                   
MainWP Dashboard Version           4.0.7.2                                                4.0.7.2                                      Pass        
MainWP Upload Directory            Writable                                               Writable                                     Pass        
MainWP Extensions                  
No installed extensions            
WordPress                          
WordPress Version                  >=3.6                                                  5.3.2                                        Pass        
WordPress Memory Limit             >=64M                                                  256M                                         Pass        
MultiSite Disabled                 =true                                                  true                                         Pass        
FileSystem Method                  = direct                                               direct                                       Pass        
PHP                                
PHP Version                        >=5.6                                                  7.2.26                                       Pass        
PHP Safe Mode Disabled             =true                                                  true                                         Pass        
PHP Max Execution Time             >=30 seconds                                           300                                          Pass        
PHP Max Input Time                 >=30 seconds                                           60                                           Pass        
PHP Memory Limit                   >=128M                                                 256M                                         Pass        
PCRE Backtracking Limit            >=10000                                                1000000                                      Pass        
PHP Upload Max Filesize            >=2M                                                   64M                                          Pass        
PHP Post Max Size                  >=2M                                                   128M                                         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.21 Basic ECC                           Pass        
PHP Allow URL fopen                YES                                                    
PHP Exif Support                   YES ( V7.2.)                                           
PHP IPTC Support                   YES                                                    
PHP XML Support                    YES                                                    
PHP Disabled Functions             dl, exec, passthru, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setegid, posix_seteuid, posix_setgid, posix_setpgid, posix_setsid, posix_setuid, posix_uname, proc_close, proc_open, shell_exec, show_source, system,
PHP Loaded Extensions              Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, bcmath, calendar, cgi-fcgi, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, intl, ionCube Loader, json, libxml, mbstring, mysqli, mysqlnd, openssl, pcre, pdo_mysql, pdo_sqlite, posix, session, soap, sockets, sodium, sqlite3, standard, tokenizer, xml, xmlreader, xmlwriter, xsl, yaml, zip, zlib
MySQL                              
MySQL Version                      >=5.0                                                  10.1.43-MariaDB                              Pass        
MySQL Mode                         NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION             
MySQL Client Encoding              utf8mb4                                                
Server Info                        
Server Software                    Apache/2                                               
Operating System                   Linux                                                  
Architecture                       64 bit                                                 
Server Protocol                    HTTP/1.1                                               
HTTPS                              ON - on                                                
Server self connect                Not expected HTTP response body:                       
User Agent                         Mozilla/5.0 (iPhone; CPU iPhone OS 13_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.5 Mobile/15E148 Safari/604.1
Gateway Interface                  CGI/1.1                                                
Memory Usage                       76.45 MB                                               
Request Time                       1582573676                                             
Accept Content                     text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Charset Content             N/A                                                    
MainWP Settings                    
Number Of Child Sites              43                                                     
Use WP-Cron                        No                                                     
Optimize for Shared Hosting or Big NetworksYes                                                    
Automatic Daily Update             Install trusted updates                                
Abandoned Plugins/Themes Tolerance                                                        
Maximum number of posts to return  10                                                     
Maximum number of pages to return  50                                                     
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                     
MainWP Dashboard                   4.0.7.2                                                Active                                       
Really Simple SSL                  3.2.9                                                  Active                                       
The7 Elements                      2.2.7                                                  Active                                       
The7 Slider Revolution             5.4.8.3                                                Active                                       
The7 Ultimate Addons for WPBakery Page Builder3.19.0.1                                               Active                                       
The7 WPBakery Page Builder         5.4.7                                                  Active                                       

Here’s my report.


### Server Info                    Required                                               Detected                                     Status   ###

MainWP Dashboard                   
MainWP Dashboard Version           4.0.7.2                                                4.0.7.2                                      Pass        
MainWP Upload Directory            Writable                                               Writable                                     Pass        
MainWP Extensions                  
No installed extensions            
WordPress                          
WordPress Version                  >=3.6                                                  5.3.2                                        Pass        
WordPress Memory Limit             >=64M                                                  40M                                          Warning     
MultiSite Disabled                 =true                                                  true                                         Pass        
FileSystem Method                  = direct                                               direct                                       Pass        
PHP                                
PHP Version                        >=5.6                                                  7.2.27                                       Pass        
PHP Safe Mode Disabled             =true                                                  true                                         Pass        
PHP Max Execution Time             >=30 seconds                                           90                                           Pass        
PHP Max Input Time                 >=30 seconds                                           60                                           Pass        
PHP Memory Limit                   >=128M                                                 256M                                         Pass        
PCRE Backtracking Limit            >=10000                                                1000000                                      Pass        
PHP Upload Max Filesize            >=2M                                                   8M                                           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.67.0                                       Pass        
cURL SSL Version                   >=OpenSSL/0.9.8l                                       OpenSSL/1.1.1d                               Pass        
PHP Allow URL fopen                YES                                                    
PHP Exif Support                   NO                                                     
PHP IPTC Support                   YES                                                    
PHP XML Support                    YES                                                    
PHP Disabled Functions             exec, passthru, shell_exec, system,                    
PHP Loaded Extensions              Core, PDO, Phar, Reflection, SPL, SimpleXML, apcu, bcmath, calendar, cgi-fcgi, ctype, curl, date, dom, ffmpeg, filter, ftp, gd, hash, iconv, imagick, imap, json, libxml, mbstring, memcache, memcached, mysqli, mysqlnd, openssl, pcntl, pcre, pdo_mysql, pdo_sqlite, posix, session, sockets, sqlite3, standard, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zlib
MySQL                              
MySQL Version                      >=5.0                                                  10.3.22-MariaDB                              Pass        
MySQL Mode                         NOT SET                                                
MySQL Client Encoding              utf8mb4                                                
Server Info                        
Server Software                    Apache                                                 
Operating System                   Linux                                                  
Architecture                       64 bit                                                 
Server Protocol                    HTTP/2.0                                               
HTTPS                              ON - on                                                
Server self connect                Not expected HTTP response body:                       
User Agent                         Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.106 Safari/537.36
Gateway Interface                  CGI/1.1                                                
Memory Usage                       65.34 MB                                               
Request Time                       1582598396                                             
Accept Content                     text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Charset Content             N/A                                                    
MainWP Settings                    
Number Of Child Sites              2                                                      
Use WP-Cron                        No                                                     
Optimize for Shared Hosting or Big NetworksNo                                                     
Automatic Daily Update             Disabled                                               
Abandoned Plugins/Themes Tolerance                                                        
Maximum number of posts to return  50                                                     
Maximum number of pages to return                                                         
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                     
Advanced Custom Fields             5.8.7                                                  Active                                       
Akismet Anti-Spam                  4.1.3                                                  Active                                       
Duplicator                         1.3.28                                                 Active                                       
Hello Dolly                        1.7.2                                                  Active                                       
HubSpot All-In-One Marketing - Forms, Popups, Live Chat7.19.146                                               Active                                       
Jetpack by WordPress.com           8.2.3                                                  Active                                       
MainWP Child                       4.0.6.2                                                Active                                       
MainWP Dashboard                   4.0.7.2                                                Active                                       
One Click Demo Import              2.5.2                                                  Active                                       
Page Builder by SiteOrigin         2.10.14                                                Active                                       
PHP Code Widget                    2.3                                                    Active                                       
Simple Page Sidebars               1.2.1                                                  Active                                       
Site Kit by Google                 1.3.1                                                  Active                                       
TJ Custom CSS                      0.1.6                                                  Active                                       
TJ Shortcodes                      0.1.3                                                  Active                                       
UpdraftPlus - Backup/Restore       1.16.22                                                Active                                       
WooCommerce                        3.9.2                                                  Active                                       

Thanks.

Nevermind, now it does do everything as expected. We were moving to a new server and there was a problem with the setup of the memory (there was much less RAM allocated to Apache than the server had available). I don’t know if this fixed the problem, but the test now shows everything propagating as expected. Thanks.

2 Likes

Thanks for letting us now. I am happy to see that the problem is fixed. Just so I am 100% sure that I understand, did you move your MainWP Dashboard site or the child site in issue?

Thanks @pwojewodzic, I checked the report and it looks ok.

However, after re-reading your original post, I got an idea, is it possible that the xxx.jpg picture already existed on the child site, so after you published it from your MainWP Dashboard, it got renamed and that caused a problem?

Can you try to retest this with some other image?

@bogdan on child site I get 404 error beacuse there isn’t any original xxx.jpg file. With feature image is everything fine, but all images in content have the same issue.

Thanks, Bogdan. No, I didn’t have to do anything. It just started working. Thank you.

2 Likes

Thanks for the update. If you can please feel free to send me a temporary access to your Dashboard and one child site via private message so I can check what is going on.

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