Support Forums - Classified Ads Script Osclass
Osclass theme support => Free themes => Tatiana Osclass Responsive Theme => Topic started 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
-
Could you help me please
-
@Daniel
What you have in error log. Is there something? Have you tried to reupload theme files?
-
I have not found, I do not have this file error log.
I tried to reupload and to reinstall .... the same problem.
-
so look at the admin panel on localhost
attach foto
-
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];
-
Log does not contain anything important. If it works on one site and does not on another, problem is probably not in theme.
-
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.
-
Well that is question that probably do not relate to theme. You may try to use it on clean installation.
-
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 .
-
What lines?
-
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 } ?>
-
your opinion
-
PM me login to your oc-admin and ftp
-
@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
-
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)
>:( >:( :(
-
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.