Forums / Developer / Probleme with my images

Probleme with my images

Author Message

anne martinet

Thursday 26 June 2008 5:57:23 am

Hi,

I didn't see my images (section Standard or Media). But, I have an anonymous user with these roles and policies:

        content  	read  	Section( Standard ) 
        content 	pdf 	 Section( Standard )
        rss 	          feed    No limitations 
	user 	         login   SiteAccess( demonstrateur_ez ) 
	user 	         login 	 SiteAccess( )
	user 	         login 	 SiteAccess( ) 
	content 	read 	Class( Flash , Image , Banner ) , Section( Media ) 
	user 	         login 	  SiteAccess( )
</content>

What's wrong?

Thanks,

anne martinet

Tuesday 01 July 2008 5:04:32 am

I didn't have my solution! :(

If I published an image (the class), with one image. I see this image.
But If I imported an image in the online editor. I didn't see my image.
I don't understand why!

And I see in my first page, the message

No relation

. Then I try to override this template:

design/standard/templates/content/datatype/view/ezobjectrelation.tpl

But no changes with my images!

Help, please

André R.

Tuesday 01 July 2008 5:29:03 am

Could you be a bit more specific to where you are seeing this issue?

As in is it only in editor or is it everywhere after you have used the editor to upload the image?
Do you use a custom or the standard class for images ('image')?
What kind of image type is this, do you get the same problem with different types?

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

anne martinet

Tuesday 01 July 2008 6:15:37 am

I have this probleme in all pages of my site.

For exemple, I download to Internet an image .jpg
After I join this image in a description to a folder (the logo is a trombone in the editor on line).
And when I published my folder, i see the link to acceed to image and not image.

anne martinet

Tuesday 01 July 2008 6:28:32 am

The message 'No relation' it's only on my home page!

When I upload my image with trombone, I have this probleme, but if I upload in attribute standard image of standards classes, I don't have probleme.
And I try with image JPG and PNG, and the probleme is the same.

André R.

Tuesday 01 July 2008 7:16:32 am

I guess you mean the attachment icon when you say 'trombone'.

Take a look at what kind of class is generated in the media section for the images you upload with Online Editor or relations upload. If they are of class "File" or something else instead of "Image", then you have some issues in your upload.ini settings file (file mime type to eZ Publish class mapping).

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

anne martinet

Tuesday 01 July 2008 8:11:05 am

That's right! When I said 'trombone' I talk about attachment icon, sorry.

And I verify the type of my images upload, in section media, there are all type Image.And it's the same in my relations.

anne martinet

Thursday 03 July 2008 2:35:25 am

There is something that I do not understand !!!!! : '(

On my instance of ez publish 4.0.0, I have several siteaccess.
For siteaccess default I can see my pictures "directly", but for that I siteaccess
created when I downloaded an image in the on-line editor, by the attachment icon (trombone), I get the link to the image.
In the case of my siteaccess I have my own design (and others design are ezwebin and base)

I noticed that for the siteaccess ezwebin_site to view the images it uses the template:

<! - START: including template: extension / ezwebin / design / ezwebin / override / templates / embed / image.tpl
  (design: content / view / embed.tpl) ->

And this template is not used for my siteaccess, it uses:

<! - START: including template: design / standard / templates / content / view / embed.tpl
(design: content / view / embed.tpl) ->

Why my siteaccess (which I created) do not use the template image.tpl?
Yet I request that one of my design is ezwebin .......

thank you in advance

Hans Melis

Thursday 03 July 2008 2:11:06 pm

When you upload an image through the Online Editor, do you see the image in the popup after the upload?

On that very same page is a dropdown with options how you'd like to display it (embed, embed-inline, ...). Which option do you use there?

Hans
http://blog.hansmelis.be

anne martinet

Thursday 03 July 2008 11:40:17 pm

When I upload an image through the Online Editor, I see the image in the popup after the upload !

And I select the view embed in the dropdown to the same page.

André R.

Friday 04 July 2008 3:19:44 am

> Why my siteaccess (which I created) do not use the template image.tpl?
> Yet I request that one of my design is ezwebin .......

Your missing a override then.

Form ezwebin (settings/siteaccess/<ezewebin_frontsiteaccess_name>/override.ini.append.php):

[embed_image]
Source=content/view/embed.tpl
MatchFile=embed/image.tpl
Subdir=templates
Match[class_identifier]=image

There are also a lot of other overrides in ezwebin that you might want to have in your siteaccess.
When I create a new siteaccess I tend to copy an existing one and change it to my needs, might be something you should do as well ;)

Update: And remember to clear cache (first and foremost template override cache)

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

anne martinet

Monday 07 July 2008 1:54:38 am

Thanks :)

My probleme is resolu.
Effectively, when I write these lines, that work!

Thanks!

;)

eZ debug

Timing: Jan 18 2025 10:59:19
Script start
Timing: Jan 18 2025 10:59:19
Module start 'content'
Timing: Jan 18 2025 10:59:20
Module end 'content'
Timing: Jan 18 2025 10:59:20
Script end

Main resources:

Total runtime1.2215 sec
Peak memory usage4,096.0000 KB
Database Queries223

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0086 588.8359180.8438
Module start 'content' 0.00861.0452 769.6797699.7422
Module end 'content' 1.05380.1677 1,469.4219348.4453
Script end 1.2215  1,817.8672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.3511210.0002
Check MTime0.00150.1194210.0001
Mysql Total
Database connection0.00160.130910.0016
Mysqli_queries1.115991.35442230.0050
Looping result0.00260.21102210.0000
Template Total1.187297.220.5936
Template load0.00210.172320.0011
Template processing1.185197.017520.5925
Template load and register function0.00020.019710.0002
states
state_id_array0.00110.092910.0011
state_identifier_array0.00720.591320.0036
Override
Cache load0.00200.1598750.0000
Sytem overhead
Fetch class attribute can translate value0.00150.120640.0004
Fetch class attribute name0.00110.0890140.0001
XML
Image XML parsing0.00200.166840.0005
class_abstraction
Instantiating content class attribute0.00000.0025160.0000
General
dbfile0.00430.3546330.0001
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
12content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
23content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
9content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 56
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs