Advertisement

I no longer have access to my site's administration

General questions relating to Joomla! 4.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
joaquiman
Joomla! Intern
Joomla! Intern
Posts: 81
Joined: Tue Sep 28, 2021 10:56 am

I no longer have access to my site's administration

Post by joaquiman » Fri Dec 13, 2024 9:06 pm

Hello,
I no longer have access to my site's administration (https://teamoptc.com/administrator/) -> Forbidden
You don't have permission to access this resource. or error 404. Who knows a solution? please

ps: I've already restored the database from 2 weeks ago (as much as possible)

Advertisement
User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17978
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: I no longer have access to my site's administration

Post by toivo » Fri Dec 13, 2024 9:25 pm

joaquiman wrote: Fri Dec 13, 2024 9:06 pmForbidden
You don't have permission to access this resource.
That message does not come from Joomla 4. Please contact your host for an explanation.

The frontend of your site displays the message "The server returned a "500 - Whoops, looks like something went wrong."

Go to File Manager in the cPanel or a similar page, provided by your host, and write-enable the file configuration.php in the main Joomla folder. Edit the file and make the following modifications:

Code: Select all

	public $debug = true;
	public $error_reporting = 'maximum';
Joomla will now display a detailed error message, showing the name and line number of the script where the error occurs, followed by the PHP call stack. Copy and paste those lines into your reply.
Toivo Talikka, Global Moderator

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44844
Joined: Sat Apr 05, 2008 9:58 pm

Re: I no longer have access to my site's administration

Post by Webdongle » Fri Dec 13, 2024 11:25 pm

joaquiman wrote: Fri Dec 13, 2024 9:06 pm...

ps: I've already restored the database from 2 weeks ago (as much as possible)
That's the cause.
1. Why did you have to 'restore the database
2. Do you have a complete backup (N.B. a database and files that belong to each other?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

joaquiman
Joomla! Intern
Joomla! Intern
Posts: 81
Joined: Tue Sep 28, 2021 10:56 am

Re: I no longer have access to my site's administration

Post by joaquiman » Sat Dec 14, 2024 10:51 am

toivo wrote: Fri Dec 13, 2024 9:25 pm
joaquiman wrote: Fri Dec 13, 2024 9:06 pmForbidden
You don't have permission to access this resource.
That message does not come from Joomla 4. Please contact your host for an explanation.

The frontend of your site displays the message "The server returned a "500 - Whoops, looks like something went wrong."

Go to File Manager in the cPanel or a similar page, provided by your host, and write-enable the file configuration.php in the main Joomla folder. Edit the file and make the following modifications:

Code: Select all

	public $debug = true;
	public $error_reporting = 'maximum';
Joomla will now display a detailed error message, showing the name and line number of the script where the error occurs, followed by the PHP call stack. Copy and paste those lines into your reply.
Thank you for your message.


app.engine=php
app.engine.version=7.4
http.firewall=none
environment=production
container.image=stable64

joaquiman
Joomla! Intern
Joomla! Intern
Posts: 81
Joined: Tue Sep 28, 2021 10:56 am

Re: I no longer have access to my site's administration

Post by joaquiman » Sat Dec 14, 2024 10:53 am

Webdongle wrote: Fri Dec 13, 2024 11:25 pm
joaquiman wrote: Fri Dec 13, 2024 9:06 pm...

ps: I've already restored the database from 2 weeks ago (as much as possible)
That's the cause.
1. Why did you have to 'restore the database
2. Do you have a complete backup (N.B. a database and files that belong to each other?
Thank you for your message.

1. Ovh ask me to do this...
2. No :(

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44844
Joined: Sat Apr 05, 2008 9:58 pm

Re: I no longer have access to my site's administration

Post by Webdongle » Sat Dec 14, 2024 10:59 am

1. Ovh?
2. You could ask the Host to roll back the server. If not there is a possibility your site is broke
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

joaquiman
Joomla! Intern
Joomla! Intern
Posts: 81
Joined: Tue Sep 28, 2021 10:56 am

Re: I no longer have access to my site's administration

Post by joaquiman » Sat Dec 14, 2024 11:05 am

Webdongle wrote: Sat Dec 14, 2024 10:59 am 1. Ovh?
2. You could ask the Host to roll back the server. If not there is a possibility your site is broke
1. https://www.ovhcloud.com/fr/

2. [censored]

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17978
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: I no longer have access to my site's administration

Post by toivo » Sat Dec 14, 2024 11:24 am

joaquiman wrote: Sat Dec 14, 2024 10:51 amapp.engine=php
app.engine.version=7.4
That information is not the detailed PHP error message and a call stack. Are you sure you modified those two lines in the file configuration.php?
Toivo Talikka, Global Moderator

joaquiman
Joomla! Intern
Joomla! Intern
Posts: 81
Joined: Tue Sep 28, 2021 10:56 am

Re: I no longer have access to my site's administration

Post by joaquiman » Sat Dec 14, 2024 8:27 pm

toivo wrote: Sat Dec 14, 2024 11:24 am
joaquiman wrote: Sat Dec 14, 2024 10:51 amapp.engine=php
app.engine.version=7.4
That information is not the detailed PHP error message and a call stack. Are you sure you modified those two lines in the file configuration.php?
It is ?
You do not have the required permissions to view the files attached to this post.
Last edited by joaquiman on Sat Dec 14, 2024 9:25 pm, edited 1 time in total.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17978
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: I no longer have access to my site's administration

Post by toivo » Sat Dec 14, 2024 9:17 pm

joaquiman wrote: Sat Dec 14, 2024 8:27 pmIt is ?
No.

The website is now unable to connect to the database:

Code: Select all

Joomla\Database\Exception\
ConnectionFailureException
Could not connect to database: Access denied for user [ redacted ] (using password: YES)
Contact the support team of your host and find out the reason why the backend is unavailable. Go to the cPanel or a similar page, provided by your host, and set the username and password for the database, then use the File Manager from the cPanel to write-enable and edit the file configuration.php in the main Joomla folder and modify the lines containing the database connection details, for example:

Code: Select all

        public $dbtype = 'mysqli';
	public $host = 'localhost';
	public $user = 'mydbuser';
	public $password = 'mydbpassword';
	public $db = 'mydbname';
Toivo Talikka, Global Moderator

joaquiman
Joomla! Intern
Joomla! Intern
Posts: 81
Joined: Tue Sep 28, 2021 10:56 am

Re: I no longer have access to my site's administration

Post by joaquiman » Sat Dec 14, 2024 9:38 pm

Thank you so much for your help!

There was a problem with the ‘index’ file which was renamed ‘iindex’ with 2 ‘i’.

However, I'm now looking for the identifiers. Jsp si vous avec une technique pour récupérer ça ?

joaquiman
Joomla! Intern
Joomla! Intern
Posts: 81
Joined: Tue Sep 28, 2021 10:56 am

Re: I no longer have access to my site's administration

Post by joaquiman » Sat Dec 14, 2024 10:42 pm

I don't have user line. Can you help me ? please
You do not have the required permissions to view the files attached to this post.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17978
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: I no longer have access to my site's administration

Post by toivo » Sat Dec 14, 2024 10:44 pm

Cheers, good to hear that the site is now working!

joaquiman wrote: Sat Dec 14, 2024 9:38 pmI'm now looking for the identifiers. Jsp si vous avec une technique pour récupérer ça ?
Not sure what you mean. Can you please explain what is meant by 'identifiers' and say it in English in this forum.
Toivo Talikka, Global Moderator

joaquiman
Joomla! Intern
Joomla! Intern
Posts: 81
Joined: Tue Sep 28, 2021 10:56 am

Re: I no longer have access to my site's administration

Post by joaquiman » Sat Dec 14, 2024 11:10 pm

I'm trying to reset my login but it doesn't work, even when I create a new line in the table. I used https://www.danielmorell.com/tools/joom ... -generator
You do not have the required permissions to view the files attached to this post.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17978
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: I no longer have access to my site's administration

Post by toivo » Sat Dec 14, 2024 11:21 pm

That is the first page in the list of database tables in phpMyAdmin. Browse to the next pages and you will find lm2vw_users.
Toivo Talikka, Global Moderator

joaquiman
Joomla! Intern
Joomla! Intern
Posts: 81
Joined: Tue Sep 28, 2021 10:56 am

Re: I no longer have access to my site's administration

Post by joaquiman » Sat Dec 14, 2024 11:29 pm

toivo wrote: Sat Dec 14, 2024 11:21 pm That is the first page in the list of database tables in phpMyAdmin. Browse to the next pages and you will find lm2vw_users.
I changed my email address with the generator. On the login page it said it was invalid. So I created another user and another password and it was still invalid.
You do not have the required permissions to view the files attached to this post.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17978
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: I no longer have access to my site's administration

Post by toivo » Sat Dec 14, 2024 11:57 pm

Follow this tutorial, if you need to reset your backend password or create a new user as a member of the Super Users usergroup:
How do you recover or reset your admin password?
Toivo Talikka, Global Moderator

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44844
Joined: Sat Apr 05, 2008 9:58 pm

Re: I no longer have access to my site's administration

Post by Webdongle » Sun Dec 15, 2024 3:12 am

joaquiman wrote: Fri Dec 13, 2024 9:06 pm...
ps: I've already restored the database from 2 weeks ago (as much as possible)
If something broke in the database and you 'restored' it "from 2 weeks ago (as much as possible)" then the chances are you have irrevocably broke your site.

With no backup your only hope (imho) is to get your Host to roll back to a time when your site was working.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

joaquiman
Joomla! Intern
Joomla! Intern
Posts: 81
Joined: Tue Sep 28, 2021 10:56 am

Re: I no longer have access to my site's administration

Post by joaquiman » Sun Dec 15, 2024 10:55 am

toivo wrote: Sat Dec 14, 2024 11:57 pm Follow this tutorial, if you need to reset your backend password or create a new user as a member of the Super Users usergroup:
How do you recover or reset your admin password?
I've run the tutorial several times and always get the same error message. I can't see what the problem is.
You do not have the required permissions to view the files attached to this post.

joaquiman
Joomla! Intern
Joomla! Intern
Posts: 81
Joined: Tue Sep 28, 2021 10:56 am

Re: I no longer have access to my site's administration

Post by joaquiman » Sun Dec 15, 2024 10:56 am

Do I recreate a topic now that my initial problem has been solved?

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44844
Joined: Sat Apr 05, 2008 9:58 pm

Re: I no longer have access to my site's administration

Post by Webdongle » Sun Dec 15, 2024 12:23 pm

Your initial problem has not been solved.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

joaquiman
Joomla! Intern
Joomla! Intern
Posts: 81
Joined: Tue Sep 28, 2021 10:56 am

New login for joomla

Post by joaquiman » Sun Dec 15, 2024 12:24 pm

Hello,
I followed this tutorial to get new login details but it doesn't work. Does anyone know a solution?

https://docs.joomla.org/How_do_you_reco ... assword%3F
You do not have the required permissions to view the files attached to this post.
Last edited by toivo on Sun Dec 15, 2024 8:22 pm, edited 1 time in total.
Reason: mod note: merged with the current topic

User avatar
AMurray
Joomla! Master
Joomla! Master
Posts: 10435
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: I no longer have access to my site's administration

Post by AMurray » Sun Dec 15, 2024 9:44 pm

The methods outlined in https://docs.joomla.org/How_do_you_reco ... assword%3F are the only methods for resetting a Super User password.

Which of the two methods were you using?

Method 1 escalates another existing administrator-level user to "Super User" temporarily (the docs say this works for users with "Author" permissions or higher (i.e. Publisher, Manager, Administrator in a default install)

Method 2 has two options - (a) directly edit the database user record, and copy in the example password in the above docs (in hashed format not 'real text') or to (b) add a new super user.

Which of these (Option 1 or Option 2a or Option 2b) were you trying and failed?
Regards - A Murray
General Support Moderator

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44844
Joined: Sat Apr 05, 2008 9:58 pm

Re: I no longer have access to my site's administration

Post by Webdongle » Sun Dec 15, 2024 11:22 pm

@AMurray

Those methods aren't working for the OP because he has broke his database.
joaquiman wrote: Fri Dec 13, 2024 9:06 pm... I've already restored the database from 2 weeks ago (as much as possible)
The clue is in the phrase '(as much as possible)'
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

joaquiman
Joomla! Intern
Joomla! Intern
Posts: 81
Joined: Tue Sep 28, 2021 10:56 am

Re: I no longer have access to my site's administration

Post by joaquiman » Mon Dec 16, 2024 11:21 am

Maybe my translation isn’t accurate. Following the initial error: "Forbidden You don't have permission to access this resource" or "Error 404", the OVH Cloud team advised me to restore a backup, but it didn’t work. Then I discovered that a file had been renamed incorrectly: the index file had been renamed to iindex (with two "i"s). After fixing this, I was able to access the login page.

However, I now have another issue: I can’t log in, even after creating new users using both methods described in the tutorial.

joaquiman
Joomla! Intern
Joomla! Intern
Posts: 81
Joined: Tue Sep 28, 2021 10:56 am

Re: I no longer have access to my site's administration

Post by joaquiman » Mon Dec 16, 2024 11:25 am

AMurray wrote: Sun Dec 15, 2024 9:44 pm The methods outlined in https://docs.joomla.org/How_do_you_reco ... assword%3F are the only methods for resetting a Super User password.

Which of the two methods were you using?

Method 1 escalates another existing administrator-level user to "Super User" temporarily (the docs say this works for users with "Author" permissions or higher (i.e. Publisher, Manager, Administrator in a default install)

Method 2 has two options - (a) directly edit the database user record, and copy in the example password in the above docs (in hashed format not 'real text') or to (b) add a new super user.

Which of these (Option 1 or Option 2a or Option 2b) were you trying and failed?
Option 2a and 2b

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44844
Joined: Sat Apr 05, 2008 9:58 pm

Re: I no longer have access to my site's administration

Post by Webdongle » Mon Dec 16, 2024 5:58 pm

joaquiman wrote: Mon Dec 16, 2024 11:21 am ... Following the initial error: "Forbidden You don't have permission to access this resource" or "Error 404", the OVH Cloud team advised me to restore a backup, but it didn’t work....
From your first post it appears that you didn't restore the backup correctly. The database and the files must be from when the site was working. Also the broken site files/database must be removed/emptied before restoring a backup.

If you did not do that then fiddling about with a 'patchwork quilt approach is (imho) a waste of time. You might as well use wamp on localhost to start from scratch. You can copy/paste from the database to recreate Articles in your new site.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

Advertisement

Post Reply

Return to “General Questions/New to Joomla! 4.x”