Upload failed error on the Mainwp Dashboard Plugins-Install-Upload .zip File

hello

Whem I try to Upload a fille on Mainwp Plugins-Install-Upload .zip File give an erro to ALL zip files “Upload failed”

The others funcionalities are working but the Upload .zip File that is what I use more is not working.

Hi @gilbertocarvalhais

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.

@gilbertocarvalhais your email was sent to me and I am currently not in a place to answer it for you.

Please post your replies in thie community site so @bojan can assist you.

1 Like


### Server Info                    Required                                               Detected                                     Status   ###

MainWP Dashboard                   
MainWP Dashboard Version           4.1.12                                                 4.1.12                                       Pass        
MainWP Upload Directory            Writable                                               Writable                                     Pass        
MainWP Extensions                  
No installed extensions            
WordPress                          
WordPress Version                  >=3.6                                                  5.9.2                                        Pass        
WordPress Memory Limit             >=64M                                                  40M                                          Warning     
MultiSite Disabled                 =true                                                  true                                         Pass        
FileSystem Method                  = direct                                               direct                                       Pass        
PHP                                
PHP Version                        >=7.0                                                  7.4.25                                       Pass        
PHP Safe Mode Disabled             =true                                                  true                                         Pass        
PHP Max Execution Time             >=30 seconds                                           165                                          Pass        
PHP Max Input Time                 >=30 seconds                                           -1                                           Pass        
PHP Memory Limit                   >=128M                                                 512M                                         Pass        
PCRE Backtracking Limit            >=10000                                                1000000                                      Pass        
PHP Upload Max Filesize            >=2M                                                   128M                                         Pass        
PHP Post Max Size                  >=2M                                                   130M                                         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.64.0                                       Pass        
cURL SSL Version                   >=OpenSSL/1.1.0                                        OpenSSL/1.1.1d                               Pass        
PHP Allow URL fopen                YES                                                    
PHP Exif Support                   YES ( V7.4.)                                           
PHP IPTC Support                   YES                                                    
PHP XML Support                    YES                                                    
PHP Disabled Functions             _dyuweyrj4, _dyuweyrj4r, dl,                           
PHP Loaded Extensions              Core, FFI, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, bcmath, bz2, calendar, cgi-fcgi, ctype, curl, date, dba, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, imap, intl, ionCube Loader, json, libxml, mbstring, memcached, mongodb, mysqli, mysqlnd, openssl, pcre, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, posix, pspell, redis, session, soap, sockets, sodium, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib
MySQL                              
MySQL Version                      >=5.0                                                  5.6.50-log                                   Pass        
MySQL Mode                         NO_ENGINE_SUBSTITUTION                                 
MySQL Client Encoding              utf8                                                   
Server Info                        
Server Software                    Apache                                                 
Operating System                   Linux                                                  
Architecture                       64		 bit                                               
Server Protocol                    HTTP/1.1                                               
HTTPS                              OFF                                                    
Server self connect                Not expected HTTP response body:                       
User Agent                         Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.84 Safari/537.36
Gateway Interface                  CGI/1.1                                                
Memory Usage                       31.72 MB                                               
Request Time                       1649075247                                             
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                    
Number Of Child Sites              17                                                     
Use WP-Cron                        No                                                     
Optimize for Shared Hosting or Big NetworksNo                                                     
Automatic Daily Update             Install trusted updates                                
Abandoned Plugins/Themes Tolerance                                                        
Maximum number of posts to return                                                         
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                                                        
Maximum simultaneous install and update requests                                                       
Active Plugins                     
Akismet Anti-Spam                  4.2.2                                                  Inactive                                     
MainWP Dashboard                   4.1.12                                                 Active                                       

Thanks for the System report.

The server is failing the self connect test, which indicates that a security rule on the server is blocking requests which would also block the Extension installation.

Please check if there are any custom security rules in the .htaccess file, disable HTTP Basic Auth protection if you have it enabled, and disable the firewall in servers cPanel (or the cPanel equivalent).

It’s also good to have the Hosting support verify why the Server self connect (loopback connection) fails.

Hello
The .htaccess file don’t have any protection code.
The firewall in servers cPanel is now disable but the problem remain.
the MainWP Dashboard is the only active plugin.

Hey @gilbertocarvalhais

Thanks for verifying that.

The issue indicates that a server security rule is not permitting connections to the server.

Can you please have the support of your Hosting provider check why the Server self connect (a loopback connection) is failing?

@gilbertocarvalhais Where are you hosted? I just ran into the same issue here. I’m hosted on Vultr through RunCloud. By default, RunCloud disables the “tmpfile” function. After removing this from the exclusion list, my file upload worked. (WP send me an email there was something wrong on my site, listing tmpfile as the failed function)

Still does not resolve the failing self connect test (which I also have), but still… uploads work for me now.

my host is OVH.
And I alredy disable the firewall, but still have the same problem

@gilbertocarvalhais

Please try to contact the support of your Hosting provider and have them check why the Server self connect (a loopback connection) is failing.

1 Like

Problem resolved. It was caused by disabled tmpfile() PHP function.

1 Like

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