Osclass Support Forums

Osclass theme support => Free themes => Tatiana Osclass Responsive Theme => Topic started by: Daniel Petre on August 14, 2018, 10:19:02 PM

Title: Added banner in setting admin theme
Post by: Daniel Petre on August 14, 2018, 10:19:02 PM
I successfully added two new space for the ad in the theme.
It works ok , everything goes well. - on localhost
I archived the thema because I worked on the localhost and tried to upload it live/www.site.com
Thema has loaded ok but in the admin / Theme Settings panel  gives me the message:
"Appearance
Error loading theme file"

You can help me why it shows me an error
Title: Re: Added banner in setting admin theme
Post by: Daniel Petre on August 15, 2018, 06:47:00 PM
Could you help me please
Title: Re: Added banner in setting admin theme
Post by: MB Themes on August 15, 2018, 10:22:07 PM
@Daniel
What you have in error log. Is there something? Have you tried to reupload theme files?
Title: Re: Added banner in setting admin theme
Post by: Daniel Petre on August 18, 2018, 09:00:55 PM
I have not found, I do not have this file error log.
I tried to reupload and to reinstall .... the same problem.
Title: Re: Added banner in setting admin theme
Post by: Daniel Petre on August 18, 2018, 09:26:41 PM
so look at the admin panel on localhost
attach foto
Title: Re: Added banner in setting admin theme
Post by: Daniel Petre on August 18, 2018, 10:20:57 PM
I found in  oc-content/debug.log

[18-Aug-2018 22:04:54 Europe/Madrid] PHP Notice:  Undefined offset: 0 in /home/mysite/oc-content/themes/tatiana/functions.php on line 118
[18-Aug-2018 22:04:56 Europe/Madrid] PHP Notice:  Undefined offset: 0 in /home/mysite/oc-content/themes/tatiana/functions.php on line 118

in functions.php I looked at line 188 is
  $cat = $cat[0];




Title: Re: Added banner in setting admin theme
Post by: MB Themes on August 19, 2018, 10:22:57 AM
Log does not contain anything important. If it works on one site and does not on another, problem is probably not in theme.
Title: Re: Added banner in setting admin theme
Post by: Daniel Petre on August 19, 2018, 10:58:42 AM
How on localhost were I made first all changing it is works.  But when I took and I archive this from localhost and uploaded on live server is not  working the custom file for thema in admin panel.Same osclass same file ... If I insert two new ads in admin why is not uploaded corect.
Title: Re: Added banner in setting admin theme
Post by: MB Themes on August 19, 2018, 12:56:13 PM
Well that is question that probably do not relate to theme. You may try to use it on clean installation.
Title: Re: Added banner in setting admin theme
Post by: Daniel Petre on August 19, 2018, 04:30:48 PM
I made a new installation.
I created a subdomain a data base, osclass, and then loaded the theme.

There is some code in thema if I add lines to the theme no longer works.
In thema I ad lines in
admin/settings.php
functions.php
and item  & main.php where the ad appears.

is there any way to help me if I send you thema .
Title: Re: Added banner in setting admin theme
Post by: MB Themes on August 19, 2018, 08:32:17 PM
What lines?
Title: Re: Added banner in setting admin theme
Post by: Daniel Petre on August 19, 2018, 10:09:32 PM
the one I added is see attach and in this files I added
in main.php
        <?php if(osc_get_preference('theme_adsense', 'tatiana_theme') == 1) { ?>
      <div class="home-google">
          <center><?php echo osc_get_preference('banner_home', 'tatiana_theme'); ?></center>
        </div>
        <div class="home-google">
          <center><?php echo osc_get_preference('banner_home_second', 'tatiana_theme'); ?></center>
        </div>
        <div class="home-google">
          <center><?php echo osc_get_preference('banner_home_text', 'tatiana_theme'); ?></center>
        </div>
        <div class="home-google">
          <center><?php echo osc_get_preference('banner_home_textarea', 'tatiana_theme'); ?></center>
        </div>
      <?php } ?>

in seach.php
 <?php if(osc_get_preference('theme_adsense', 'tatiana_theme') == 1) { ?>
      <div class="adsense-search">
        <?php echo osc_get_preference('banner_search', 'tatiana_theme'); ?>       
      </div>
    <?php } ?>

in seach_gallery.php and search_list.php is the same between premium and simple ads
     <?php if(osc_get_preference('theme_adsense', 'tatiana_theme') == 1) { ?>
      <div class="adsense-search-premium">
        <?php echo osc_get_preference('banner_search_premium', 'tatiana_theme'); ?>       
      </div>
    <?php } ?>

in item.php it is two spaces
        <?php if(osc_get_preference('theme_adsense', 'tatiana_theme') == 1) { ?>
          <div class="adsense-item">
            <?php echo osc_get_preference('banner_item_long', 'tatiana_theme'); ?>       
          </div>
        <?php } ?>

        <?php if(osc_get_preference('theme_adsense', 'tatiana_theme') == 1) { ?>
          <div class="adsense-item">
            <?php echo osc_get_preference('banner_item', 'tatiana_theme'); ?>       
          </div>
        <?php } ?>
Title: Re: Added banner in setting admin theme
Post by: Daniel Petre on August 24, 2018, 12:25:15 AM
your opinion
Title: Re: Added banner in setting admin theme
Post by: MB Themes on August 24, 2018, 08:07:33 AM
PM me login to your oc-admin and ftp
Title: Re: Added banner in setting admin theme
Post by: MB Themes on August 25, 2018, 09:31:56 PM
@Daniel
I've looked there and it worked without issue, theme files loaded properly.
/oc-admin/index.php?page=appearance&action=render&file=oc-content/themes/elena/admin/settings.php
Title: Re: Added banner in setting admin theme
Post by: Daniel Petre on August 25, 2018, 11:45:04 PM
Hi,
Now I tried and did not load the settings for the Tatiana theme. see attach when I try log and load
I cleaned my laptop (cookies and other files)
 >:( >:( :(

Title: Re: Added banner in setting admin theme
Post by: MB Themes on August 26, 2018, 06:31:13 PM
I will not have more time to look on this, as it worked in time I accessed your site, it is not going to be related to theme.
On your place I would give a try to different hosting.