Gallery Manager extension

Hi Bogdan,

I tried cms-app, but the i got this error:

CException

Псевдоним "ext.tinymce.TinyMce" неверен. Убедитесь, что он указывает на существующий PHP файл.

Is there an english version?

And there was no extensions in the cms package. Could you help?

Thanks Laszlo from Hungary

At this moment, all labels in cms-app are in russian language. But if you want you can change language for system messages, editing this line “Yii::app()->language = ‘ru’;” in AdminModule class.

About an error: maybe you dowloaded snapshot from bitbuket, not cloned repository with all it subrepositories… - try to clone it using mercurial or download from post above

Very professional, I like it. (Newbie :rolleyes: )

Now it works. Thanks for the help! Great app. I’m interested in the gallery module, so i will look for it in this testapp, hope i will not have more questions.

hi Bogdan:

I can run cms-test ok! but i cannot upload any picture to server when i try to use galleryManage via to "testapp/admin/test/gallery/".The folder uploads,images,protected/runtime is written by server.

How can i run it ok?

ps:when i upload a picture nothing error message give me.

3341

选择图片.PNG

3342

选择图片2.png

Folder named "gallery" in webroot should be written by web server process.

Also about error - you can see it in network tab in crome developer tools. Or alternatively - look into application log

hi Bogdan,I have same problem with this.

I test on my PC with Window 7 Apache2.2.

Folder named "gallery" can written by webserver.

And this is screenshot about Error that I captured on chrome developer tools.3373

21-10-2555 22-57-51.png

Probably something wrong with image component.

Can you show response from server? (there, should be, some description of error which occured on server - You can see it in network tab in crome developer tools)

This is some error that I can show. 3374

22-10-2555 12-07-08.png

This is "application.log" file.

I have tested something.I added photo direct to server by mysql.

3376

1.png

I tested editing and deleting.It’s work.Except Adding new image It’s not work.

3377

2.png

:)

Ok. Application log is good.

Two errors in application log was because error when uploading photos to server.

About network tab - can you show responce body after upload error?

Header:

3378

5.png

Preview:

3379

6.png

Response:

3380

response_tab.txt

If you want other Information.You can tell me more. :)

Bug was fixed, correspounding changeset.

The problem was beause of mistake in database schema, that caused crashes on some mysql configurations.

Thaks for reporting :)

Hi,

I followed all the instructions as http://www.yiiframework.com/extension/gallerymanager/

but I’m getting the below error,

Unable to resolve the request "<controller>/imgManager".

imgManager is the module name

I’m new to yii, Please help me

thanks

This thread is for anouther extension: http://www.yiiframework.com/extension/imagesgallerymanager/

Hi, I’m having problems with uploading new image:

postimage.org/image/eki3eyh79/

There’s no form and only cancel button works. When I click cancel and manually reload page image shows in the gallery as uploaded with empty name and description.

Check what responce comes from server. Probably there will be error description(you can see responce from server in network tab in chrome developer tools)

Sounds a good extension ideea, i’ll give it a try.

Here’s the error log.




PHP warning


call_user_func_array() expects parameter 1 to be a valid callback, class 'Image' does not have a method 'centeredpreview'


/project/htdocs/protected/extensions/galleryManager/models/GalleryPhoto.php(148)


136     }

137 

138     public function setImage($path)

139     {

140         //save image in original size

141         Yii::app()->image->load($path)->save($this->galleryDir . '/' . $this->getFileName('') . '.' . $this->galleryExt);

142         //create image preview for gallery manager

143         Yii::app()->image->load($path)->resize(300, null)->save($this->galleryDir . '/_' . $this->getFileName('') . '.' . $this->galleryExt);

144 

145         foreach ($this->gallery->versions as $version => $actions) {

146             $image = Yii::app()->image->load($path);

147             foreach ($actions as $method => $args) {

148                 call_user_func_array(array($image, $method), is_array($args) ? $args : array($args));

149             }

150             $image->save($this->galleryDir . '/' . $this->getFileName($version) . '.' . $this->galleryExt);

151         }

152     }

153 

154     public function delete()

155     {

156         $this->removeFile($this->galleryDir . '/' . $this->getFileName('') . '.' . $this->galleryExt);

157         //create image preview for gallery manager

158         $this->removeFile($this->galleryDir . '/_' . $this->getFileName('') . '.' . $this->galleryExt);

159 

160         foreach ($this->gallery->versions as $version => $actions) {



This happens with original image extension.

With modified one no properties window is shown and I get this:


SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data

var resp = JSON.parse(this.response);

At jquery.galleryManager.js line 144

If you are using original Image extension, you should know that there is no method named "centeredpreview" - it is method added in my fork.

So if you need this method - use proper image extension, or implement your own centeredpreview method in image extension.

I tried your fork and got the following error:


SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data

var resp = JSON.parse(this.response);

At jquery.galleryManager.js line 144