TOPIC: Missing "/" in image extra field path

  • Page:
  • 1
  • 2
  • Carlos
  • Carlos's Avatar
  • OFFLINE
  • Junior Member
  • Posts: 21

Missing "/" in image extra field path 2 months 3 weeks ago #163705

Hello.

We noticed that after updating to 2.8, the initial "/" in the path of the image extra field is not added automatically anymore after selecting an image file in the file manager popup as in previous versions.

Is this a bug? Any way to fix?

Missing "/" in image extra field path 2 months 3 weeks ago #163707

This is a rambling reply...
I am using J 3.7.5 and K2 2.8 with php7
When i add a picture to and extra fields with type of image and save it
images/jones.jpg
is what is saved using the select image link and it is stored in the table as
{"id":"18","value":"images\/jones.jpg"},
It displays correctly in the front end.
When i add a /
/images/jones.jpg
into the extra field manually and save it, the beginning / is saved and the front end continues to display correctly after refresh and it is stored in the table as
{"id":"18","value":"\/images\/jones.jpg"}

In other words my test seems to work both ways without error and there must be code either adding or stripping a / because if i manually put // at the beginning the image does not diaplay and the name or alias is displayed where the picture was.

IS your site working or are you getting an error.
  • Carlos
  • Carlos's Avatar
  • OFFLINE
  • Junior Member
  • Posts: 21

Missing "/" in image extra field path 2 months 3 weeks ago #163709

No errors just a bad path in the img src. If I manually add the "/" it works fine.
  • Krikor
  • Krikor's Avatar
  • OFFLINE
  • Moderator
  • Posts: 14746

Missing "/" in image extra field path 2 months 3 weeks ago #163726

Hello,

Is there a link to your site available?
IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/
  • Carlos
  • Carlos's Avatar
  • OFFLINE
  • Junior Member
  • Posts: 21

Missing "/" in image extra field path 2 months 3 weeks ago #163797

Hello, Krikor.

It's a development site, it's offline.

Path in the Image extra field box looks like this: images/gmap1.png

Output is like this:

<img src="/~clwimages/gmap1.png" alt="My image">

Correct output should be:

<img src="/~clw/images/gmap1.png" alt="My image">


We've tested on another development site with the same result, but I just checked on a site with a real domain and eventhough the k2 extra field doesn't add the "/" the image path is fine and the image gets displayed.
  • Krikor
  • Krikor's Avatar
  • OFFLINE
  • Moderator
  • Posts: 14746

Missing "/" in image extra field path 2 months 3 weeks ago #163834

These slashes are probably being added by Joomla! itself.
Once you move into production you won't have an issue.
IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

Missing "/" in image extra field path 1 month 2 weeks ago #164461

same issue am facing reupdate "\" path
Akhtar
  • Carlos
  • Carlos's Avatar
  • OFFLINE
  • Junior Member
  • Posts: 21

Missing "/" in image extra field path 1 month 2 weeks ago #164471

I found this is only an issue on dev URLs like http://123.456.789/~whatever. On a real domain it's not an issue.
  • Krikor
  • Krikor's Avatar
  • OFFLINE
  • Moderator
  • Posts: 14746

Missing "/" in image extra field path 1 month 2 weeks ago #164504

Joomla! can produce minor issues in these environment, nothing major or critical though.
IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/
  • Fábio Jordan
  • Fábio Jordan's Avatar
  • OFFLINE
  • Junior Member
  • Nothing like a good coffee to make a better web
  • Posts: 21

Missing "/" in image extra field path 1 month 6 days ago #164738

Same problem here.

Live website, some places dont display the image extrafield properly.

The error appeared after the update to Joomla 3.8.1 and K2 2.8.

Example here: http://www.cafecomfilme.com.br/filmes/duro-de-matar

Before, K2 extrafield image inserted the slash automatically in front of the path, right now it doesnt.

I dont know what has changed, but some areas are getting the wrong URL like:
www.cafecomfilme.com.brimages/capa/1017/streetfighteraultimabatalha600.jpg

Instead of:
www.cafecomfilme.com.br/images/capa/1017/streetfighteraultimabatalha600.jpg

Any hint to solve that?

Thanks in advance!
  • Page:
  • 1
  • 2
Moderators: william white

Who Is Online

Total users online: 5 Members and 3865 Guests Online
Aurelio Frode Matt Beckner Roger Dundas william white
Legend ::   Site Administrator Global Moderator Moderator Banned User Guest
  • Total Messages: 138533 | Total Subjects: 36480
  • Total Sections: 6 | Total Categories: 32
  • Today Open: 0 | Yesterday Open: 8
  • Today Total Answer: 1 | Yesterday Total Answer: 26
Powered by Kunena Forum