Recent Topics

Stain skin

Started by on Oct 19, 2017 – Contents updated: Oct 24, 2017

Oct 19, 2017 12:57    

First of all I would like to say Thank You to the author of this skin, it was very helpful for me.

But I faced to some problem using it yesterday. I see my portfolio page only in the admin panel, when I end the session, i see the page with a mistake :

Fatal error: Call to a member function get_url() on a non-object in ...../public_html/skins/stain_skin/_skin.class.php on line 1447.

Or (i tried it on another site) :

Fatal error: Call to a member function get_url() on boolean in ....../public_html/skins/stain_skin/_skin.class.php on line 1263.

These lines are both about the finding the url of the header image of the page, in header settings (line 1263) and search display options (line 1447) relatively :

$custom_css .= ".main_header{ background-image: url('".$bg_image_File->get_url()."') }";

$custom_css .= ".search_head{ background-image: url('".$bg_image_File1->get_url()."') }"

As I see, they are written with no mistakes. System parameters are all OK.

What is the kind of problem, can anybody promt how it should be solved ?
Thank you in advance.

Oct 22, 2017 10:01

Hi @yulia, I confirm the error. We are sending it now to the dev team in order to be fixed.

You can temporarily remove lines 1263, 1447 and 1512 of _skin.class.php. Replacing them as following is another option in order to keep your site working without missing images:

Line 1263

$custom_css .= ".main_header{ background-image: url('/skins/stain_skin/assets/images/header/header-5.jpg') }";

Line 1447

$custom_css .= ".search_head{ background-image: url('/skins/stain_skin/assets/images/header/header-8.jpg') }";

Line 1512

$custom_css .= '.main_content .error_404, .disp_login .main_content, .disp_lostpassword .main_content, .disp_register .main_content, .disp_access_requires_login .main_content { background-image: url(/skins/stain_skin/assets/images/content/bgc-1.jpg) }';

Thanks for reporting.

Regards!

Oct 24, 2017 13:08

I replaced. It works. Thank you very much.


Form is loading...

CMS software – This forum is powered by b2evolution CMS, a complete engine for your website.