Keyword

Missing "/" in image extra field path

  • Carlos
  • Carlos's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 2 months ago #163705 by Carlos
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?

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

More
7 years 2 months ago #163707 by william white
Replied by william white on topic Missing "/" in image extra field path
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.

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

  • Carlos
  • Carlos's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 2 months ago #163709 by Carlos
Replied by Carlos on topic Missing "/" in image extra field path
No errors just a bad path in the img src. If I manually add the "/" it works fine.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 2 months ago #163726 by Krikor Boghossian
Replied by Krikor Boghossian on topic Missing "/" in image extra field path
Hello,

Is there a link to your site available?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Carlos
  • Carlos's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 2 months ago #163797 by Carlos
Replied by Carlos on topic Missing "/" in image extra field path
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.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 2 months ago #163834 by Krikor Boghossian
Replied by Krikor Boghossian on topic Missing "/" in image extra field path
These slashes are probably being added by Joomla! itself.
Once you move into production you won't have an issue.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
7 years 1 month ago #164461 by akhtar ali
Replied by akhtar ali on topic Missing "/" in image extra field path
same issue am facing reupdate "\" path

Akhtar

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

  • Carlos
  • Carlos's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 1 month ago #164471 by Carlos
Replied by Carlos on topic Missing "/" in image extra field path
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.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 1 month ago #164504 by Krikor Boghossian
Replied by Krikor Boghossian on topic Missing "/" in image extra field path
Joomla! can produce minor issues in these environment, nothing major or critical though.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Fábio Jordan
  • Fábio Jordan's Avatar
  • Offline
  • Senior Member
  • Nothing like a good coffee to make a better web
More
7 years 1 month ago #164738 by Fábio Jordan
Replied by Fábio Jordan on topic Missing "/" in image extra field path
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: 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!

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


Powered by Kunena Forum