Proiyke Posted November 9, 2019 Share Posted November 9, 2019 I get this response when I try to install Download Courier Deprixa Pro v3.2.6.2 – Integrated Web System on my website; Warning: Cannot modify header information - headers already sent by (output started at /home/speedora/public_html/Tracking/setup/index.php:68) in /home/speedora/public_html/Tracking/setup/index.php on line 71. Please I really need help with this Quote Link to comment https://forums.phpfreaks.com/topic/309499-courier-deprixa-pro-v3262-integrated-web-system-issues/ Share on other sites More sharing options...
Proiyke Posted November 9, 2019 Author Share Posted November 9, 2019 This is the code; <!-- contents area start --> <div class="row"> <div class="col-md-12"> <hr> <div class="table-responsive"> <div class=""> <div class="col-lg-12 col-md-12"> <?php if (!file_exists("../lib/config.ini.php")) { if (file_exists("install.php")) { header("Location: install.php"); } else { die("<div style='text-align:center'>" . "<span style='padding: 5px; border: 1px solid #999; background-color:#EFEFEF;" . "font-family: Verdana; font-size: 11px; margin-left:auto; margin-right:auto; display:inline-block'>" . "<b>Attention:</b>The configuration file is missing and a new installation cannot be started because the install file cannot be located</span></div>"); } } elseif (file_exists("update.php")) { header("Location: update.php"); } else { die("<div class='alert alert-warning'>" . "<button type='button' class='close' data-dismiss='alert' aria-label='Close'> <span aria-hidden='true'>×</span> </button>" . "<h3 class='text-warning'><i class='fa fa-exclamation-triangle'></i> Warning</h3> <b>Attention:</b> The file config.ini.php already exists!<br>If you want to reinstall Advanced Login System you must first delete the config.ini.php</div>"); } ?> </div> </div> </div> </div> </div> <!-- contents area end --> </div> Quote Link to comment https://forums.phpfreaks.com/topic/309499-courier-deprixa-pro-v3262-integrated-web-system-issues/#findComment-1571401 Share on other sites More sharing options...
Barand Posted November 9, 2019 Share Posted November 9, 2019 You cannot send headers when anything has already been output. You need to reorganize your code so that the php processing precedes the html output. Quote Link to comment https://forums.phpfreaks.com/topic/309499-courier-deprixa-pro-v3262-integrated-web-system-issues/#findComment-1571405 Share on other sites More sharing options...
Proiyke Posted November 9, 2019 Author Share Posted November 9, 2019 Barand, Please can you help me reorganise it, I'm so confused here. I tried it on local host and it worked fine Quote Link to comment https://forums.phpfreaks.com/topic/309499-courier-deprixa-pro-v3262-integrated-web-system-issues/#findComment-1571406 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.