1.2 Issues List

General information and announcements regarding the FlatPress project
Post Reply
sheriff
Posts: 16
Joined: Wed May 26, 2021 7:49 am

1.2 Issues List

Post by sheriff » Mon Jun 07, 2021 9:12 pm

1.2 issues that I would like to see fixed:

Code: Select all

PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; SocketWriteRead has a deprecated constructor in /fp-plugins/akismet/inc/Akismet.class.php on line 287
PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Akismet has a deprecated constructor in /fp-plugins/akismet/inc/Akismet.class.php on line 51

Plugins:
I can't find any decent flatpress prettyURLs documentation.


Issue is that....
PrettyURLs should be:

Code: Select all

baseurl.com/this-is-my-article/
There is no documentation on how to fix .htaccess for each prettyURLs option. If prettyURLs doesn't work, someone just suggests to switch to a different prettyURLs option without ever helping anyone edit the .htaccess code to get truly prettyURLs, instead of not ugly like this:

Code: Select all

 Automatic
try to guess the best choice for me
 Path Info
e.g. /index.php/2011/01/01/hello-world/
 HTTP Get
e.g. /?u=/2011/01/01/hello-world/
 Pretty
e.g. /2011/01/01/hello-world/
Thank you for taking my suggestions into consideration.

sheriff
Posts: 16
Joined: Wed May 26, 2021 7:49 am

Re: 1.2 Issues List

Post by sheriff » Mon Jun 07, 2021 11:14 pm

Will you please upgrade the sitemaps.php page to also list categories and other pages? Look at how many pages are potentially missing from the current sitemap.php generator compared to a free online generator with unlimited pages that I had crawl my page.

Code: Select all

/sitemap.php  | Jun 7, 2021 / Success  - 142 pages submitted
/sitemap.xml  | Jun 7, 2021 / Success  - 501 pages submitted

User avatar
marcocekada
Posts: 2
Joined: Wed Jul 14, 2021 7:02 am
Location: Italy
Contact:

Re: 1.2 Issues List

Post by marcocekada » Wed Jul 14, 2021 7:08 am

Hi Sherif,
thank you for your tips.

I'll try to give you a possible solution for prettyUrls plugin:
- enable the pretty version
- in your htaccess file in root directory of FP write:

Code: Select all

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /   #this is the root path of your server
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]   #here you have to write the folder in wich your flatpress file are followed by /index.php
</IfModule>
Let me know if it works

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

Re: 1.2 Issues List

Post by Arvid » Sun Aug 29, 2021 10:14 am

Hi, thank you very much for your suggestions.

I created an issue on the outdated Akismet classes. If you need this fixed in your FlatPress installation right away, simply change line 83 of fp-plugins/akismet/inc/Akismet.class.php from

Code: Select all

function Akismet($blogURL, $wordPressAPIKey) {
to

Code: Select all

function __construct($blogURL, $wordPressAPIKey) {
, and line 302 from

Code: Select all

function SocketWriteRead($host, $port, $request, $responseLength = 1160) {
to

Code: Select all

function __construct($host, $port, $request, $responseLength = 1160) {

sheriff wrote: Mon Jun 07, 2021 9:12 pmI can't find any decent flatpress prettyURLs documentation.
Quite a few plugins aren't documented properly yet. I also created an issue for that. (To all readers: Everybody is warmly invited to register on our wiki and edit or add docs!)

sheriff wrote: Mon Jun 07, 2021 11:14 pm Will you please upgrade the sitemaps.php page to also list categories and other pages? Look at how many pages are potentially missing from the current sitemap.php generator compared to a free online generator with unlimited pages that I had crawl my page.

Code: Select all

/sitemap.php  | Jun 7, 2021 / Success  - 142 pages submitted
/sitemap.xml  | Jun 7, 2021 / Success  - 501 pages submitted
Can you please send me a link to your website and the externally created sitemap.xml, so I can dig into it? Thanks! :)

All the best,
Arvid

Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests