Advertisement:

Author Topic: Blank page when I try to configure anything [SOLVED]  (Read 1080 times)

crazynikos

  • Guest
Blank page when I try to configure anything [SOLVED]
« on: January 28, 2016, 04:11:31 pm »
Using:  OSClass 3.5.9
Theme:  Bender 3.0.1

In admin, whenever I make any changes including user settings and click on the save or update button, I get a blank page.
with this URL  http://www.crazyniko.com/osclassifieds/oc-admin/index.php
Any help would be appreciated.
Thanks for a great script.
Niko

Thank You all for your time & help.
« Last Edit: January 28, 2016, 08:49:54 pm by crazynikos »

Aficionado

  • Guest
Re: Blank page when I try to configure anything
« Reply #1 on: January 28, 2016, 04:23:43 pm »
Enable osclass debug to a log and see the error (fatal error).

A wild guess is that you run out of memory.


crazynikos

  • Guest
Re: Blank page when I try to configure anything
« Reply #2 on: January 28, 2016, 05:11:11 pm »
This is the error message in debug.log
[28-Jan-2016 08:54:51 America/Toronto] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/nikoniko/public_html/osclassifieds/oc-includes/osclass/utils.php:1740) in /home/nikoniko/public_html/osclassifieds/oc-includes/osclass/utils.php on line 1745

This is from utils.php:1738 to 1745
function osc_redirect_to($url, $code = null) {
    if(ob_get_length()>0) {
        ob_end_flush();
    }
    if($code!=null) {
        header("Location: ".$url, true, $code);
    } else {
        header("Location: ".$url);

Aficionado

  • Guest
Re: Blank page when I try to configure anything
« Reply #3 on: January 28, 2016, 05:19:03 pm »
Did you modify ANY PHP CODE of Osclass ?


crazynikos

  • Guest
Re: Blank page when I try to configure anything
« Reply #4 on: January 28, 2016, 05:46:04 pm »
Yes, in the theme functions.php
<?php
function cust_split_currency_symbol($currencyFormat) {
    $symbol = trim(preg_replace('~([^\W]|\.)~', '', $currencyFormat));
    $name = preg_replace('~[^a-zA-Z\s]~', '', $currencyFormat);
    $number = preg_replace('~[^0-9.,]~', '', $currencyFormat);
   
    return $symbol . $number . ' ' . $name;
}

osc_add_filter('item_price', 'cust_split_currency_symbol');
?>

and header.php

<div id="logo">
            <?php echo logo_header(); ?><a href="http://northcountryrv.ca/class-a-inspection/">
<img class="rvIcon" src="http://www.crazyniko.com/northcountryrv/uploads/ClassAicon.png" alt="" style="width:134px;height:58px;margin-left:auto; margin-left:auto;padding-left:10px ">
 <a href="http://northcountryrv.ca/class-c-inspection/">
<img class="rvIcon" src="http://www.crazyniko.com/northcountryrv/uploads/ClassCicon.png" alt="" style="width:123px;height:58px;margin-left:auto; margin-left:auto;padding-left:5px ">
<a href="http://northcountryrv.ca/class-c-inspection/">
<img class="rvIcon" src="http://www.crazyniko.com/northcountryrv/uploads/5thwheelicon.png" alt="" style="width:123px;height:58px;margin-left:auto; margin-left:auto;padding-left:10px ">
<a href="http://northcountryrv.ca/fifth-wheel-inspection/">
<img class="rvIcon" src="http://www.crazyniko.com/northcountryrv/uploads/TravelTrailerIcon.png" alt="" style="width:124px;height:58px;margin-left:auto; margin-left:auto;padding-left:10px "-->
                    </div>

Aficionado

  • Guest
Re: Blank page when I try to configure anything
« Reply #5 on: January 28, 2016, 07:38:02 pm »
Try to search here with

"PHP Warning:  Cannot modify header information - headers already sent by "

and see if it helps you.