Wrong relative URL for images in frontend with a subdomain

More
11 years 5 months ago #50360 by esinet
hello
Thank you for this latest update of V2.2.0 FLEXIcontent stable.
I now understand that your last few weeks have been very very productive.
But after installing the latest version, I still have my problem, so let me post my question again that may have been misinterpreted.
I use a subdomain, joomla 336 and therefore the latest stable version of Flexicontent.
Backend with JCE editor and FLEXIcontent, so good. Relative Image URL is correct (eg: images/stories/folder/oiseau.png)
Frontend is not the same. Everything is going well without FLEXIcontent, but after installing FLEXIcontent, part of the website address is included in the URL of the image)
For example http://localhost:8888/mysite/ => the URL of the image become /monsite/images/stories/dossier/oiseau.png
(I realize that if I created my site to the root, I would not have this problem but it will not happen in production ...)

So when an item is created in the frontend, the thumbnail gets a bad URL and if I change the category of the item created in the frontend, I have no thumbnails ...
Founded in frontend, thumbnails URL looks like: ..... php?src=/mysite/images/stories/folder/oiseau.png?
Founded in backend URL thumbnails looks like: ... php?src =/images/stories/folder/oiseau.png?

If an author changes frontend category of an item created in backend (if a request for validation, for example), there will be more thumbnails after validation ...
Can you tell me where i can search to try to find a solution
Thanks a lot
Bonjour
Merci pour cette dernière mise à jour of flexicontent V2.2.0 stable.
Je comprends maintenant que vos dernières semaines ont été très très productives.
Mais après installation de la dernière version, j'ai toujours mon problème, alors je me permets de poster à nouveau ma question qui peut-être a été mal interprétée.
J'utilise un sous-domaine, joomla 336 et donc la dernière version stable de Flexicontent.
En backend, avec JCE editor et flexicontent, tout va bien. L'URL relative des images est correcte : (ex: images/stories/dossier/oiseau.png)
En frontend ce n'est pas pareil. Tout se passe bien sans flexicontent, mais après l'installation de flexicontent, une partie de l'adresse du site est reprise dans l'url de l'image)
Exemple pour un site http://localhost:8888/monsite/, l'URL de l'image deviendra /monsite/images/stories/dossier/oiseau.png
(Je vois bien que si je créais mon site à la racine, je n'aurais pas ce problème mais ce ne sera pas le cas en production ...)

Du coup, quand un article est créé en frontend, la miniature reprend une mauvaise URL et si je modifie la catégorie de l'article créé en frontend, je n'ai plus de thumbnails...
Créée en frontend, l'URL des thumbnails est du type : .....php?src=/monsite/images/stories/dossier/oiseau.png
Créée en backend, l'URL des thumbnails est du type : ... php?src=/images/stories/dossier/oiseau.png

Si un auteur change en frontend de catégorie d'un item créé en backend (le cas après une demande de validation par exemple), il n'y aura plus de thumbnails après validation ...

Joomla 3.9.14 /3.6.5 FLEXIcontent v 3.3.1.6

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #50367 by ggppdk
Hello

hhmm, maybe the profile that you have asked JCE to use for other components is doing this
(JCE can load different profile/behavior in different views)

-- also you need to disable the usage of HTML editory to see what was really stored in the DB





we make no manipulation of the image URL, this is done by the HTML editor only


please make this test:

change your editor to be default HTML editor included by Joomla: tinymce

-- goto item (frontend) form and make sure that now tinymce is being used, then delete and insert the image,
save
go Joomla configuration and disable HTML editor because you need to disable HTML editor to see what was really stored in the DB
go to item form, and open the item ? is image relative or absolute ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #50370 by esinet
a big thanks to take time for me ...
I'll try to make what you tell ...

I can now say that, with only JCE editor and default profil, all is right with relative URL.
But after installation of flexicontent, i've got a difference ...
Best regards

Joomla 3.9.14 /3.6.5 FLEXIcontent v 3.3.1.6

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #50372 by esinet
Thanks again for your expertise.
indeed, with tinyMCE, it's ok !!!
I'll re-contact Sarki with this new explantion ...
Best regards

Joomla 3.9.14 /3.6.5 FLEXIcontent v 3.3.1.6

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #50373 by esinet
I found sommething in jce en forum :
www.joomlacontenteditor.net/sup ... eply-73615

But i don't find the file to change sommething ...
Do you think it could be the solution ?
then which file must i change ?
Thanks for your help.

Joomla 3.9.14 /3.6.5 FLEXIcontent v 3.3.1.6

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #50386 by micker
did you install jce plugin for flexicontent at first ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #50395 by esinet
Hello and thanks for your answer
Yes i did.
It's very useful to keep Menu item when you make a hypetext link to an article of the site.
But i still have my problem when i change the category...

Joomla 3.9.14 /3.6.5 FLEXIcontent v 3.3.1.6

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #50400 by esinet
new information ...
As explain in JCE and K2 forum, i don't have the problem if i don't use SEF ...
What could i do to use the Search Engine Friendly URL's ???
Thanks

Joomla 3.9.14 /3.6.5 FLEXIcontent v 3.3.1.6

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #50407 by ggppdk
Hello

1. does it work with tinymce and SEF urls ?


2. what did JCE authors say ?
- did they suggest some configuration ?
- or asked you to use Joomla default .htaccess file ?

FLEXIcontent itself is not modifying the image URLs, neither before saving , nor before loading the text in item form


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago #50414 by esinet
Hello Sarki, Hello ggppdk, Hello Micker
Thank you for your various replies and give me a bit of your time.

The problem is the thumbnail display of images in the blog view for example.
If I create an article Bakend with an image, I have a miniature display in the blog category.
(if I click on the title link of the article, I have the picture, hopefully)
If I change something in the article from frontend and validate, the miniature display disappears from blog display.

Why?
First observation, with a site whose URL is monsite.fr/essai ,
the URL of the image created is classic with joomla backend and JCE, like: images / stories / apple.png.
After validation in the frontend, the URL of the image changes and becomes /essai/images/stories/apple.png

Second observation, the problem appears when a subdomain is used.
I watch locally with MAMP (example url: http://localhost:8888/joomla336/
Same with my test server in joomla template 336 and the pro: besace.info/joomla336
Ditto on my server pre-production: monsite.fr/essai

Third observation:
It seems that everything works well with tinyMCE and FLEXIcontent (without disabling SEF) but it is not easy to choose an image with tinyMCE.
It seems that everything works with JCE and FLEXIcontent if I disable the SEF.

I tried to make changes in component / com_flexicontent / views / item / view.html.php (closer to the solution in the K2 forum) without success.
I did not change in htaccess file

I can give temporary access on my test site ...

Thanks for your help
and best regards

Forum JCE: www.sarki.ch/jce/forum/problemes-divers/...Icontent-in-frontend
Forulm FLEXIcontent: www.flexicontent.org/forum/index.php?f=21&t=8479&rb_v=viewtopic


IN FRENCH ...
Bonjour Sarki, Bonjour ggppdk,Bonjour Micker
Je vous remercie de vos différentes réponses et de m'accorder un peu de votre temps.

Le problème concerne l'affichage de miniatures d'images dans l'affichage blog d'une liste d'article d'une catégorie par exemple.
Si je crée un article en bakend avec une image, j'ai une miniature dans l'affichage blog de la catégorie.
(si je clique sur le lien du titre de l'article, j'ai l'image, tout va bien)
Si je modifie quelque chose, dans l'article à partir du frontend et que je valide, la miniature disparait de l'affichage blog de la catégorie.

Pourquoi ?
Premier constat, avec un site dont l'URL est monsite.fr/essai
l'URL de l'image créée en backend est classique avec joomla et JCE, du type : images/stories/apple.png.
Après validation en frontend, l'URL de l'image change et devient /essai/images/stories/apple.png

Deuxième constat, le problème apparaît quand on utilise un sous-domaine.
Je l'observe en local avec MAMP (exemple d'url : http://localhost:8888/joomla336/
Idem avec mon serveur de test sous joomla 336 et le template pro: besace.info/joomla336
Idem sur mon serveur de pre-production : monsite.fr/essai

Troisième constat,
Il semble que tout fonctionne bien avec tinyMCE et flexicontent (sans désactiver le SEF) mais il n'est pas facile de choisir une image avec tinyMCE.
Il semble que tout fonctionne avec JCE et flexicontent si je désactive le SEF.

J'ai essayé de faire des modifications dans component/com_flexicontent/views/item/view.html.php (au plus près de la solution dans le forum K2) mais sans succès.
Je n'ai pas fait de modification dans .htaccess

je peux vous donner des droits temporaires sur mon site de test ...

Merci de votre aide et Bonne continuation.

Forum JCE : www.sarki.ch/jce/forum/problemes-divers/...icontent-en-frontend
Forulm flexicontent : www.flexicontent.org/forum/index.php?f=21&t=8479&rb_v=viewtopic

Joomla 3.9.14 /3.6.5 FLEXIcontent v 3.3.1.6

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save