updated "mGallery2" module Critical System Error  Top

Goto page: 1 - 2 [+1]

  • Hi,
    I installed the updated "mGellary2" module from the SVN
    - Uninstalled the old module and removed the files after a backup.
    - Uploaded the new files and installed and activated the module as usual .
    When I click on the admin icon of the module I get the following error:

    Quote

    System Error
    Critical error
    An unknown error has occured. The following error message was returned by the system
    Smarty error: [in gallery2_admin_menu.htm line 6]: [plugin] unknown tag - 'gallery2adminlinks' (core.load_plugins.php, line 118) (in file F:\xampp\htdocs\Zikula\includes\classes\Smarty\Smarty.class.php on line 1092)


    Anybody seen this before ? and maybe a solution?

    thx
    Michiel
  • hi,
    according to this error, at least gallery2_admin_menu.htm is still the old file (not the current version from SVN).

    regards,
    ph
  • Txh for the response Philip
    When I get the one from this location:
    https://code.zikula.org/svn/mgallery2/trunk/mGallery2/pntemplates/gallery2_admin_menu.htm
    is 202 bytes from 28-11-2008 according to my repository Browser
    the one I?m using has the following content:

    Code

    <!--[* $Id: gallery2_admin_menu.htm 59 2008-11-28 05:24:35Z mateo $ *]-->

    <!--[admincategorymenu xhtml=1]-->
    <div class="pn-adminbox">
        <h1><!--[pnml name='_GALLERY2']--></h1>
        <div class="pn-menu"><!--[moduleadminlinks modname='mGallery2']--></div>
    </div>


    Can?t find any newer or with different content
  • When I **

    Code

    <!-- * moduleadminlinks modname='mGallery2'*]-->
    it opens the admin section but with out the admin links
  • Maybe it has something to do with the previous DB fields of the 0.1 module
    When I uninstalled the 0.1 mGallery2 I only removed the files not the database records field
    Can this be of any consequents?
    Tomorrow I will see if I can remove them and start from scrats (NULL)
  • hi michiel,
    yes, the file from https://code.zikula.org/svn/mgallery2/trunk/mGallery2/pntemplates/gallery2_admin_menu.htm is correct.
    but the Smarty tag causing this error, is from the old files.
    so maybe clearing your pnrender/xanthia caches helps ;)

    regards,
    ph
  • Yes
    the old template is still in the pnRender compiled templates
    then you got the error. As phillip said, clear the compiled stuff icon_wink

    --
    - Mateo T. -
    Mis principios... son mis fines
  • Hi guys thx for the advice,
    First part is solved, now when I use the link to the gallery http://micware.nl/zi…hp?module=mGallery2

    I get the following error message: "Exit-Handler: Empty message received ... Stacktrace:"
    Wow Colors icon_cool

    Searched on the forum and the net! , but no clue
  • hi,
    make sure that you set up the correct path to gallery2 'base directory' in the mGallery2 configuration.
  • You where right again!
    A slash

    Code

    /
    was missing in the path, I must be sleeping icon_smile
    Did you notice that when you use the slideshow function , that I guess uses the built in Lightbox.js it only shows the first 25 images
    Or is this only on my installation?

    Thx a again ,
    Michiel
  • this looks like a problem of your gallery2 installation (maybe theme?).
    i just tested it using for example this link http://micware.nl/gallery2/main.php?g2_view=slideshow.Slideshow&g2_itemId=2053 and i can confirm, it only displays the first 25 images.
    but i also tested on my own installation and it worked fine, though using another kind of 'slideshow applet'. thats why i would guess its theme dependant. maybe you can try switching to another g2theme and test again :)

    on a side-note, the mGallery2 version you are using right now is not ready for production yet. for example the user/group synchronization is still broken (but being worked on). so hopefully you just wanted to help testing and finding bugs, thanks for that :)
    also, if you have a few minutes of spare time, we need translations of the language files, even though they are mostly relevant for the admin part. your help is greatly appreciated, thanks!

    regards,
    ph
  • Hi me again,
    I hope you don?t get tired of my questions icon_wink
    When I go in the block admin module I get the message

    Code

    Fatal error: Loader::require() [function.require]: Failed opening required 'X:\...\htdocs\Zikula\modules\mGallery2\pnblocks/g2helper.php' (include_path='.;X:\...\php\pear\') in X:\...\htdocs\Zikula\includes\pnobjlib\Loader.class.php on line 321


    When I place g2helper.php in ?\ modules\mGallery2\pnblocks I get

    Code

    Fatal error: Cannot redeclare mgallery2_helper_init() (previously declared in X:\...\htdocs\Zikula\modules\mGallery2\pnblocks\g2helper.php:21) in X:\...\htdocs\Zikula\modules\mGallery2\pnblocks\g2helper.php on line 79


    Any Idee?
  • I?m glad to help where I can, Philip,
    I will look into my native language (Dutch) and I see some other language variables in g2helper.php, maybe I can do something with that?, I have to see
    ,michiel
  • Hi Philip,
    I translated the English language file admin.php, common.php and version.php to the Dutch language to my best knowledge, some words are the same in Dutch or better left not translated

    next variables stood double in the commen.php file, removed line 50, 54 and 55

    _MG2MAXSIZE (Line 32 and 50)
    _MG2NUMIMAGES (Line 36 and 54)
    _MG2SHOWVIEWS (Line 37 and 55)

    I tested it on my site and it looks good
    What do you want me to do? Post it somewhere so you can download it or mail itto you?

    Let me know if you are interested,
    Michiel
  • michiel


    Code

    Fatal error: Loader::require() [function.require]: Failed opening required 'X:\...\htdocs\Zikula\modules\mGallery2\pnblocks/g2helper.php' (include_path='.;X:\...\php\pear\') in X:\...\htdocs\Zikula\includes\pnobjlib\Loader.class.php on line 321



    Do not copy g2helper.php in modules\mGallery2\pnblocks,
    seems that there's a bug including the g2helper :-s

    My code is not working because the system directory-separator (doh)

    Code

    Loader::requireOnce(str_replace('/pnblocks', '', dirname(__file__)).'/g2helper.php');


    Change the pnblocks/*.php files where it's used to:

    Code

    Loader::requireOnce(str_replace('pnblocks', '', dirname(__file__)).'g2helper.php');


    I'll commit the fix tomorrow,
    now i'm toooo tired icon_wink

    --
    - Mateo T. -
    Mis principios... son mis fines

Goto page: 1 - 2 [+1]

This list is based on the users active over the last 60 minutes.