Advertisement
Error trying to open admin page
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
-
- Joomla! Explorer
- Posts: 270
- Joined: Mon Oct 13, 2008 9:10 am
Error trying to open admin page
Hello,
I'm running Joomla 5.2.2 and as of 2 days ago, I've downgraded PHP to a previous version (7.4) to try to fix a bug in a plugin. Later, I returned to PHP 8.1.
Now I'm getting the error on the admin page and on other site pages:
Fatal error: Array and string offset access syntax with curly braces is no longer supported in /home/portalge/public_html/administrator/index.php on line 2
Forum Post Assitant is returning a 404:
https://portal-gestao.com/fpa-en.php
Can someone please help?
I'm running Joomla 5.2.2 and as of 2 days ago, I've downgraded PHP to a previous version (7.4) to try to fix a bug in a plugin. Later, I returned to PHP 8.1.
Now I'm getting the error on the admin page and on other site pages:
Fatal error: Array and string offset access syntax with curly braces is no longer supported in /home/portalge/public_html/administrator/index.php on line 2
Forum Post Assitant is returning a 404:
https://portal-gestao.com/fpa-en.php
Can someone please help?
Advertisement
- toivo
- Joomla! Master
- Posts: 17986
- Joined: Thu Feb 15, 2007 5:48 am
- Location: Sydney, Australia
Re: Error trying to open admin page
Please follow the instructions and post the FPA results into your reply.
Toivo Talikka, Global Moderator
-
- Joomla! Explorer
- Posts: 270
- Joined: Mon Oct 13, 2008 9:10 am
Re: Error trying to open admin page
@Master
I did that. I've uploaded the fpa-en.php to the root, but still get a 404.
Does this make sense?
I did that. I've uploaded the fpa-en.php to the root, but still get a 404.
Does this make sense?
- AMurray
- Joomla! Master
- Posts: 10437
- Joined: Sat Feb 13, 2010 7:35 am
- Location: Australia
Re: Error trying to open admin page
You possibly need to check the option in your FTP program to do with "preserve timestamp" so it will keep the current time and date of the file. In WinSCP it has that option to "preserve timestamp". Other FTP programs may have the same or similar function.
Refer to https://forumpostassistant.github.io/docs/admin-guide/ - contains informatoin about how to upload and to avoid the auto-delete issue.
Refer to https://forumpostassistant.github.io/docs/admin-guide/ - contains informatoin about how to upload and to avoid the auto-delete issue.
Regards - A Murray
General Support Moderator
General Support Moderator
- ceford
- Joomla! Hero
- Posts: 2967
- Joined: Mon Feb 24, 2014 10:38 pm
- Location: Edinburgh, Scotland
- Contact:
Re: Error trying to open admin page
There is something badly wrong with your installation. For this error message:
The entry point is not line 2 so this file must be corrupt. Have a look at it with a text editor. You may need to replace it with the original./home/portalge/public_html/administrator/index.php on line 2
-
- Joomla! Explorer
- Posts: 270
- Joined: Mon Oct 13, 2008 9:10 am
Re: Error trying to open admin page
Is there a way to reinstall Joomla?
Would that solve the problem
Would that solve the problem
- ceford
- Joomla! Hero
- Posts: 2967
- Joined: Mon Feb 24, 2014 10:38 pm
- Location: Edinburgh, Scotland
- Contact:
Re: Error trying to open admin page
Try to find out what is wrong first! The fact that fpa-en.php is not working in the root of your site is a worry. Look at the site file structure with a file manager (cPanel or whatever your hosting service provides).
-
- Joomla! Explorer
- Posts: 270
- Joined: Mon Oct 13, 2008 9:10 am
Re: Error trying to open admin page
I'm using CPanel file manager. I see the file there:AMurray wrote: ↑Mon Dec 09, 2024 12:17 pm You possibly need to check the option in your FTP program to do with "preserve timestamp" so it will keep the current time and date of the file. In WinSCP it has that option to "preserve timestamp". Other FTP programs may have the same or similar function.
Refer to https://forumpostassistant.github.io/docs/admin-guide/ - contains informatoin about how to upload and to avoid the auto-delete issue.
You do not have the required permissions to view the files attached to this post.
-
- Joomla! Explorer
- Posts: 270
- Joined: Mon Oct 13, 2008 9:10 am
Re: Error trying to open admin page
I've replaced /administrator/index.php by the original file and now the admin works again.
Upon trying to open the file locally, Windows 11 is telling me there's a virus or malicious software.
There should be a way to reinstall Joomla to the same version from the Admin Panel.
Upon trying to open the file locally, Windows 11 is telling me there's a virus or malicious software.
There should be a way to reinstall Joomla to the same version from the Admin Panel.
-
- Joomla! Explorer
- Posts: 270
- Joined: Mon Oct 13, 2008 9:10 am
Re: Error trying to open admin page
Still, fpa-en.php is showing a 404.
There's something strange still going on.
There's something strange still going on.
- ceford
- Joomla! Hero
- Posts: 2967
- Joined: Mon Feb 24, 2014 10:38 pm
- Location: Edinburgh, Scotland
- Contact:
Re: Error trying to open admin page
If admin is now working, try System / Update panel -> Joomla and then Check for Updates. You should see a Reinstall Joomla core files button. But that does not explain why fpa-en.php is not working. Is your OS blocking it?
-
- Joomla! Explorer
- Posts: 270
- Joined: Mon Oct 13, 2008 9:10 am
Re: Error trying to open admin page
Tried to reinstall core joomla files, but got this error:
You do not have the required permissions to view the files attached to this post.
- ceford
- Joomla! Hero
- Posts: 2967
- Joined: Mon Feb 24, 2014 10:38 pm
- Location: Edinburgh, Scotland
- Contact:
Re: Error trying to open admin page
How much of the Admin interface is now working? I think you need to find out why fpa-en.php is not working. Get it to work and then post its results here.
You may have to take up your problem with Yootheme. The Error page from https://portal-gestao.com/fpa-en.php is generated by Yootheme.
You may have to take up your problem with Yootheme. The Error page from https://portal-gestao.com/fpa-en.php is generated by Yootheme.
-
- Joomla! Explorer
- Posts: 270
- Joined: Mon Oct 13, 2008 9:10 am
Re: Error trying to open admin page
Everything is working on the backend right now.
I'll try to overwrite Joomla files since I'm getting desperate (users too).
I'll try to overwrite Joomla files since I'm getting desperate (users too).
-
- Joomla! Explorer
- Posts: 270
- Joined: Mon Oct 13, 2008 9:10 am
Re: Error trying to open admin page
PHP is configured to version 8.1 on Cpanel.
But, when running a simple script on the root, like:
<?php
echo 'Versão do PHP: ' . phpversion();
?>
It returns 7.3.33
When trying to open fpa-en.php
I get:
[09-Dec-2024 18:08:27 UTC] PHP Fatal error: Uncaught Error: Call to undefined function str_contains() in /home/portalge/public_html/fpa-en.php:1430
Stack trace:
#0 {main}
thrown in /home/portalge/public_html/fpa-en.php on line 1430
But, when running a simple script on the root, like:
<?php
echo 'Versão do PHP: ' . phpversion();
?>
It returns 7.3.33
When trying to open fpa-en.php
I get:
[09-Dec-2024 18:08:27 UTC] PHP Fatal error: Uncaught Error: Call to undefined function str_contains() in /home/portalge/public_html/fpa-en.php:1430
Stack trace:
#0 {main}
thrown in /home/portalge/public_html/fpa-en.php on line 1430
-
- Joomla! Explorer
- Posts: 270
- Joined: Mon Oct 13, 2008 9:10 am
Error on PHP version
Hello,
On my Joomla 5.2.2 website, I have the following script:
<?php
echo 'Versão do PHP: ' . phpversion();
?>
It returns:
Versão do PHP: 7.3.33
On MultiPHP Manager, the site is configured to use PHP 8.1.
I've tried to add the following to .htaccess:
AddHandler application/x-httpd-php81 .php
But, by doing this, whenever any page of the site is open a file is downloaded with:
Can anyone help?
On my Joomla 5.2.2 website, I have the following script:
<?php
echo 'Versão do PHP: ' . phpversion();
?>
It returns:
Versão do PHP: 7.3.33
On MultiPHP Manager, the site is configured to use PHP 8.1.
I've tried to add the following to .htaccess:
AddHandler application/x-httpd-php81 .php
But, by doing this, whenever any page of the site is open a file is downloaded with:
Code: Select all
<?php
/**
* @package Joomla.Site
*
* @copyright (C) 2005 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// NOTE: This file should remain compatible with PHP 5.2 to allow us to run our PHP minimum check and show a friendly error message
// Define the application's minimum supported PHP version as a constant so it can be referenced within the application.
define('JOOMLA_MINIMUM_PHP', '8.1.0');
if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<')) {
die(
str_replace(
'{{phpversion}}',
JOOMLA_MINIMUM_PHP,
file_get_contents(dirname(__FILE__) . '/includes/incompatible.html')
)
);
}
/**
* Constant that is checked in included files to prevent direct access.
* define() is used rather than "const" to not error for PHP 5.2 and lower
*/
define('_JEXEC', 1);
// Run the application - All executable code should be triggered through this file
require_once dirname(__FILE__) . '/includes/app.php';
Last edited by toivo on Mon Dec 09, 2024 8:33 pm, edited 1 time in total.
Reason: mod note: merged with the current topic
Reason: mod note: merged with the current topic
- ceford
- Joomla! Hero
- Posts: 2967
- Joined: Mon Feb 24, 2014 10:38 pm
- Location: Edinburgh, Scotland
- Contact:
Re: Error trying to open admin page
str_contains is a PHP 8 function. Go to System / System Information panel / System Information - several of the tabs there will show which version of PHP Joomla is using. You can configure different versions of PHP for different domains in cPanel. Double check what is configured for your domain. A different versions can be configured for the command line too.
-
- Joomla! Explorer
- Posts: 270
- Joined: Mon Oct 13, 2008 9:10 am
Re: Error trying to open admin page
@Hero
My admin is now broken. I have access to FTP files, is there a way I can fix this with FTP?
My admin is now broken. I have access to FTP files, is there a way I can fix this with FTP?
- ceford
- Joomla! Hero
- Posts: 2967
- Joined: Mon Feb 24, 2014 10:38 pm
- Location: Edinburgh, Scotland
- Contact:
Re: Error trying to open admin page
This is not a useful description of what the problem might be. Fix the PHP Version via cPanel first. Test with fpa-en.php. It may be that the wrong PHP version is causing other problems.
-
- Joomla! Explorer
- Posts: 270
- Joined: Mon Oct 13, 2008 9:10 am
Re: Error trying to open admin page
On CPanel, PHP is set to version 8.1, as mentioned on my previous post.
How can phpversion() show 7.3.33 on the frontend?
How can phpversion() show 7.3.33 on the frontend?
- ceford
- Joomla! Hero
- Posts: 2967
- Joined: Mon Feb 24, 2014 10:38 pm
- Location: Edinburgh, Scotland
- Contact:
Re: Error trying to open admin page
In cPanel, go to the MultiPHP Manager. What does it show against your domain? If in doubt, take a screenshot and post here. Look at configuration.php with a text editor (in cPanel). Is there anything in $live_site;?
-
- Joomla! Explorer
- Posts: 270
- Joined: Mon Oct 13, 2008 9:10 am
Re: Error trying to open admin page
From CPanel MultiPHP Manager:
From the frontend: https://www.portal-gestao.com/php_info.php
In configuration.php:
public $live_site = '';
Btw, I can't delete/edit or change configuration.php permissions.
From the frontend: https://www.portal-gestao.com/php_info.php
In configuration.php:
public $live_site = '';
Btw, I can't delete/edit or change configuration.php permissions.
You do not have the required permissions to view the files attached to this post.
-
- Joomla! Explorer
- Posts: 270
- Joined: Mon Oct 13, 2008 9:10 am
Re: Error trying to open admin page
tigger wrote: ↑Mon Dec 09, 2024 8:21 pm From CPanel MultiPHP Manager:
Captura de ecrã 2024-12-09 201932.jpg
From the frontend: https://www.portal-gestao.com/php_info.php
Captura de ecrã 2024-12-09 202035.jpg
In configuration.php:
Code: Select all
public $live_site = '';
Btw, I can't delete/edit or change configuration.php permissions.
- ceford
- Joomla! Hero
- Posts: 2967
- Joined: Mon Feb 24, 2014 10:38 pm
- Location: Edinburgh, Scotland
- Contact:
Re: Error trying to open admin page
Look in .htaccess to see if anything is overriding the PHP version. Your admin login page is also returning the red Joomla Sorry, your PHP version is not supported error page.
-
- Joomla! Explorer
- Posts: 270
- Joined: Mon Oct 13, 2008 9:10 am
Re: Error trying to open admin page
May I post .htaccss here?
- ceford
- Joomla! Hero
- Posts: 2967
- Joined: Mon Feb 24, 2014 10:38 pm
- Location: Edinburgh, Scotland
- Contact:
Re: Error trying to open admin page
No. You can just rename it for a test - to htacess-old for example. Did you use the htaccess.txt that comes with the latest Joomla version? Or did you you use .htaccess inherited from an earlier installation?
-
- Joomla! Explorer
- Posts: 270
- Joined: Mon Oct 13, 2008 9:10 am
Re: Error trying to open admin page
I've just updated htaccess.txt and renamed it to .htaccess
It seems I get the same error.
It seems I get the same error.
- ceford
- Joomla! Hero
- Posts: 2967
- Joined: Mon Feb 24, 2014 10:38 pm
- Location: Edinburgh, Scotland
- Contact:
Re: Error trying to open admin page
Your other site: https://training.portal-gestao.com/ seems to be working fine. So what is different about them? Somewhere, your problem site is being told to use an unsupported version of PHP. Have you asked your service provider for help?
-
- Joomla! Explorer
- Posts: 270
- Joined: Mon Oct 13, 2008 9:10 am
Re: Error trying to open admin page
I did, and I also find that intriguing.
Even deleting .htaccess provides the same error message.
Where can it be? This is crazy!
Even deleting .htaccess provides the same error message.
Where can it be? This is crazy!
-
- Joomla! Explorer
- Posts: 270
- Joined: Mon Oct 13, 2008 9:10 am
Re: Error trying to open admin page
I've noticed I can change configuration.php on the subdomain (working fine), but I can't do it for the main site.
I.e. I can't change permissions, delete the file, replace it, edit, etc.
I get the error:
FileOp Failure on: /home/portalge/public_html/configuration.php: Operation not permitted
I.e. I can't change permissions, delete the file, replace it, edit, etc.
I get the error:
FileOp Failure on: /home/portalge/public_html/configuration.php: Operation not permitted
Advertisement