Download and view the image does not work in 3.0.3

Please report bugs here!

Moderator: Thorsten

blondin62
Posts: 38
Joined: Sun Mar 11, 2018 11:06 am

Download and view the image does not work in 3.0.3

Post by blondin62 »

hello Thorsen

I have the same problem as that described by Iconic with the images but on version 3.0.3.
I think this is a problem in the location of the "images" folder.
if I go up one level (at the same level as the "phpmyfaq" folder) it works, I see my images again.

In the source code, we see that the defined location is "<img src =" ../images/xxxxxx.jpg "/>
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Download and view the image does not work in 3.0.3

Post by Thorsten »

Hi,

where do you have the problem? Frontend or admin backend?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
blondin62
Posts: 38
Joined: Sun Mar 11, 2018 11:06 am

Re: Download and view the image does not work in 3.0.3

Post by blondin62 »

on both, on the back office when I add an image, it does not appear. instead I have a little icon
and when I post my article I have the same thing, a small icon
but if I check in the images folder, it contains my image (number 1)

to be sure, I did a complete installation again
I added a screenshot to better explain

(i use drag and drop method to insert my images)

and the source code for the image in the front office :

<body>
<p><img src="../images/1590489886mceclip0.png" /></p>
</body>
You do not have the required permissions to view the files attached to this post.
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Download and view the image does not work in 3.0.3

Post by Thorsten »

Hi,

I opened an issue: https://github.com/thorsten/phpMyFAQ/issues/1764

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
blondin62
Posts: 38
Joined: Sun Mar 11, 2018 11:06 am

Re: Download and view the image does not work in 3.0.3

Post by blondin62 »

hi Thorsen

thx

I continued to dig and actually the path to the images folder is incorrect in the database.
if I change the path ../images/XXXX. jpg with ./images/XXXX. jpg everything works, at the front office, as at the back office

a workaround is after inserting your image, is to edit the source code in the WYSIWYG
and change all the paths "../images" by ./images and save your article
You do not have the required permissions to view the files attached to this post.
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Download and view the image does not work in 3.0.3

Post by Thorsten »

Hi,

I tried to reproduce it on my test installations and I can't reproduce it, sorry. Maybe I fixed it accidentally with the upcoming 3.0.4 release.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
blondin62
Posts: 38
Joined: Sun Mar 11, 2018 11:06 am

Re: Download and view the image does not work in 3.0.3

Post by blondin62 »

Hi Thorsen

ok i will try in the same condition with version 3.0.4 when it is released

thx
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Download and view the image does not work in 3.0.3

Post by Thorsten »

Hi,

one question, do you run phpMyFAQ in an own directory or in directly in the root?

https://www.example.org/

or

https://www.example.org/faq/

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
blondin62
Posts: 38
Joined: Sun Mar 11, 2018 11:06 am

Re: Download and view the image does not work in 3.0.3

Post by blondin62 »

hi

i work in my own directroy :

https://nameofmyserveur@mydomain/phpmyfaq/
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Download and view the image does not work in 3.0.3

Post by Thorsten »

Hi,

okay, maybe I have to fix something then... please stay tuned!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
blondin62
Posts: 38
Joined: Sun Mar 11, 2018 11:06 am

Re: Download and view the image does not work in 3.0.3

Post by blondin62 »

ok no problem
Thx
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Download and view the image does not work in 3.0.3

Post by Thorsten »

Hi,

finally I found the issue (and some more...).

Here's the fix for the delayed but upcoming 3.0.4 release: https://github.com/thorsten/phpMyFAQ/co ... 618079db19

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
blondin62
Posts: 38
Joined: Sun Mar 11, 2018 11:06 am

Re: Download and view the image does not work in 3.0.3

Post by blondin62 »

Hi
perfect, i will try it tomorrow
and thank you again for everything :)

Bye
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Download and view the image does not work in 3.0.3

Post by Thorsten »

Hi,

waiting for your feedback to release 3.0.4. :-)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
blondin62
Posts: 38
Joined: Sun Mar 11, 2018 11:06 am

Re: Download and view the image does not work in 3.0.3

Post by blondin62 »

Hi

it works perfectly, (I never doubted :D )

by
Post Reply