Page 1 of 1

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

Posted: 28 Aug 2008, 01:26
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!

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

Posted: 28 Aug 2008, 14:29
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

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

Posted: 01 Sep 2008, 04:51
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?

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

Posted: 01 Sep 2008, 13:27
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

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

Posted: 02 Sep 2008, 01:00
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 :(

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

Posted: 03 Sep 2008, 01:13
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

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

Posted: 03 Sep 2008, 04:40
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 :(

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

Posted: 03 Sep 2008, 08:47
by caro84g
maybe some other extension is causing the problems?