User registration not working

Hi,
We are using OJS 3.3.0.14 and our PHP version is 8.1. The user registration is not working with php 8.1 but works with php 7.4.

Is there any rectification to solve this?

Thanks and regards
Latha G Ravikumar

Hi @latha_ojs,

Could you provide any PHP error log messages? This might help pinpoint the error that is occurring.

-Roger
PKP Team

Thank you for your immediate response.

Attached is our PHP error log. The other problems we are getting often are session and metric table crashes.

Kindly let me know how to resolve these issues.

regards
Latha G Ravikumar
[18-Mar-2023 07:37:01 UTC] PHP Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/plugins/generic/piwik/PiwikPlugin.inc.php on line 113
[18-Mar-2023 07:37:01 UTC] PHP Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/plugins/modifier.escape.php on line 36
[18-Mar-2023 07:37:01 UTC] PHP Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/plugins/modifier.escape.php on line 36
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
[18-Mar-2023 07:37:02 UTC] PHP Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/plugins/generic/piwik/PiwikPlugin.inc.php on line 113
[18-Mar-2023 07:37:03 UTC] ojs2: 404 Not Found
[18-Mar-2023 07:37:04 UTC] PHP Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/plugins/generic/piwik/PiwikPlugin.inc.php on line 113
[18-Mar-2023 07:37:04 UTC] PHP Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/plugins/modifier.escape.php on line 36
[18-Mar-2023 07:37:04 UTC] PHP Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /home/jott/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/plugins/modifier.escape.php on line 36
[18-Mar-2023 07:37:07 UTC] ojs2: 404 Not Found

Long shot but, could be a unsync between OJS core and plugins?

Try replacing the existing plugins with the ones included in the OJS release and the install the missing ones as follows:

  1. Move your existing plugins folder (to keep a backup)
  2. Restore this folder with the default plugins folder included in the OJS version you installed.
  3. Go to the plugins gallery to install the missing plugins.
  4. Test what happens…

Cheers,
m.

I tried but got a blank page and was not able to log in. I had to restore the old plugins folder to make it work.

Today also my metric table got crashed. Do you think is it because of any plugin?

[22-Mar-2023 09:37:56 UTC] PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 144 Table ‘./jott_ojs/metrics’ is marked as crashed and last (automatic?) repair failed in /home/jott/public_html/lib/pkp/lib/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:80
Stack trace:
#0 /home/jott/public_html/lib/pkp/lib/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(80): PDO->prepare(‘SELECT submissi…’, Array)
#1 /home/jott/public_html/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(361): Doctrine\DBAL\Driver\PDOConnection->prepare(Object(Illuminate\Database\Query\Expression))
#2 /home/jott/public_html/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(664): Illuminate\Database\Connection->Illuminate\Database{closure}(Object(Illuminate\Database\Query\Expression), Array)
#3 /home/jott/public_html/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(631): Illuminate\Database\Connection->runQueryCallback(Object(Illuminate\Database\Query\Exp in /home/jott/public_html/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php on line 671

Hi @latha_ojs,

I’d advise you to run OJS 3.3 under PHP 7.4, the support for PHP 8.x has been added recently, so you might face unexpected issues.

About the crashed table, it’s not caused by the software, but you might try the solutions presented here:
https://stackoverflow.com/questions/8843776/mysql-table-is-marked-as-crashed-and-last-automatic-repair-failed

If it doesn’t work, you still can restore a working metrics table from a backup or recreate the table entirely from the log files (I think there’s more information here https://docs.pkp.sfu.ca/admin-guide/en/statistics, and before moving the log files to be reprocessed, you’ll need to drop the table and create it again, as the software can’t access it due to the crash).

As an extra note, OJS 3.4 has been developed under PHP 8.x.

Best,
Jonas Raoni

3 Likes