Hi, How are you?..
Guys, somebody can say me if I can install OJS in PHP7?
Cheers!!!
Hi, How are you?..
Guys, somebody can say me if I can install OJS in PHP7?
Cheers!!!
Yes it is possible, but you need change database driver to mysqli.
Regards,
Israel Cefrin
Public Knowledge Project Team
Should this not be part of the Readme files that come with the download? I have installed three various CMSes using php 7.1. all worked with Mysql. If OJS needs MYSQLI i suggest that this be stated in the readme file.
Which also raises the observation that the readme file had no instructions on How To Install.
I had to guess that one just pointed the browser to the URL i,e mysite.org/ and the installation proceeded.
Like most other CMSes i have used I would suggest the use of an /install directory which gets deleted by the user upon a successful install. This is then very obvious how how to begin the install.
cheers
p.s. the installation threw up a series of php error messages which i ignored after reading the forum. but it is worrisome to have these errors.
Hi Israel,
Could you help me?
I can not do an update from 2.4 to 3.1.1-4.
This are my steps:
Am I doing anything wrong?
Thanks!
Cristina
Hi @lacris
Have you checked your php/server error logs? Don’t you get a timeout return from command line?
Regards,
Israel Cefrin
Public Knowledge Project Team
Good morning Israel,
Nothing appears neither into php/server error logs nor in the command line. Well, it shows the same lines in both:
[03-Dec-2018 12:29:00 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbObject has a deprecated constructor in /Nwww/web/servicios/sp/ojs-3.1.1-4/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 106
[03-Dec-2018 12:29:00 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbTable has a deprecated constructor in /Nwww/web/servicios/sp/ojs-3.1.1-4/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 205
[03-Dec-2018 12:29:00 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbIndex has a deprecated constructor in /Nwww/web/servicios/sp/ojs-3.1.1-4/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 613
[03-Dec-2018 12:29:00 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbData has a deprecated constructor in /Nwww/web/servicios/sp/ojs-3.1.1-4/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 774
[03-Dec-2018 12:29:00 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbQuerySet has a deprecated constructor in /Nwww/web/servicios/sp/ojs-3.1.1-4/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 959
[03-Dec-2018 12:29:00 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; adoSchema has a deprecated constructor in /Nwww/web/servicios/sp/ojs-3.1.1-4/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 1217
[03-Dec-2018 12:29:00 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADODB_Cache_File has a deprecated constructor in /Nwww/web/servicios/sp/ojs-3.1.1-4/lib/pkp/lib/adodb/adodb.inc.php on line 263
[03-Dec-2018 12:29:00 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADOConnection has a deprecated constructor in /Nwww/web/servicios/sp/ojs-3.1.1-4/lib/pkp/lib/adodb/adodb.inc.php on line 359
[03-Dec-2018 12:29:00 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet has a deprecated constructor in /Nwww/web/servicios/sp/ojs-3.1.1-4/lib/pkp/lib/adodb/adodb.inc.php on line 2921
[03-Dec-2018 12:29:00 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet_array has a deprecated constructor in /Nwww/web/servicios/sp/ojs-3.1.1-4/lib/pkp/lib/adodb/adodb.inc.php on line 3939
[03-Dec-2018 12:56:12 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Smarty has a deprecated constructor in /Nwww/web/servicios/sp/ojs-3.1.1-4/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php on line 64
[03-Dec-2018 12:56:12 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbObject has a deprecated constructor in /Nwww/web/servicios/sp/ojs-3.1.1-4/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 106
[03-Dec-2018 12:56:12 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbTable has a deprecated constructor in /Nwww/web/servicios/sp/ojs-3.1.1-4/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 205
[03-Dec-2018 12:56:12 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbIndex has a deprecated constructor in /Nwww/web/servicios/sp/ojs-3.1.1-4/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 613
[03-Dec-2018 12:56:12 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbData has a deprecated constructor in /Nwww/web/servicios/sp/ojs-3.1.1-4/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 774
[03-Dec-2018 12:56:12 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbQuerySet has a deprecated constructor in /Nwww/web/servicios/sp/ojs-3.1.1-4/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 959
[03-Dec-2018 12:56:12 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; adoSchema has a deprecated constructor in /Nwww/web/servicios/sp/ojs-3.1.1-4/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 1217
[03-Dec-2018 12:56:12 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADODB_Cache_File has a deprecated constructor in /Nwww/web/servicios/sp/ojs-3.1.1-4/lib/pkp/lib/adodb/adodb.inc.php on line 263
[03-Dec-2018 12:56:12 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADOConnection has a deprecated constructor in /Nwww/web/servicios/sp/ojs-3.1.1-4/lib/pkp/lib/adodb/adodb.inc.php on line 359
[03-Dec-2018 12:56:12 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet has a deprecated constructor in /Nwww/web/servicios/sp/ojs-3.1.1-4/lib/pkp/lib/adodb/adodb.inc.php on line 2921
[03-Dec-2018 12:56:12 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet_array has a deprecated constructor in /Nwww/web/servicios/sp/ojs-3.1.1-4/lib/pkp/lib/adodb/adodb.inc.php on line 3939
And if I connect vía browser it shows “execute() ?>”
I have test various php scripts that show me properties about the database. So it´s no anything about permissions.
I have put max_execute_time = 600 (30 is the default value) but after 17 hours I´ve got the same result.
Any other clue?
Thanks agian!
Cristina.
Israel,
It was the captcha!
Now I have an error:
Warning: copy(/www/sp/ojs3_uploaded_files/journals/10//articles/3627/submission/3627-98-7333-1-2-20180524.tif): failed to open stream: File not found in /www/sp/ojs-3.1.1-4/lib/pkp/classes/file/FileManager.inc.php on line 159
Warning: copy(/www/sp/ojs3_uploaded_files/journals/10//articles/3627/submission/review/3627-98–1-4-20180524.tif): failed to open stream: File not found in /www/sp/ojs-3.1.1-4/lib/pkp/classes/file/FileManager.inc.php on line 159
Fatal error: Uncaught Error: Call to a member function getFileId() on null in /www/sp/ojs-3.1.1-4/lib/pkp/classes/submission/PKPSubmissionFileDAO.inc.php :1065
Stack trace:
#0 /www/sp/ojs-3.1.1-4/lib/pkp/classes/submission/PKPSubmissionFileDAO.inc.php(315): PKPSubmissionFileDAO->_castToDatabase(NULL)
#1 /www/sp/ojs-3.1.1-4/lib/pkp/classes/file/SubmissionFileManager.inc.php(185): PKPSubmissionFileDAO->insertObject(Object(SupplementaryFile), ‘/Nwww/web/servi…’)
#2 /www/sp/ojs-3.1.1-4/classes/install/Upgrade.inc.php(1491): SubmissionFileManager->copyFileToFileStage(‘7333’, 1, 4, NULL, true)
#3 /www/sp/ojs-3.1.1-4/lib/pkp/classes/install/Installer.inc.php(421): Upgrade->provideSupplementaryFilesForReview(Object(Upgrade), Array)
#4 /www/sp/ojs-3.1.1-4/lib/pkp/classes/install/Installer.inc.php(265): Installer->executeAction(Array)
#5 /www/sp/ojs-3.1.1-4/lib/pkp/classes/install/Installer.inc.php(186): Installer->executeInstaller()
#6 /www/sp/ojs-3.1.1-4/lib/pkp/classes/cliTool/UpgradeTool.inc.php(88): Installer->execute()
#7 /www/sp/ojs-3.1.1-4/lib/pkp/classes/cliTool/UpgradeTool.inc.php(64): UpgradeTool->upgrade()
#8 /www/sp/ojs-3.1.1-4/tools/upgrade.php(34): UpgradeTool->execute()
#9 {main}
thrown in /www/sp/ojs-3.1.1-4/lib/pkp/classes/submission/PKPSubmissionFileDAO.inc.php on line 1065
Any clue?
Thank you!!
Cristina
SOLVED!!!
I re-copied the file ojs files_upload, the public dir and the database and run again
php tools/upgrade upgrade
and after a lot of warnings, I succesfully upgrade from ojs 2.4.8 and php 5.3 to ojs 3.1.1.1-4 and php7.0
Now, if I run php tools/upgrade check, it shows:
Code version: 3.1.1.4
Database version: 3.1.1.4
Latest version: 3.1.1.4
Your system is up-to-date
Thanks again for your help!
Best regards!
Cristina