Image not showing in article

Phoca Gallery - image gallery extension
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9428
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Image not showing in article

Post 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

Tags:
PatJ07
Phoca Member
Phoca Member
Posts: 12
Joined: 20 Sep 2024, 09:51

Re: Image not showing in article

Post 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
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9428
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Image not showing in article

Post 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
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 376
Joined: 07 Nov 2018, 14:55

Re: Image not showing in article

Post 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.
PatJ07
Phoca Member
Phoca Member
Posts: 12
Joined: 20 Sep 2024, 09:51

Re: Image not showing in article

Post 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
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9428
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Image not showing in article

Post 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
PatJ07
Phoca Member
Phoca Member
Posts: 12
Joined: 20 Sep 2024, 09:51

Re: Image not showing in article

Post 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
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9428
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Image not showing in article

Post by Benno »

Sorry, I'm out of here. I have no experience with this procedure. :idea:

Kind regards,
Benno
PatJ07
Phoca Member
Phoca Member
Posts: 12
Joined: 20 Sep 2024, 09:51

Re: Image not showing in article

Post 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
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9428
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Image not showing in article

Post 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
Post Reply