Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Fatal Error on blankstrap  (Read 3611 times)

0 Members and 1 Guest are viewing this topic.

BerndS

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Fatal Error on blankstrap
« on: January 09, 2016, 04:54:54 pm »

Hello,
I have created a gallery that works fine.
I have tried the theme "blankstrap", but that doesn't show any albums. Latest uploades show up.
When I login as admin, I get the message:
error: Call to a member function attributes() on null in /home/www/kunstwerkevonclaudiafabian/themes/blankstrap/theme_listings.php on line 195
When I reduce the window width and the menue button appears, clicking the menue button doesn't have any effect.
What's wrong?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Fatal Error on blankstrap
« Reply #1 on: January 09, 2016, 10:39:36 pm »

doesn't show any albums

Does it work with other themes?
Logged

BerndS

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Fatal Error on blankstrap
« Reply #2 on: January 12, 2016, 10:23:44 pm »

Yes of course. I also used curve to modify that theme.
No problems with other themes (except of curve_responsive which crashes at all)
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Fatal Error on blankstrap
« Reply #3 on: January 13, 2016, 04:28:00 pm »

To fix that issue, open themes/blankstrap/theme_listings.php, find
Code: [Select]
            $el = &simplexml_load_string('<tmp>'.$category['cat_thumb'].'</tmp>');
            $attribs = &$el->a->img->attributes();
            unset($attribs->title);
            unset($attribs->border);
            $category['cat_thumb'] = $el->a->asXML();
and replace with
Code: [Select]
            if ($category['cat_thumb']) {
                $el = &simplexml_load_string('<tmp>'.$category['cat_thumb'].'</tmp>');
                $attribs = &$el->a->img->attributes();
                unset($attribs->title);
                unset($attribs->border);
                $category['cat_thumb'] = $el->a->asXML();
            }
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 19 queries.