projects / org / ezproject2010 / ezoe / forum / general / [solved] poblem whith images
Find the Exponential Software extensions you want
You need to be logged in to post messages in the forums. New users may register here.
Member since: Posts: 5 |
Thursday 15 April 2010 3:08:11 am Hi,
I have a problem with ezoe that I do not know how to solve. When editing an object no image is displayed, but when it is published is displayed correctly. The images are displayed everywhere but not in the editor. Instead of the image is displayed the size (original, reference, small, ...) that is the property alt of the img tag that is created, but the src property is incorrect. An example of img tag that is dynamically created by the editor is <img id="eZObject_5587" title="img_home" src="/" mce_src="/" alt="original" view="embed" inline="false" height="" width="" align="middle"> |
|
Member since: Posts: 145 |
Friday 16 April 2010 1:42:39 am Hi, can you post some more info on your setup?
ezp version, and is it an old site upgraded? ezoe version ezoe.ini settings if you have overriden it image aliases on the setup if it is non standard other non standard settings you might know about. Also, check the source code of the edit page, the tag you posted is the one inside TinyMCE, so to determine if issue is caused by ezoe code or TinyMCE you need to look for encoded html output from ezoe xml input handler, long story short, look for "<img id=" pattern within textarea tags. eZ Online Editor 5.1: http://projects.ez.no/ezoe || eZJSCore 1.1(Ajax): http://projects.ez.no/ezjscore || eZSearch++(better search results): http://projects.ez.no/ezsearchpro |
|
Member since: Posts: 5 |
Monday 19 April 2010 1:31:17 pm Hello,
the version of eZ Publish is 4.1.4 and it is an installation that is an upgrade of two installations (3.8.10 and 3.10.1) together. Ezoe version is 5.0.4. The same problem occurs on two different machines and on one of these machines there are other installations (same versions of eZ Publish and eZOE) that work well. I don't have made changes to the file ezoe.ini. There are many configurations, but I don't know what would cause problem to the editor. Ask me if there are specific configurations that I can provide to help you to help me. The tag on the edit page is:
|
|
Member since: Posts: 145 |
Monday 19 April 2010 3:35:13 pm I don't think this is a js issue, but if you seen any errors in your javascript concole, please post them.
Anyway, to be able to understand this we need to debug a bit, here is a patch for ezoe to do just that:
eZ Online Editor 5.1: http://projects.ez.no/ezoe || eZJSCore 1.1(Ajax): http://projects.ez.no/ezjscore || eZSearch++(better search results): http://projects.ez.no/ezsearchpro |
|
Member since: Posts: 5 |
Tuesday 20 April 2010 8:51:33 am Apparently we have found the problem, debug returns all array like this
|
|
Member since: Posts: 145 |
Tuesday 20 April 2010 10:47:19 pm Not sure, so think we need some more debug.
Change the line in patch above to:
eZ Online Editor 5.1: http://projects.ez.no/ezoe || eZJSCore 1.1(Ajax): http://projects.ez.no/ezjscore || eZSearch++(better search results): http://projects.ez.no/ezsearchpro |
|
Member since: Posts: 5 |
Wednesday 21 April 2010 9:15:38 am Is possible that some upgrade script hasn't worked as expected?
The debug output is now:
|
|
Member since: Posts: 145 |
Thursday 22 April 2010 12:33:35 am Hmm, maybe.
I think you should move this discussion to share.ez.no to get more people to see it, I think I have seen something like this before, but don't remember exactly what is was as I don't work that much on support. For instance, what happens if you check all check boxes in setup/cache and clear them all (not clear all button, but checkboxes, as image alias is not part of clear all button). Be sure to have backup first, and I hope you have one from original version as well. Edit: Related to this maybe? http://issues.ez.no/IssueView.php?Id=16703&activeItem=1 eZ Online Editor 5.1: http://projects.ez.no/ezoe || eZJSCore 1.1(Ajax): http://projects.ez.no/ezjscore || eZSearch++(better search results): http://projects.ez.no/ezsearchpro |
|
Member since: Posts: 5 |
Friday 23 April 2010 7:45:48 am I found the problem!
The Image class of my site contains two ezimage attributes. The first is "large_image" and in almost all images is empty, the second is "image" and is the field that actually contains the image in all image objects. I made this change to extension/ezoe/ezxmltext/handlers/input/ezoexmlinput.php to see images in the editor
|
|
Member since: Posts: 145 |
Monday 10 May 2010 4:29:50 am Thanks, fixed it in trunk and stable/5.1.
Basically there is a similar conditions in upload.php that needs this ->hasContent() check. And there is also one in ezjscajaxcontent.php (also fixed in ezjscore trunk) in ezjscore extension that is used for preview on browse / search / bookmarks tabs. eZ Online Editor 5.1: http://projects.ez.no/ezoe || eZJSCore 1.1(Ajax): http://projects.ez.no/ezjscore || eZSearch++(better search results): http://projects.ez.no/ezsearchpro |
You need to be logged in to post messages in the forums. New users may register here.