Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Database ID for a deleted user. (solved)

10 years 2 months ago
  • Mar's Avatar
    Topic Author
  • Mar
  • Offline
  • Fresh Boarder
  • Posts: 64
  • Thank you received: 1
Licenses:
JomSocial Expired

We had deleted a user from the JomSocial GUI, who had link to some content and this user is now re-created to resolve the problem. Unfortunately, his id needs to be changed in the database ti have the old ID.

you can see this when you click on any article in the system.

Would you be kind to provide an SQL to correct the new user id with the old id so that we do not get the error
on the system that is constantly throwing this error (see screen shot)



We appreciate your support on this as we spent a lot of time in creating the structure of our website before go live.

thanks.

Attachment id.png not found




Kind Regards

M.

Attachments:
10 years 2 months ago
Licenses:

HI, M Chabbani

You can do it in two ways:

0. Make a safe copy first!


1. Enter your database via phpMyAdmin
2. Find table _community_users
3. You can identify your user by looking in "alias" column that will contain user name alias.
4. Edit your user record and change value in "userid" field

You can also enter a SQL query:

UPDATE `your_database_name`.`your_prefix_community_users` SET `userid` = '572' WHERE `your_prefix_community_users`.`userid` = current_user_id;

your_database_name - change to your database name. In your case it will be: xrisma
your_prefix - your prefix for database tables. In your case it will be: xrisma_
current_user_id - now user have a new userid, just enter it here

I suggest first option as it seems easier.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
The following user(s) said Thank You: Mar
10 years 2 months ago
  • Mar's Avatar
    Topic Author
  • Mar
  • Offline
  • Fresh Boarder
  • Posts: 64
  • Thank you received: 1
Licenses:
JomSocial Expired

thanks Michal for your excellent support, I did the following

mysql> UPDATE `xrisma`.`xrisma_community_users` SET `userid` = '572' WHERE `xrisma_community_users`.`userid` = 591;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0

but when I do this

mysql> select userid from `xrisma`.`xrisma_community_users`
-> ;
+


+
| userid |
+
+
| 572 |
| 586 |
| 587 |
| 588 |
| 590 |
| 591 |
+
+
6 rows in set (0.00 sec)

I do not see that user with this id in the GUI of admin

also the content issue is still there.

Thanks for your support.

10 years 2 months ago
Licenses:

Hi, Mar.

Please add to your first post access to your database. Paste it to "Miscellaneous" field.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
10 years 2 months ago
  • Mar's Avatar
    Topic Author
  • Mar
  • Offline
  • Fresh Boarder
  • Posts: 64
  • Thank you received: 1
Licenses:
JomSocial Expired

We decided to re-install the whole site for another reason. I will let you know if we decided otherwise. anyway thanks very much for your support for now.

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW