[EXTENSION] EGallery

There’s been a couple of comments on the review page. I already have quite a few ideas about what to add and how to make it better, I’m just very busy currently, so it might take a while.

Hi,

I’ve just tried to use your EGallery on my test site but when try to display the page that contain the gallery I get this error:

PHP Error

Description

Undefined offset: 0

Source File

/home/myuser/public_html/testsite/protected/extensions/gallery/EGalleryBase.php(194)

Seem that it has trouble to create the gallery thumbnails, and looking into the ‘thumb’ directory it only create one thumbnail, then I get an error.

Hope you can help me!

Found the issue: the extension doesn’t support more than 1 level of nested subfolders…

@scythah :

Hello,

I’m working with Yii v1.1.1 and eGallery v1.3 AND I got a similar problem than “viji” :

[indent]

com_exception

<b>Source:</b> Unknown<br/><b>Description:</b> Unknown

line in error is "$WshShell->Run("php.exe $Command", 0, false);

" in "D:\wamp\www\yii\fudoshin\protected\extensions\gallery\EGalleryBase.php"

[/indent]

I’m using a PC under windows XP and WAMP 2.0 (php 5.2.6).

WSH is v5.7 ; VBscript is v5.7 ; VMI is v2600.0000 ; ADSI is v5,0,00,0

I got the error when a thumbnail has to be generated.

If I manually launch the following command into a cmd/DOS box : "php.exe D:\wamp\www\yii\fudoshin\protected\extensions\gallery\EGalleryProcessQueue.php D:\wamp\www\yii\fudoshin\images\galleries 128 128"

The thumbnails are generated and the widget runs successfully !!!

Can you bring to me some help ?

On an other hand, to have the full folder description into the Gallery page I had to correct a source file. I had to modify the "EGalleryBase::readDescription" method as following :

[indent] after line "$i = 1;" I added : "$buffer = "";"

AND I modified "$buffer = fgets($fp, 10240);" which became "$buffer .= fgets($fp, 10240);"[/indent]

Thank you for the time you’ll spend for me.

Best reagrds.

That’s correct. I plan to support a lot more things in the future, but I haven’t had any free time to work on it lately.

Hi kachinjayabi,

Please see my reply to your PM.

I am still running into the Undefined offset: 0 error during thumbnail generation. Have you made any progress on this?

Thanks!

Chris

Hi C Boyd,

Yes I’ve made a little bit of progress, but unfortunately haven’t got anywhere near a stage that will be useful to you. It’s still on my list of things to do. I’ll get there eventually, sorry it’s taking so long.

I have yii 1.1.2 running and installed eGallery on ubuntu 8.04.4 LTS Server!

My image structure is as follows:

  • yii installation path

    • images

      • Galleries

        • Certificate_Distribution_Jan-2011

        | 01_L1_Meraj_Qamar.JPG

        | 02_L1_Atiq_ur_Rehman.JPG

        | …

And I Added to a page:

$this->widget(‘application.extensions.gallery.EGallery’,

    array(


            'path' =&gt; 'images/Galleries',


            'name' =&gt; 'LCCI IT Courses Galleries',


            // 'id' =&gt; 'gallery',


            // 'showNav' =&gt; true,


            // 'mimeTypes' =&gt; array('image/gif','image/jpeg','image/png'),


            // 'createThumbnails' =&gt; true,


            // 'foldersAreDates' =&gt; false,


            // 'dateFormat' =&gt; 'jS M Y',


            'imagesPerPage' =&gt; 20,


            'imagesPerRow' =&gt; 4,


            // 'sort_order' = 'desc',


    )

);

It shows the correct description. But when I click on the gallery it gives me error:

The requested view "index" was not found.

Please help

Qamar,

if


com_exception

<b>Source:</b> Unknown<br/><b>Description:</b> Unknown

line in error is "$WshShell->Run("php.exe $Command", 0, false);

then you need to change link to your php.exe in this line (*base.php)




$WshShell->Run("C:\wamp\bin\php\php5.3.0\php.exe $Command", 0, false)



thank you

Hi,

The demo really helped me. But I had do delete the first slash in the line

‘path’ => ‘/images/gallery’,

to be

‘path’ => ‘images/gallery’,

and so it worked.

But the lines under the Galleries names don’t appear.

What could be the problem?

I’m using

Win 7 Starter

XAMPP 1.7.5 Beta

[PHP: 5.3.6]

Apache/2.2.17

Sorry for my (probably) bad English.

And thank you for the help.

I found: there was an extra (blank) line at the end of the description.txt files.

It’s working fine now.

I am use this extension, do not work, js file not copy in "assets" folder.

What could be the problem?

Sorry, my english is bad.

Hi…

Can’t access the EGallery demo…

I was unable to generate thumbs folder. Then i search for the problem source. This might use for others.

Problem issue with PHP 5.4


include(COM.php): failed to open stream: No such file or directory

Related article:

5250

PHP-link.JPG

Solve this problem with:

From PHP 5.4.5, COM and DOTNET is no longer built into the php core. you have to add COM support in php.ini:

[COM_DOT_NET]

extension=php_com_dotnet.dll

Otherwise you will see this in your error log:

Fatal error: Class \‘COM\’ not found

The extension is included with php 5.4.5 for Windows.

–> I SOLVED THIS PROBLEM BY ADDING THIS LINE IN MY php.ini FILE:


extension=php_com_dotnet.dll

And then restart my server (Apache)

Hi,

I know this extension is obsolete, but it is exactly what I’m looking for. I want to upload files (through FTP) and then these images to be shown in the galleries. I have one problem with this extension. It do not shows galleries if the name of the folder with the images in in Cyrillic. When I tried to write the name of the gallery n description.txt in Cyrillic there is a problem with the encoding and the name of the gallery is shown with unreadable symbols.

Can you help me with that, please!