exstreme / Jcomments-4

Modified Jcomments 3.0.7 with Recaptcha 2 in comments. Adapted to Joomla 4. No compatibility with Joomla 1.5\2.5\3.x
16 stars 13 forks source link

Joomla 3 -> Jooomla 5 #161

Closed phnoel closed 5 months ago

phnoel commented 8 months ago

Hello, I'm migrating my site from J3 to J5 I have installed Jcomments v 4.0.30 and I have two problems:

Globulopolis commented 8 months ago

I tested it again, I don't see any problems. Did you configure component access rights again after the migration? I strongly recommend checking the component settings. Also check the php and joomla logs for errors.

phnoel commented 8 months ago

Hi, thanks for your feedback. I've solved the problem of displaying the reviews; they weren't published! The problem with notifications remains. Attached are the parameters. Are there any other settings to be made? jcomments

Globulopolis commented 8 months ago

Are there any other settings to be made?

No. Please look at the logs.

phnoel commented 8 months ago

I changed the destination email and now it works; weird... Now I've got another problem; the links to validate or delete contained in the email are no good! Example for publishing: https://www.weblim.x10.mx/index.php/component/jcomments/?task=cmd&cmd=publish&id=9&hash=bf0d7869073aa27d1224fdbb1d7b1492&format=raw jcomments2 jcomments

Globulopolis commented 8 months ago

Test this. Replace this file components/com_jcomments/jcomments.php with this https://raw.githubusercontent.com/Globulopolis/Jcomments-4/master/component/site/jcomments.php

phnoel commented 8 months ago

Yes, now it works fine. Thank you. Now, how can I export comments from jcomments 3.0.7.9 under jommla 3.5 and import them into jcomments 4.0.30 under joomla 5?

Globulopolis commented 8 months ago

Now, how can I export comments from jcomments 3.0.7.9 under jommla 3.5 and import them into jcomments 4.0.30 under joomla 5?

phpmyadmin or heidisql or sqlyog community edition. Just backup all tables with _jcomments in table name. Import to database where the Joomla 5 installed. BEWARE! Change table prefix after export or before import.

phnoel commented 8 months ago

I did this. The comments are visible in the Jcomments backend and published, but they don't appear in the frontend.

Globulopolis commented 8 months ago

Go to administrator/index.php?option=com_installer&view=database and check for errors. The tables has been changed since 3.0.7.

phnoel commented 8 months ago

Sorry, but I don't know how to do that! Is it in Joomla admin?

Globulopolis commented 8 months ago

Is it in Joomla admin?

Yes.

phnoel commented 8 months ago

Sorry, but I don't know what to do!!... Otherwise, I only copied the josac_jcomments table, should I have copied the other 11?

Globulopolis commented 8 months ago

should I have copied the other 11?

Yes.

phnoel commented 8 months ago

Okay, I'll do that. For import/export, are there any parameters to change from the standard ones in Phpmyadmin?

Globulopolis commented 8 months ago

Okay, I'll do that. For import/export, are there any parameters to change from the standard ones in Phpmyadmin?

Go to administrator/index.php?option=com_config&view=component&component=com_jcomments and set up access rules again

phnoel commented 8 months ago

Sorry, but I don't know how or where to do that! In the joomla backend (which tab)? in files via filezilla? in sql tables? I really need to know more. Thanks

Globulopolis commented 8 months ago
  1. Copy the database tables to the new database using phpmyadmin
  2. Go to System->Global configuration in Joomla admin. Select Jcomments at left and configure the component.
  3. Go to System->Database in Joomla admin and check for errors. Do repair.
phnoel commented 8 months ago

Thank you for this detailed procedure. I did that, but my comments still don't appear!

Globulopolis commented 8 months ago

I did that, but my comments still don't appear!

Can you see comments in backend? Maybe it's better to provide me an access to your site? At least to frontend and backend.

phnoel commented 8 months ago

Yes of course ident ; pw : link backend : https://www.*.mx/administrator/index.php Link frontend : https://www.*.mx/index.php/poster-un-avis?view=comments

Globulopolis commented 8 months ago
  1. I see only 13 comments in backend. This is all comments?
  2. Any comment linked with the component(e.g. com_content) and item(article) via id and group. I see that the comments are not linked to the article(s).
  3. You need to move the articles from the old version to the new one. Then the comments will be displayed.
phnoel commented 8 months ago

"to move the articles from the old version to the new one"? I've already copied the jcomments table from the old version to the new one

Globulopolis commented 8 months ago

I've already copied the jcomments table from the old version to the new one

Articles! Not a comments.

phnoel commented 8 months ago

OK, but how to do this?

Globulopolis commented 8 months ago

OK, but how to do this?

It's not an easy. Ask on the Joomla official forum how to upgrade from old Joomla to new.

phnoel commented 8 months ago

OK, thank you for your help