Mon. - Fri. 9 am - 5 pm Ask a Question
Remember me

Error 500 opening the gallery component

5 years 9 months ago #1

  • Marcel's Avatar
  • Marcel
Hi,
the gallery component has been working completely perfect on my website. Now there were two months where I could not do anything with the website because of my job.

I tried to get access to the gallery now to create some new elements but whenever I try to open the component inside the backend (Joomla 3.6) I just get an Internal Server Error (500). But the gallery is still working on the frontpage without any problems.

Do you have any idea what could have happened during the two months - or even better do you have a solution for this? I dont want to install everything again. Lots of photos... :(

5 years 9 months ago #2

  • Artem's Avatar
  • Artem
  • Posts: 9773
Hello,

Enable Development Error Report in Joomla Global configurations. Then go to gallery you should see error text. Send us error text

Regards,

5 years 9 months ago #3

  • Marcel's Avatar
  • Marcel
Warning: simplexml_load_string(): Entity: line 61: parser error : Entity 'hellip' not defined in /mnt/webu/a2/24/54610624/htdocs/mia16/administrator/components/com_bagallery/helpers/bagallery.php on line 86 Warning: simplexml_load_string():
Please allow up to 5 seconds…

in /mnt/webu/a2/24/54610624/htdocs/mia16/administrator/components/com_bagallery/helpers/bagallery.php on line 86 Warning: simplexml_load_string(): ^ in /mnt/webu/a2/24/54610624/htdocs/mia16/administrator/components/com_bagallery/helpers/bagallery.php on line 86 Warning: simplexml_load_string(): Entity: line 75: parser error : Opening and ending tag mismatch: br line 73 and div in /mnt/webu/a2/24/54610624/htdocs/mia16/administrator/components/com_bagallery/helpers/bagallery.php on line 86 Warning: simplexml_load_string(): in /mnt/webu/a2/24/54610624/htdocs/mia16/administrator/components/com_bagallery/helpers/bagallery.php on line 86 Warning: simplexml_load_string(): ^ in /mnt/webu/a2/24/54610624/htdocs/mia16/administrator/components/com_bagallery/helpers/bagallery.php on line 86 Warning: simplexml_load_string(): Entity: line 76: parser error : Opening and ending tag mismatch: div line 71 and td in /mnt/webu/a2/24/54610624/htdocs/mia16/administrator/components/com_bagallery/helpers/bagallery.php on line 86 Warning: simplexml_load_string(): in /mnt/webu/a2/24/54610624/htdocs/mia16/administrator/components/com_bagallery/helpers/bagallery.php on line 86 Warning: simplexml_load_string(): ^ in /mnt/webu/a2/24/54610624/htdocs/mia16/administrator/components/com_bagallery/helpers/bagallery.php on line 86 Warning: simplexml_load_string(): Entity: line 77: parser error : Opening and ending tag mismatch: td line 50 and tr in /mnt/webu/a2/24/54610624/htdocs/mia16/administrator/components/com_bagallery/helpers/bagallery.php on line 86 Warning: simplexml_load_string(): in /mnt/webu/a2/24/54610624/htdocs/mia16/administrator/components/com_bagallery/helpers/bagallery.php on line 86 Warning: simplexml_load_string(): ^ in /mnt/webu/a2/24/54610624/htdocs/mia16/administrator/components/com_bagallery/helpers/bagallery.php on line 86 Warning: simplexml_load_string(): Entity: line 78: parser error : Opening and ending tag mismatch: tr line 49 and table in /mnt/webu/a2/24/54610624/htdocs/mia16/administrator/components/com_bagallery/helpers/bagallery.php on line 86 Warning: simplexml_load_string(): in /mnt/webu/a2/24/54610624/htdocs/mia16/administrator/components/com_bagallery/helpers/bagallery.php on line 86 Warning: simplexml_load_string(): ^ in /mnt/webu/a2/24/54610624/htdocs/mia16/administrator/components/com_bagallery/helpers/bagallery.php on line 86 Warning: simplexml_load_string(): Entity: line 79: parser error : Opening and ending tag mismatch: table line 48 and body in /mnt/webu/a2/24/54610624/htdocs/mia16/administrator/components/com_bagallery/helpers/bagallery.php on line 86 Warning: simplexml_load_string():

in /mnt/webu/a2/24/54610624/htdocs/mia16/administrator/components/com_bagallery/helpers/bagallery.php on line 86 Warning: simplexml_load_string(): ^ in /mnt/webu/a2/24/54610624/htdocs/mia16/administrator/components/com_bagallery/helpers/bagallery.php on line 86 Warning: simplexml_load_string(): Entity: line 80: parser error : Opening and ending tag mismatch: body line 47 and html in /mnt/webu/a2/24/54610624/htdocs/mia16/administrator/components/com_bagallery/helpers/bagallery.php on line 86 Warning: simplexml_load_string(): in /mnt/webu/a2/24/54610624/htdocs/mia16/administrator/components/com_bagallery/helpers/bagallery.php on line 86 Warning: simplexml_load_string(): ^ in /mnt/webu/a2/24/54610624/htdocs/mia16/administrator/components/com_bagallery/helpers/bagallery.php on line 86 Warning: simplexml_load_string(): Entity: line 81: parser error : Premature end of data in tag html line 2 in /mnt/webu/a2/24/54610624/htdocs/mia16/administrator/components/com_bagallery/helpers/bagallery.php on line 86 Warning: simplexml_load_string(): in /mnt/webu/a2/24/54610624/htdocs/mia16/administrator/components/com_bagallery/helpers/bagallery.php on line 86 Warning: simplexml_load_string(): ^ in /mnt/webu/a2/24/54610624/htdocs/mia16/administrator/components/com_bagallery/helpers/bagallery.php on line 86 Notice: Trying to get property of non-object in /mnt/webu/a2/24/54610624/htdocs/mia16/administrator/components/com_bagallery/helpers/bagallery.php on line 87

5 years 9 months ago #4

  • Artem's Avatar
  • Artem
  • Posts: 9773
Hi,

1. Create backup of your website
2. Update Gallery component to latest version, install latest version above your current version
3. Clear Joomla and Browser cache

If update will not help you

4. Go to: administrator >> components >> com_bagallery >> helpers >> bagallery.php

5. Comment, using /* */ Lines from 81 to 100
public static function checkUpdate($version)
    {
        $version = str_replace('.', '', $version);
        $url = 'http://www.balbooa.com/updates/bagallery/com_bagallery_update.xml';
        $curl = self::getContentsCurl($url);
        $xml = simplexml_load_string($curl);
        $newVersion = (string)$xml->version;
        $newVersion = str_replace('.', '', $newVersion);
        $exp = strlen($version);
        $pow = pow(10, $exp);
        $version = $version / $pow;
        $exp = strlen($newVersion);
        $pow = pow(10, $exp);
        $newVersion = $newVersion / $pow;
        if ($newVersion > $version) {
            return false;
        } else {
            return true;
        }
    }

Regards,

5 years 9 months ago #5

  • Marcel's Avatar
  • Marcel
Step 1-3 didnt worked.

The result of step 4 and 5 is the following error:

Fatal error: Call to undefined method bagalleryHelper::checkUpdate() in /mnt/webu/a2/24/54610624/htdocs/mia16/administrator/components/com_bagallery/views/galleries/tmpl/default.php on line 16

5 years 9 months ago #6

  • Marcel's Avatar
  • Marcel
Ok I commented this line too and it seems to work now. With the commented lines it always shows me the UPDATE NOW hint. So is there any other way to fix the problem in the long term?

5 years 9 months ago #7

  • Artem's Avatar
  • Artem
  • Posts: 9773
Marcel wrote:
So is there any other way to fix the problem in the long term?

By some reasons your hosting is block auto update feature. You can try to install Gallery at localhost and you will not see any problems

For the moment I can propose you to disable Auto update notification using CSS

Add this code to:
.ba-update-message {
    display: none;
}

administrator >> components >> com_bagallery >> assets >> css >> ba-admin.css

Regards,
Powered by Kunena Forum