Jul 05, 2009, 01:22 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Search via SMF or Google: modx forums all of modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
News:Read what MODx Developers say: MODx Dev. Blogs
Pages: [1] 2 3 ... 8   Go Down
  Print  
Author Topic: [Module] Easy Peasy Gallery 2  (Read 45784 times)
0 Members and 1 Guest are viewing this topic.
xwisdom
Foundation
*
Posts: 1,732



« on: Dec 19, 2005, 10:26 PM »

Hello Everyone,

Here's the modxified verion of Easy Peasy Gallery 2 by Nick_NP from Etomite.
I've managed to update this module to support the lastest fixes etc.


Quick Installation and Setup quide:
-------------------------------------

1) Download and extract the photogallery.zip file.
2) FTP or copy the files into the root of your website
3) Run the install/index.php file to install the module
4) Follow the on screen instructions.

After install run the PhotoGallery Admin panel and click on the Install/Clear Galleries button.

Usage:
Calls to the gallery snippet are made using the gallery's ID (as displayed on the admin panel).

example:

[[PhotoGallery?galleryid=`4`]]

Where 4 is the id of your photo gallery.

For more information please see the help section accessible via the admin panel.


How to uninstall the module
---------------------------------------

1) Run the Admin Panel
2) Click the "Uninstall galleries" button to remove agllery tables
3) Delete the module, snippet and files (assets/modules/epg2) associated with the photo gallery

* epg2.zip (64.46 KB - downloaded 2096 times.)
Logged

xWisdom
www.xwisdomhtml.com
The fear of the Lord is the beginning of wisdom:
MODx Co-Founder - Create and do more with less.
zatoichi
Jr. Member
*
Posts: 30



« Reply #1 on: Dec 20, 2005, 03:01 AM »

Quote
Unable to load dynamic library './gd2.so' - ./gd2.so: cannot open shared object file: No such file or directory

What did I do wrong?

I am still learning how modules work etc, (Still learning how the TV's work for that matter.)
Logged

"Adversus solem ne loquitor." -don't speak against the sun (don't waste your time arguing the obvious) Something I sometimes need to be reminded of.
sottwell
Documentation Team
*
Posts: 8,837



WWW
« Reply #2 on: Dec 20, 2005, 03:17 AM »

Looks like your Apache server's php module was compiled without the GD library support.  Check the phpinfo() view in Administration->View system info.  You should see something like this '--with-gd' in the Configure command section (near the top) as well as a "gd" section further down in the (alphabetical) list of  available modules.

I see that the module attempts to dynamically load the GD library if it's not available; here's some interesting info on the dl() function:

http://il2.php.net/dl
« Last Edit: Dec 20, 2005, 03:40 AM by sottwell » Logged

sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html
sottwell
Documentation Team
*
Posts: 8,837



WWW
« Reply #3 on: Dec 20, 2005, 03:34 AM »

Heh!  The leading comment in the setup.info file is still

Quote
#:: SMF Connector Setup file
Logged

sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html
zatoichi
Jr. Member
*
Posts: 30



« Reply #4 on: Dec 20, 2005, 03:17 PM »

Looks like your Apache server's php module was compiled without the GD library support.  Check the phpinfo() view in Administration->View system info.  You should see something like this '--with-gd' in the Configure command section (near the top) as well as a "gd" section further down in the (alphabetical) list of  available modules.

I see that the module attempts to dynamically load the GD library if it's not available; here's some interesting info on the dl() function:

http://il2.php.net/dl

No, phpinfo tells me gd is installed. '--with-gd'
GD version = bundled (2.0.28 compatible)
Should there be a mod_gd listing as well?

My first basic assumption is always that I don't know enough about how it's supposed to work. So I'm not sure if I'm missing something about how the module system... for instance I was looking for the admin panel and finally figured out that the box to the left of the module popped up a menu. I chose ->run module. That's when I get the error.

For instance, the quickedit module runs a help page. Am I assuming correctly that this is where and how to run the admin panel?

The other thing I thought was maybe I'm missing a file.
« Last Edit: Dec 20, 2005, 03:27 PM by zatoichi » Logged

"Adversus solem ne loquitor." -don't speak against the sun (don't waste your time arguing the obvious) Something I sometimes need to be reminded of.
sottwell
Documentation Team
*
Posts: 8,837



WWW
« Reply #5 on: Dec 20, 2005, 04:06 PM »

No, looks like your gd is fine.  Hopefully the module's developers will have more to say.  I only ran the earlier version for a while, so really can't say much more.
Logged

sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html
zi
MODx Special Forces /
Administrator
*
Posts: 3,329


May Peace Be On You


WWW
« Reply #6 on: Dec 20, 2005, 04:10 PM »

I get this in EventLog viewer:
Code:
Not supported in multithreaded Web servers - use extension=php_gd2.dll in your php.ini

I have XAMPP install in windows, and GD2 is enabled and working in other tests.

regards,

zi
Logged

xwisdom
Foundation
*
Posts: 1,732



« Reply #7 on: Dec 20, 2005, 09:05 PM »

Hmmm,

Try commenting out lines 68-75 inside the module code. The module is trying to load the GD lib but it seems to be failing on different install.

Code:
// attempt to load GD2 library
if (!extension_loaded('gd2')) {
   if (strtoupper(substr(PHP_OS, 0,3) == 'WIN')) {
if(!@dl('php_gd2.dll')) return 0;
   } else {
if(!@dl('gd2.so')) return 0;
   }
}
Logged

xWisdom
www.xwisdomhtml.com
The fear of the Lord is the beginning of wisdom:
MODx Co-Founder - Create and do more with less.
zatoichi
Jr. Member
*
Posts: 30



« Reply #8 on: Dec 20, 2005, 11:00 PM »

Yes. It works like a charm now. I even created a test gallery to make sure. Although the wanring that I didn't have gallery tables did throw me for a second.
Logged

"Adversus solem ne loquitor." -don't speak against the sun (don't waste your time arguing the obvious) Something I sometimes need to be reminded of.
zatoichi
Jr. Member
*
Posts: 30



« Reply #9 on: Dec 20, 2005, 11:12 PM »

Um, well I have a gallery but clicking on the thumbnails doesn't take me anywhere. I see the status bar making alot of noise but it's too fast for me to read. No actually, I think it just reloads the same page.

I think I need to delve in a little and read to see if there is a setting I neglected.
Logged

"Adversus solem ne loquitor." -don't speak against the sun (don't waste your time arguing the obvious) Something I sometimes need to be reminded of.
xwisdom
Foundation
*
Posts: 1,732



« Reply #10 on: Dec 21, 2005, 01:26 AM »

Is the page cached?

try using [!PhotoGallery!]
Logged

xWisdom
www.xwisdomhtml.com
The fear of the Lord is the beginning of wisdom:
MODx Co-Founder - Create and do more with less.
zatoichi
Jr. Member
*
Posts: 30



« Reply #11 on: Dec 22, 2005, 03:30 AM »

Is the page cached?

try using [!PhotoGallery!]

DOH!

I'm having a Homer Simpson moment.

Works great now.

I need to play with this. I just printed out the module script to read in bed... 29 pages!
Logged

"Adversus solem ne loquitor." -don't speak against the sun (don't waste your time arguing the obvious) Something I sometimes need to be reminded of.
Tsabrack
New Member
*
Posts: 1


« Reply #12 on: Dec 26, 2005, 09:28 AM »

Hmmm,

Try commenting out lines 68-75 inside the module code. The module is trying to load the GD lib but it seems to be failing on different install.

Code:
// attempt to load GD2 library
if (!extension_loaded('gd2')) {
   if (strtoupper(substr(PHP_OS, 0,3) == 'WIN')) {
if(!@dl('php_gd2.dll')) return 0;
   } else {
if(!@dl('gd2.so')) return 0;
   }
}


Heya, I had the same problem with xammp. The solution is pretty simple. If you have a look had Phpinfo there's no GD2, but there's a GD bundled (2.0.28 compatible). So this line:
if (!extension_loaded('gd2')) {


To

if (!extension_loaded('gd')) {


It worked perfectly for me.

Tsa
Logged
Briggsy
Sr. Member
****
Posts: 372



WWW
« Reply #13 on: Dec 27, 2005, 03:46 PM »


3) Run the install/index.php file to install the module
4) Follow the on screen instructions.

After install run the PhotoGallery Admin panel and click on the Install/Clear Galleries button.


A simple question, how do you run the admin module?

After step 3, I was given the option to close the installer and delete the install directory. The manager then loaded, but gave an error saying that the install directory hadn't been deleted, so I did that manually. However, I get no "on screen instructions"

If I try to run the module form within the manager I get an error saying"

Photo Gallery - Module runtime error:
An error occurred while loading the module. Please see the event log.

The log file shows

Code:
Event Id:  Source:  Photo Gallery - Module
 
Date: 28-Dec-2005 10:41 AM User: admin
 

Dynamically loaded extentions aren't enabled
Logged

Emergency Management Academy of New Zealand
      http://www.emanz.ac.nz

MODx Sandbox   Login: sandbox  Password: castle

Admin Sandbox   Login: sandbox  Password: castle
zi
MODx Special Forces /
Administrator
*
Posts: 3,329


May Peace Be On You


WWW
« Reply #14 on: Dec 28, 2005, 03:18 AM »

You need to comment the following lines to run it: (because some server config does not have dynamic loading enabled, including XAMPP on Windows)
Code:
// attempt to load GD2 library
if (!extension_loaded('gd2')) {
   if (strtoupper(substr(PHP_OS, 0,3) == 'WIN')) {
if(!@dl('php_gd2.dll')) return 0;
   } else {
if(!@dl('gd2.so')) return 0;
   }
}

OR

try changing:

Code:
if (!extension_loaded('gd2'))

to

Code:
if (!extension_loaded('gd'))

After adopting one method from the 2 above, it should work.

regards,

zi
Logged

Pages: [1] 2 3 ... 8   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!