Page 2 of 3

Re: Image not showing in article

Posted: 20 Sep 2024, 18:50
by Benno
Hi,
you wrote:
When I use the “Phoca Gallery Image” button, the code is shown in the editor (JCE) with no error, exemple of code:
{phocagallery view=category|categoryid=62|imageid=2598}
I know you can not see the image in frontend, but can you see the code inside the article in frontend? :idea:

Kind regards,
Benno

Re: Image not showing in article

Posted: 25 Sep 2024, 08:26
by PatJ07
Hello Benno

Sorry for late answer, I was unable to work on this problem the last few days.

When looking the article in the front end, I just see nothing at all: no code, no error.

If I write in the article in the backend:

This is a test image :
{phocagallery view=category|categoryid=62|imageid=2598}
End of test image.

I just see, in the frontend:


This is a test image :

End of test image.

Kind regards
Patrice

Re: Image not showing in article

Posted: 25 Sep 2024, 11:00
by Benno
Hi,
this is an absolutely atypical error. If the Phoca Gallery plugin is not executed or not activated, at least the plugin code is still displayed in the frontend. But please test if the same behavior also occurs if you enter the code with the Joomla! standard editor TinyMCE and set Protostar as the default template for the frontend. (For testing purposes only)

Kind regards,
Benno

Re: Image not showing in article

Posted: 25 Sep 2024, 19:23
by Nidzo
@PatJ07 if it works in TinyMCE, check in JCE editor Profile > Editor Parameters > Advanced is Protect Shortcode option turned on? If the answer is yes, try to turn it off.

Re: Image not showing in article

Posted: 27 Sep 2024, 11:53
by PatJ07
Hello

First, I would like to thank you both for helping me 😉

@Benno : Ok, I made these tests:
1) I made a new test article with TinyMCE editor and keeping my template. When I use the “Phoca Gallery image” button, I can select the image I want, but no code is shown in the editor. The page stays blank in editor. In front end, page blank as well.
2) Changing the default template to Protostar template does not change anything in backend or in frontend.
3) So I go to a former test article to copy the code from it, and paste it in the new article, the result on frontend is similar: I can't see the image, without any error, and no seeing the code.

I made another test:
I created a brand new gallery and uploaded a picture in it. (As a reminder, all galleries and pictures I used so far are “imported” from Joomgallery)
I configured back to JCE Editor, and back to my template.

When I add the new image in the article, the image shows properly in frontend.
So problem seems to be with image already in the server.

I can see all imported galleries and pictures in Phoca in backend, I can open them, thumbnails were properly created, I don’t see what can be the problem, nothing strange, no error.

What can I check ?

Thank you again for your help

Patrice

Re: Image not showing in article

Posted: 27 Sep 2024, 12:17
by Benno
Hi,
As a reminder, all galleries and pictures I used so far are “imported” from Joomgallery
I'm reading this for the first time. How did you carry out the import?
Have you tried to imported JoomGallery database table contents into Phoca Gallery tables? :idea:

Kind regards,
Benno

Re: Image not showing in article

Posted: 27 Sep 2024, 13:48
by PatJ07
Benno wrote: 27 Sep 2024, 12:17 I'm reading this for the first time. How did you carry out the import?
Hello Benno,
I went back to my first post and I must apologize, I thought I had written this, apparently not. very sorry.
Here is how I made the migration of the pictures (I write that based on my notes):
1) In Phoca Gallery, I created a ROOT folder
2) With FTP, I copied the pictures from joomgallery/originals folder to phocagallery/root
3) I run 2 SQL quieries (found on this page: https://magazine.joomla.org/all-issues/ ... y-to-phoca
4) First query for category data:

Code: Select all

Insert into `xcfy2_phocagallery_categories` (id, parent_id, owner_id, title, alias, published, userfolder) select cid, parent_id, owner, name, alias, published, catpath from `xcfy2_joomgallery_catg`
5) Second query for image data

Code: Select all

Insert into `xcfy2_phocagallery` (id, catid, title, alias, filename, date, published, approved, hits) select id, catid, imgtitle, alias, imgfilename, imgdate, published, approved, hits from `xcfy2_joomgallery`
6) I made an additional operation to change the source path of pictures in the phocagallery database so pictures can be found by phoca.
7) Then I could go to Phoca Images and the thumbnails started to be generated .
8) All images are now visible in Phoca image

Thank you for your help
Patrice

Re: Image not showing in article

Posted: 27 Sep 2024, 14:31
by Benno
Sorry, I'm out of here. I have no experience with this procedure. :idea:

Kind regards,
Benno

Re: Image not showing in article

Posted: 27 Sep 2024, 14:39
by PatJ07
Hello Benno
I understand about procedure.

But what can I check in Phoca gallery, in pictures or galleries.
As I said I can see pictures, I have no error there, and thumbnails were generated properly.

What would you suggest to import all the catergories and pictures I have ( more than a hundred of categories and more than 3000 pictures).

Thank you
Patrice

Re: Image not showing in article

Posted: 27 Sep 2024, 14:57
by Benno
Hi,
I made another test:
I created a brand new gallery and uploaded a picture in it. [..]
When I add the new image in the article, the image shows properly in frontend. [..]
This means that categories and thumbnails created nativ in Phoca Gallery are found by the Phoca Gallery Plugin and displayed in the frontend, but categories and thumbnails created via database import are not. To me, this sounds like a failed import or a wrong procedure. And that's why I'm out of here, because I have no experience with this. Maybe Jan can say something about this.

Kind regards,
Benno