blog running free without me

This is the right place to report general bugs, make suggestions or ask for help.
Post Reply
dart
Posts: 58
Joined: Sun May 30, 2021 4:46 pm

blog running free without me

Post by dart » Tue Oct 31, 2023 7:07 pm

Hello all,
After 6 months in website limbo, I signed up @ another webhost. As customary, I always have flatpress residing in a subfolder of the main domian.
Flatpress loaded up fine... all in one piece. Just had to change the menu info for the address & all is good as new. Well almost all - I can't login to the admin panel. I get this message "Not Authorized. You're not allowed to browse this folder. Back to <a href="..">home page</a>.

Here's what I see @ the panel:

Code: Select all

[b]locked.tpl.php[/b]

<h2><?php echo $l['head']; ?></h2>
<div class="post">

<?php echo wpautop(sprintf(
			$l['descr'], 
			LOCKFILE, 
			BLOG_BASEURL, 
			BLOG_BASEURL . 'setup.php'
		)); ?>

</div>


********************************************************************
IN ADM folder

[b]index.php[/b]

<?php
//require_once('../init.php');
//utils_redirect('../admin.php');

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>FlatPress</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>

<body>
	<h1>Not Authorized</h1>
	<p>You're not allowed to browse this folder.</p>
	<p>Back to <a href="..">home page</a>.</p>
</body>

</html>

User avatar
fraenkiman
Posts: 223
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: blog running free without me

Post by fraenkiman » Wed Nov 01, 2023 2:17 pm

Hello Dart,

this can have several causes:

1.) The new webhost runs a higher PHP version than your FlatPress version supports. FlatPress 1.21 supports up to PHP 8.0. If this is the case, you have to use the development version of FlatPress.

2) The necessary file and directory permissions are not correct. Normally the files and directories must belong to the group www-data. Also the directory fp-content should be writable for users and groups. I recommend 0775. You can check this e.g. with Filezilla and correct it if necessary.

3) In the file htaccess are outdated or invalid instructions for the web server. Rename existing htaccess files and try to log in to the administration area. htaccess files are hidden. In Filezilla you can "show all files".

You can try to call the setup.php file in the blog main directory again in the browser. Here you can create a new FlatPress user. The content of the blog will be preserved. You may have to reactivate some plugins.

With best regards
Frank
:pencil: You are strong in PHP and Java Script? :point_right: Then help us to improve FlatPress. :point_left:

:exploding_head: Looking for ideas, templates, examples and answers to frequently asked questions?
:bulb: You'll find it here.

My :de: FlatPress-Blog: https://frank-web.dedyn.io

User avatar
Arvid
FlatPress Coder
Posts: 576
Joined: Sat Jan 26, 2019 7:40 pm
Contact:

Re: blog running free without me

Post by Arvid » Sun Dec 31, 2023 2:07 pm

Hi,

just to check if it's a general problem: Could you please create another subfolder parallel to your FlatPress folder and install a completely fresh FlatPress instance there? Are you able to login into this one?

All the best,
Arvid

Post Reply

Who is online

Users browsing this forum: No registered users and 41 guests