Forgot Password

This is the right place to report general bugs, make suggestions or ask for help.
sheriff
Posts: 16
Joined: Wed May 26, 2021 7:49 am

Forgot Password

Post by sheriff » Wed May 26, 2021 7:53 am

I migrated servers and forgot my admin password. The password is the same as it was, but I have no idea how to reset my password. Did I miss updating any files when migrating? :shock:

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

Re: Forgot Password

Post by sheriff » Fri May 28, 2021 3:22 am

Okay, so the situation has progressively gotten worse. My browser now acts like there's no page or content there. My site is https://AcapNews.com. It has a 500 error in the developer console. Is this because I'm on an older version of FP? I would try to upgrade, but without being able to login, I do not know the version of FP that I am on. Is there a file that says which version I am using?

When I try to install the latest version of FP, it says that setup.php is inaccessible. I have tried to bypass the page lock by deleting it from the .php files, but that doesn't help at all.

I tried enabling php 7.3, 7.4 and 8.0, that didn't help either.

Any help getting my blog back up and running is greatly appreciated.

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

Re: Forgot Password

Post by sheriff » Fri May 28, 2021 3:34 am

Cache folder was not writable, so now the error 500 was fixed. Will update soon.

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

Re: Forgot Password

Post by sheriff » Fri May 28, 2021 3:39 am

These two errors are popping up while trying to login.

PHP Notice: Trying to access array offset on value of type null in /fp-includes/core/core.users.php on line 47: /usr/local/cpanel/cgi-sys/ea-php74, referer: https://acapnews.com/login.php

PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /fp-plugins/bbcode/inc/stringparser.class.php on line 574: /usr/local/cpanel/cgi-sys/ea-php74, referer: https://acapnews.com/login.php

User avatar
WineMan
Posts: 106
Joined: Tue Sep 01, 2020 5:03 pm

Re: Forgot Password

Post by WineMan » Fri May 28, 2021 2:12 pm

I had the same problem in another application as it relates to the curly braces. I fixed it by going to the line in the error message and changing the curly braces { } to [ ] brackets. There are more than likely a few of these errors in the code. This popped up when trying to run my application in php 7.4.16 from version 5.6.39

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

Re: Forgot Password

Post by Arvid » Fri May 28, 2021 3:31 pm

Hi and welcome the the FlatPress support forum!

This curly braces thing shouldn't occur in the current FlatPress version 1.2, which FP version are you running?

As for your initial question about the lost password: We have this covered on our wiki :)

All the best,
Arvid

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

Re: Forgot Password

Post by sheriff » Sun Jun 06, 2021 6:38 pm

Okay, here is the update:

I fixed what I could and then I have had all the errors that I couldn't resolve on my own fixed for me, such as the array issue. And now everything is fixed, but I don't understand how to delete the cache, because this site is cached so hard, that it's showing the old server side coding and it won't let it go no matter how much I delete the browser's cache, or visit from a private tab, and that it seems like if you delete cache, it breaks the whole site.

Can anyone show me how to manually delete the cache from FTP? I need to know what files and folders may or may not be safe to delete from the cache. Any help is greatly appreciated! And thank you for the replies! :? LOL


This quote from my second post in this thread answers your question, Arvid?
Is this because I'm on an older version of FP? I would try to upgrade, but without being able to login, I do not know the version of FP that I am on. Is there a file that says which version I am using?

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

Re: Forgot Password

Post by sheriff » Sun Jun 06, 2021 6:57 pm

I deleted the cache folder's files, but now I'm dealing with these errors when trying to login.

Code: Select all

PHP Notice:  Trying to access array offset on value of type null in /fp-includes/core/core.users.php on line 47: /usr/local/cpanel/cgi-sys/ea-php74, referer: https://acapnews.com/login.php
PHP Deprecated:  Array and string offset access syntax with curly braces is deprecated in /fp-plugins/bbcode/inc/stringparser.class.php on line 465: /usr/local/cpanel/cgi-sys/ea-php74, referer: https://acapnews.com/login.php
PHP Deprecated:  Array and string offset access syntax with curly braces is deprecated in /fp-plugins/bbcode/inc/stringparser_bbcode.class.php on line 1455: /usr/local/cpanel/cgi-sys/ea-php74, referer: https://acapnews.com/login.php
PHP Deprecated:  Array and string offset access syntax with curly braces is deprecated in /fp-plugins/bbcode/inc/stringparser_bbcode.class.php on line 1452: /usr/local/cpanel/cgi-sys/ea-php74, referer: https://acapnews.com/login.php
PHP Deprecated:  Array and string offset access syntax with curly braces is deprecated in /fp-plugins/bbcode/inc/stringparser_bbcode.class.php on line 1074: /usr/local/cpanel/cgi-sys/ea-php74, referer: https://acapnews.com/login.php
PHP Deprecated:  Array and string offset access syntax with curly braces is deprecated in /fp-plugins/bbcode/inc/stringparser_bbcode.class.php on line 1069: /usr/local/cpanel/cgi-sys/ea-php74, referer: https://acapnews.com/login.php
PHP Deprecated:  Array and string offset access syntax with curly braces is deprecated in /fp-plugins/bbcode/inc/stringparser_bbcode.class.php on line 1061: /usr/local/cpanel/cgi-sys/ea-php74, referer: https://acapnews.com/login.php
PHP Deprecated:  Array and string offset access syntax with curly braces is deprecated in /fp-plugins/bbcode/inc/stringparser_bbcode.class.php on line 1056: /usr/local/cpanel/cgi-sys/ea-php74, referer: https://acapnews.com/login.php

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

Re: Forgot Password

Post by sheriff » Sun Jun 06, 2021 7:13 pm

PHP Notice: Trying to access array offset on value of type null in /fp-includes/core/core.users.php on line 47: /usr/local/cpanel/cgi-sys/ea-php74, referer: /login.php
I fixed all the curly braces, but what's wrong with this code on line 47?

Line 47:

Code: Select all

if (user_pwd($userid,$pwd) == $user['password']){
And

How do I fix this?

Code: Select all

PHP Deprecated:  strstr(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /fp-includes/core/core.wp-formatting.php on line 51: /usr/local/cpanel/cgi-sys/ea-php74, referer: /login.php
Line 51:

Code: Select all

} elseif (strstr($curl, '<code') || strstr($curl, '<pre') || strstr($curl, '<kbd' || strstr($curl, '<style') || strstr($curl, '<script'))) {

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

Re: Forgot Password

Post by sheriff » Sun Jun 06, 2021 7:45 pm

I fixed line 51 like this:

Code: Select all

} elseif (strstr($curl, (string)['<code']) || strstr($curl, (string)['<pre']) || strstr($curl, (string)['<kbd'] || strstr($curl, (string)['<style']) || strstr($curl, (string)['<script']))) {

Update: I was wrong, this did not fix the issue.

Post Reply

Who is online

Users browsing this forum: No registered users and 32 guests