updated "mGallery2" module Critical System Error

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
Hi Philip,Mateo

Block problem is solved, I don't know if Mateo already committed it.
Block erandom.php can now be removed, that one I created because random.php was not working

Block random.php and image.php are working correct on my side Specific block: I was not able to test because I don't know how to formulate the image path

What I notice is that the language variables in the admin menus are not translated to English, the variables are present in the common.php.

don't know about the scope of language variables?

Slideshow issue (only showing photo 1 -25) is happing with SeaBreeze (Xanthia3.0) and Extralite (legacy) theme, not only my own. Don't know if it has anything to do with one of the 3rd-Party modules I use!

Regards,
Michiel
Hi Michiel,

I already answered these exact questions in an email yesterday, but maybe you didnt receive it. So here we go again :D

Quote


Block problem is solved, I don't know if Mateo already committed it.
Block erandom.php can now be removed, that one I created because random.php was not working

Block random.php and image.php are working correct on my side Specific block: I was not able to test because I don't know how to formulate the image path

I think we still have to fix the block stuff in SVN, but as long as its working for you now... ;)
I have no idea about the 'Specific Block', didnt really look at it yet. For now the user/group synchronization is (apart from real life and other 'projects') of highest priority to me.

Quote


What I notice is that the language variables in the admin menus are not translated to English, the variables are present in the common.php.

don't know about the scope of language variables?

Which 'admin menus' do you mean? Those from the mGallery2 module or from gallery2?
Today, we fixed a lot of the language stuff for mGallery2 (removed duplicate defines, added your dutch translations, etc), so maybe you can update and check if this issue has been resolved :)

Quote


Slideshow issue (only showing photo 1 -25) is happing with SeaBreeze (Xanthia3.0) and Extralite (legacy) theme, not only my own. Don't know if it has anything to do with one of the 3rd-Party modules I use!

The slideshow problems are not related to mGallery2 (and therefore have nothing to do with your zikula theme or 3rd party modules), because I can reproduce this behavior on your site with standalone gallery2. But I can not reproduce it on my own installation.
However, since this does not seem mGallery2/zikula related, did you search the forums on gallery.menalto.com already?
I took a quick look and found this:
http://gallery.menalto.com/node/82813

Maybe you have more luck there :D

Thanks again for the translations
and best regards,
ph
Hi Philip,
This post en your mail crossed.

The mail was just to show what I was experiencing
I understand the priority

Let me know if you need any more testing

Thanks for the link, I already read that one.

Gr,
Michiel
Sorry, this was not meant to sound like an accusation :)



edited by: philipp2, Dec 16, 2008 - 11:50 AM
accusation? i missed something? icon_razz just kidding.

BTW, the problem in Blocks was present only in Windows servers, the directory separator and that stuff... now i've commited the fix icon_wink

--
- Mateo T. -
Mis principios... son mis fines
Good work icon_smile you both do!
My English is not so good, so maybe I wrote something that has more than one interpretation, Sorry! icon_smile



edited by: michiel, Dec 17, 2008 - 06:15 AM
I would like to insert "your album" link in the ext menù,
do you know which i the correct link?
It is a dynamic link so I don't know how to insert it :(
Hi,

I use the function.bt_userlinks.php plugin of "BlankTheme" theme (others are not(jet) working for me)
With the following lines
if (pnModAvailable('mGallery2')) {
$menu[] = array('mGallery2', "Gallery", pnModURL('mGallery2'), null);

I think you can use [mGallery2] or the complete URL in ext menu
maybe somebody can confirm this?
Thank you,
but "your album" link is th specific album of the user logged in that moment, not the album index [mGallery2]
it's a dynamic link because it's different for every user
in on top-right of the gallery2 home page
I use the random image block (of mGallery2) that has a URL that points to the album of the image you see and I have a horizontal menu bar with a link to the gallery module [mGallery2]

And i have the div style set to " onclick="location.href='http://xxxxx.xx/index.php?module=mGallery2';">"

This is what i can make of your question, I hope it helps
My problem is to link the album of the user that is logged-in at the moment, not the album of the pic displayed in that moment.
So I understand it's a very difficult "link" to create :)

Thank you for your answers