Errors in image description (fixed but now have worse prob)

Phoca Gallery - image gallery extension
Thorned Rose
Phoca Member
Phoca Member
Posts: 10
Joined: 31 Jul 2008, 10:04

Errors in image description (fixed but now have worse prob)

Post by Thorned Rose »

Today I went into the image editor and above the box where you fill in a description for an image, I get the following two errors:

Code: Select all

Warning: Attempt to assign property of non-object in /home/.philippa/moniqueendt/moniqueendt.co.nz/libraries/joomla/html/editor.php on line 303

Warning: Invalid argument supplied for foreach() in /home/.philippa/moniqueendt/moniqueendt.co.nz/plugins/editors/jce/libraries/classes/editor.php on line 180
When I was first using 1.8.8beta, there were no problems at all - only just noticed this today and have been running Phoca Gallery for over a month.
I tried updating to the latest version, 1.8.8 but to no avail - still getting errors.

I wouldn't have a clue what is causing thsese errors let alone how to fix them. Any help is much appreciated :)

--------------------------- UPDATE: ----------------------------

Ok, I worked out that the errors were being caused by the fact that JCE Editor was disabled. I've now subsequently fixed that by uninstalling JCE as I don't use it. However the problem I am now facing is that Phoca Gallery wants to use JoomlaFCK which is the default editor and also the editor set for the admin which results in the description box looking like this:
Image
and being virtually unusable. It is usable obviously, but with longer descriptions, it is very hard to see anything. Is there any way to make Phoca Gallery use a different editor like TinyMCE or XStandard Lite which come with Joomla? Thanks again!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48714
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Errors in image description (fixed but now have worse prob)

Post by Jan »

Hi, Phoca Gallery use the editor which is selected in Joomla! ... and it is not possible to do here any changes (e.g selecting some editor which is not installed or e.g. force users to use editor which they want not to use, ....)

the only way is to resize the editor:

e.g.:
administrator\components\com_phocagallery\views\phocagallery\tmpl\form.php

Code: Select all

<td valign="top" colspan="3">
<?php
// parameters : areaname, content, width, height, cols, rows, show xtd buttons
echo $this->editor->display( 'description',  $this->phocagallery->description, '550', '300', '60', '20', array('pagebreak', 'readmore') ) ;
?>
</td>
550, 330 should be changed, Jan
If you find Phoca extensions useful, please support the project
Thorned Rose
Phoca Member
Phoca Member
Posts: 10
Joined: 31 Jul 2008, 10:04

Re: Errors in image description (fixed but now have worse prob)

Post by Thorned Rose »

As much as I would like to say that worked perfectly, it unfortunately made absolutely no difference. The Description area still looks exactly the same in the picture above. I tried ramping the width and height right up after my initial values, logging out, clearing the cache and logging back in but alas, still no difference.
After a little experimenting, I found that this problem only occurs when using JoomlaFCK Editor. When I switched to TinyMCE, the increased values worked. Could this be to do with the fact that JoomlaFCK uses 100% for it's width value?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48714
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Errors in image description (fixed but now have worse prob)

Post by Jan »

??? I use Jextended (FCK) without any problems ???

did you try to change the columns and rows values too:

'550', '300', '60', '20',

widt, height, cols, rows
If you find Phoca extensions useful, please support the project
Thorned Rose
Phoca Member
Phoca Member
Posts: 10
Joined: 31 Jul 2008, 10:04

Re: Errors in image description (fixed but now have worse prob)

Post by Thorned Rose »

Yeah, I tried changing them to somethig realistic at first and when that didn't work, I upped it to 1000, 1000, 120, and 40 respectively with no difference. That was also where I logged out, dropped the cache and logged back in too just to make sure the settings weren't being cached. I've tried asking the FCK peeps but got told that if I wanted any more help beyond what I've already tried (altering FCK's width value), I'd have to 'donate' to get support - brilliant :(
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48714
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Errors in image description (fixed but now have worse prob)

Post by Jan »

I use the jextended (fck) editor from Louis Landry (core developer of Joomla!) and it works well for me, try to test this editor ... Jan
If you find Phoca extensions useful, please support the project
Thorned Rose
Phoca Member
Phoca Member
Posts: 10
Joined: 31 Jul 2008, 10:04

Re: Errors in image description (fixed but now have worse prob)

Post by Thorned Rose »

I can see why you use that Editor! Unfortunately again, same problem persists. I really don't know why this would be happening especially as it works fine for you and yet despite the fact that I haven't altered any of the code, my one goes fudged :(
User avatar
caro84g
Phoca Hero
Phoca Hero
Posts: 1369
Joined: 11 Feb 2008, 17:52
Location: Holland
Contact:

Re: Errors in image description (fixed but now have worse prob)

Post by caro84g »

maybe some other extension is causing the problems?
Please ask your support questions in the forums and not via PM - I delete those PM's
Backup before you do any major change to your website (and test first)
Post Reply