MainWP Community

Boilerplate Extension - "ERROR: Empty post id"

Hello,

I’ve discovered an issue where boilerplate posts fail to publish and present “ERROR: Empty post id”.

This seems to happen if the post on the child site is deleted, then the boilerplate post is republished to that site.

After the post is deleted on the child site, the MainWP Boilerplate Extension still shows that post as being published to the child. Perhaps some kind of synchronization error?

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.0.7.3                                                4.0.7.3                                      Pass        
MainWP Upload Directory            Writable                                               Writable                                     Pass        
MainWP Extensions                  
Boilerplate Extension              4.0.2                                                  Active                                       Pass        
MainWP Branding Extension          4.0.1                                                  Active                                       Pass        
MainWP Bulk Settings Manager Extension4.0.2                                                  Active                                       Pass        
MainWP Custom Dashboard Extension  4.0                                                    Active                                       Pass        
MainWP Favorites Extension         4.0.3                                                  Active                                       Pass        
MainWP File Uploader Extension     4.0                                                    Active                                       Pass        
WordPress                          
WordPress Version                  >=3.6                                                  5.4.2                                        Pass        
WordPress Memory Limit             >=64M                                                  40M                                          Warning     
MultiSite Disabled                 =true                                                  true                                         Pass        
FileSystem Method                  = direct                                               direct                                       Pass        
PHP                                
PHP Version                        >=5.6                                                  7.4.6                                        Pass        
PHP Safe Mode Disabled             =true                                                  true                                         Pass        
PHP Max Execution Time             >=30 seconds                                           3600                                         Pass        
PHP Max Input Time                 >=30 seconds                                           3600                                         Pass        
PHP Memory Limit                   >=128M                                                 512M                                         Pass        
PCRE Backtracking Limit            >=10000                                                1000000                                      Pass        
PHP Upload Max Filesize            >=2M                                                   50M                                          Pass        
PHP Post Max Size                  >=2M                                                   100M                                         Pass        
SSL Extension Enabled              =true                                                  true                                         Pass        
SSL Warnings                       = empty                                                                                             Pass        
cURL Extension Enabled             =true                                                  true                                         Pass        
cURL Timeout                       >=300 seconds                                          5                                            Warning     
cURL Version                       >=7.18.1                                               7.58.0                                       Pass        
cURL SSL Version                   >=OpenSSL/0.9.8l                                       OpenSSL/1.1.1                                Pass        
PHP Allow URL fopen                YES                                                    
PHP Exif Support                   YES ( V7.4.)                                           
PHP IPTC Support                   YES                                                    
PHP XML Support                    YES                                                    
PHP Disabled Functions             apache_child_terminate, apache_get_modules, apache_get_version, apache_getenv, apache_note, apache_setenv, disk_free_space, disk_total_space, diskfreespace, dl, exec, fastcgi_finish_request, link, opcache_get_configuration, opcache_get_status, passthru, pclose, pcntl_exec, popen, posix_getpid, posix_getppid, posix_getpwuid, posix_kill, posix_mkfifo, posix_setegid, posix_seteuid, posix_setgid, posix_setpgid, posix_setsid, posix_setuid, posix_uname, proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, shell_exec, show_source, symlink, system,
PHP Loaded Extensions              Core, FFI, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, bcmath, bz2, calendar, ctype, curl, date, dba, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, gnupg, hash, iconv, igbinary, imagick, imap, intl, json, ldap, libxml, mbstring, memcached, msgpack, mysqli, mysqlnd, newrelic, openssl, pcre, pdo_mysql, posix, readline, redis, session, shmop, soap, sockets, sodium, ssh2, standard, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib
MySQL                              
MySQL Version                      >=5.0                                                  5.7.29-32-log                                Pass        
MySQL Mode                         ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
MySQL Client Encoding              utf8                                                   
Server Info                        
Server Software                    Apache                                                 
Operating System                   Linux                                                  
Architecture                       64 bit                                                 
Server Protocol                    HTTP/1.0                                               
HTTPS                              ON - on                                                
Server self connect                Not expected HTTP response body: 
401 Authorization Required

401 Authorization Required
nginx
User Agent                         Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36
Gateway Interface                  CGI/1.1                                                
Memory Usage                       3.77 MB                                                
Request Time                       1598529003                                             
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                        Yes                                                    
Optimize for Shared Hosting or Big NetworksNo                                                     
Automatic Daily Update             Disabled                                               
Abandoned Plugins/Themes Tolerance 365                                                    
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     400                                                    
Maximum simultaneous requests per ip1                                                      
Minimum delay between requests to the same ip1000                                                   
Maximum simultaneous sync requests 8                                                      
Minimum simultaneous install/update requests3                                                      
Active Plugins                     
MainWP Dashboard                   4.0.7.3                                                Active                                       

Have you tried the MainWP 4.1 beta versions to see if solves the problem?

Not yet… this is for a large production website so it’s time critical.

Would you be able to send me temporary WP Admin access to your dashboard and one child site (via Private message) so I can take a look?

Unfortunately, I can’t provide guest access, but here are the steps to reproduce:

  1. from MainWP dashboard, create a new Boilerplate Post and publish to a child site
  2. from the child site’s WP Admin, put the boilerplate post in the Trash
  3. from the child site’s WP Admin, Permanently Delete the boilerplate post
  4. go back to MainWP dashboard and re-sync all child sites
  5. inspect the boilerplate post created in Step 1 via Boilerplate Extension
  6. notice that it still shows the post as being published on the child site
  7. re-publish the boilerplate post to the child site via Boilerplate Extension
  8. message is displayed: “Delete the post?”
  9. error is also displayed “ERROR: Empty post id”