Pro Reports - Header already sent

When ever I try and generate the PDF version in the Pro report extension it fails to download due to open correctly following error

Warning : Cannot modify header information - headers already sent in
wp-content/plugins/mainwp-pro-reports-extension/class/class-mainwp-pro-reports-pdf.php** on line 306

This is on a new install and I haven’t created any custom templates so using the default.

Hi @Rushty

Can you please post the community system report from your MainWP Dashboard for review? The report is located in your Dashboard under Info → 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.

Here you go:


### WordPress Check                Required                                               Detected                                     Status   ###

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

### PHP                            Required                                               Detected                                     Status   ###

cURL Extension Enabled             =true                                                  true                                         Pass        
cURL Timeout                       >=300 seconds                                          40                                           Warning     
cURL Version                       >=7.18.1                                               7.85.0                                       Pass        
OpenSSL Version                    >=OpenSSL/1.1.0                                        OpenSSL/3.0.8                                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 ( V7.4.)                                             
PHP IPTC Support                   N/A                                                    YES                                                      
PHP Loaded Extensions              N/A                                                    Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, bcmath, bz2, calendar, ctype, curl, date, dba, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, json, libxml, mbstring, memcached, mysqli, mysqlnd, openssl, pcre, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, posix, pspell, session, shmop, soap, sockets, sodium, sqlite3, standard, sysvmsg, sysvsem, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib            
PHP Max Execution Time             >=30 seconds                                           120                                          Pass        
PHP Max Input Time                 >=30 seconds                                           120                                          Pass        
PHP Memory Limit                   >=128M                                                 768M                                         Pass        
PHP Post Max Size                  >=2M                                                   256M                                         Pass        
PHP Safe Mode Disabled             =true                                                  true                                         Pass        
PHP Upload Max Filesize            >=2M                                                   256M                                         Pass        
PHP Version                        >=7.4                                                  7.4.33                                       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                                                    utf8                                                     
MySQL Mode                         N/A                                                    NO_ENGINE_SUBSTITUTION                                   
MySQL Version                      >=5.0                                                  5.7.39-42-log                                Pass        

### Server Configuration           Detected Value                                      ###

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.7
Accept-Charset Content             N/A                                                    
Architecture                       64		 bit                                               
Gateway Interface                  CGI/1.1                                                
HTTPS                              ON                                                     
Memory Usage                       67.65 MB                                               
Operating System                   Linux                                                  
Request Time                       1687953434                                             
Server Protocol                    HTTP/1.0                                               
Server self connect                Response Test O.K.                                     
Server Software                    Apache                                                 
User Agent                         Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.58

### MainWP Dashboard Settings      Detected Value                                      ###

Abandoned plugins/themes tolerance 365                                                    
Basic uptime monitoring enabled    Yes                                                    
MainWP Dashboard Version           Latest: 4.4.3.3 | Detected: 4.4.3.3 Pass               
MainWP legacy backups enabled      No                                                     
Maximum number of comments         50                                                     
Maximum number of pages to return  50                                                     
Maximum number of posts to return  50                                                     
Maximum simultaneous install and update requests                                                       
Maximum simultaneous requests      4                                                      
Maximum simultaneous requests per ip1                                                      
Maximum simultaneous sync requests                                                        
Minimum delay between requests     200                                                    
Minimum delay between requests to the same ip1000                                                   
Number of child sites              13                                                     
Optimize for shared hosting or big networksNo                                                     
Plugin advanced automatic updates enabledYes                                                    
Primary Backup System              MainWP UpdraftPlus Extension                           
REST API enabled                   No                                                     
Site health monitoring enabled     Yes                                                    
Theme advanced automatic updates enabledYes                                                    
Use WP Cron                        No                                                     
WP Core advanced automatic updates enabledYes                                                    

### Extensions                     Version                                                License                                      Status   ###

Activity Log for MainWP            2.1.0                                                                                                           
Advanced Uptime Monitor Extension  5.2.3                                                  Actived                                      Pass        
MainWP Bulk Settings Manager Extension4.0.5                                                  Actived                                      Pass        
MainWP Cache Control Extension     4.0.2                                                  Actived                                      Pass        
MainWP Comments Extension          4.0.7                                                  Actived                                      Pass        
MainWP Database Updater Extension  4.0.3                                                  Actived                                      Pass        
MainWP Domain Monitor Extension    4.0.5                                                  Actived                                      Pass        
MainWP Favorites Extension         4.0.11                                                 Actived                                      Pass        
MainWP iThemes Security Extension  4.1.3                                                  Actived                                      Pass        
MainWP Lighthouse Extension        4.0.4                                                  Actived                                      Pass        
MainWP Maintenance Extension       4.1.2                                                  Actived                                      Pass        
MainWP Pro Reports Extension       4.1.1                                                  Actived                                      Pass        
MainWP Rocket Extension            4.0.5                                                  Actived                                      Pass        
MainWP SSL Monitor Extension       4.0.3                                                  Actived                                      Pass        
MainWP Sucuri Extension            4.0.13                                                 Actived                                      Pass        
MainWP Team Control                4.0.3                                                  Actived                                      Pass        
MainWP UpdraftPlus Extension       4.0.8                                                  Deactivated                                  Warning     
MainWP Vulnerability Checker Extension4.1.4                                                  Actived                                      Pass        
MainWP White Label Extension       4.1.3                                                  Actived                                      Pass        
MainWP WordPress SEO Extension     4.0.3                                                  Actived                                      Pass        

### Plugin                         Version                                                Status                                    ###

Activity Log for MainWP            2.1.0                                                  Active                                       
iThemes Security                   8.1.6                                                  Active                                       
MainWP Dashboard                   4.4.3.3                                                Active                                       
Yoast SEO                          20.10                                                  Active                                       

Thanks for the system report.

Can you try temporarily disabling all plugins except for the MainWP Dashboard and Pro Reports and see if you can download the PDF then?
If you can, then please try enabling the rest of the plugins either individually or in batches until you find the conflict.

I have disabled everything apart from those two plugins and still the same issue


1 Like

Thanks for trying that.

Would you mind opening a private Help Desk ticket so we can collect some additional information & investigate further?

Just to provide an update on this -

The user noticed that the SiteGround VPS account where the Dashboard was hosted was seemingly causing multiple issues, not just this.

So after switching to another host, this issue was resolved.

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