[OJS 3.1.0] website blank

#1

i need help, my website sudenly blank.
icheck PHP error_log show this warning.

[05-Apr-2019 15:12:54 UTC] PHP Deprecated: Non-static method Config::getContextBaseUrls() should not be called statically, assuming $this from incompatible context in /home/jimfbior/public_html/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 199
[05-Apr-2019 15:12:55 UTC] PHP Strict Standards: Only variables should be assigned by reference in /home/jimfbior/public_html/plugins/blocks/mostRead/MostReadBlockPlugin.inc.php on line 51
[05-Apr-2019 15:12:55 UTC] PHP Strict Standards: Only variables should be assigned by reference in /home/jimfbior/public_html/plugins/blocks/mostRead/MostReadBlockPlugin.inc.php on line 52
[05-Apr-2019 15:12:57 UTC] PHP Strict Standards: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /home/jimfbior/public_html/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 0
[05-Apr-2019 15:12:57 UTC] PHP Strict Standards: Declaration of ForthcomingPlugin::register() should be compatible with LazyLoadPlugin::register($category, $path, $mainContextId = NULL) in /home/jimfbior/public_html/plugins/generic/forthcoming/ForthcomingPlugin.inc.php on line 0
[05-Apr-2019 15:12:57 UTC] PHP Strict Standards: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /home/jimfbior/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0
[05-Apr-2019 15:12:57 UTC] PHP Strict Standards: Declaration of CustomBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in /home/jimfbior/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0
[05-Apr-2019 15:12:57 UTC] PHP Strict Standards: Declaration of SubmissionFileDAO::fromRow() should be compatible with PKPSubmissionFileDAO::fromRow($row, $fileImplementation) in /home/jimfbior/public_html/classes/article/SubmissionFileDAO.inc.php on line 23
[05-Apr-2019 15:12:57 UTC] PHP Strict Standards: Only variables should be assigned by reference in /home/jimfbior/public_html/pages/index/IndexHandler.inc.php on line 68
[05-Apr-2019 15:12:57 UTC] PHP Deprecated: Non-static method Config::getContextBaseUrls() should not be called statically, assuming $this from incompatible context in /home/jimfbior/public_html/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 199
[05-Apr-2019 15:12:57 UTC] PHP Strict Standards: Only variables should be assigned by reference in /home/jimfbior/public_html/plugins/blocks/mostRead/MostReadBlockPlugin.inc.php on line 51
[05-Apr-2019 15:12:57 UTC] PHP Strict Standards: Only variables should be assigned by reference in /home/jimfbior/public_html/plugins/blocks/mostRead/MostReadBlockPlugin.inc.php on line 52

how i can fix this? thankyou

#2

Hi @hari_pramono,

Look in your error log for something with the word “Error” in it. Those are just warnings and shouldn’t cause problems.

Regards,
Alec Smecher
Public Knowledge Project Team

#4

I get an error like this:
[18-Apr-2019 02:11:18 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 /home/jimfbior/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php on line 64
[18-Apr-2019 02:11:18 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 /home/jimfbior/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 263
[18-Apr-2019 02:11:18 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 /home/jimfbior/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 359
[18-Apr-2019 02:11:18 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 /home/jimfbior/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 2921
[18-Apr-2019 02:11:18 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 /home/jimfbior/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 3939
[18-Apr-2019 02:11:18 UTC] PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/jimfbior/public_html/lib/pkp/lib/adodb/drivers/adodb-mysql.inc.php:456
Stack trace:
#0 /home/jimfbior/public_html/lib/pkp/lib/adodb/adodb.inc.php(558): ADODB_mysql->_connect(‘localhost’, ‘(removed)’, ‘(removed)’, ‘(removed)’)
#1 /home/jimfbior/public_html/lib/pkp/classes/db/DBConnection.inc.php(144): ADOConnection->Connect(‘localhost’, ‘(removed)’, ‘(removed)’, ‘(removed)’, false)
#2 /home/jimfbior/public_html/lib/pkp/classes/db/DBConnection.inc.php(119): DBConnection->connect()
#3 /home/jimfbior/public_html/lib/pkp/classes/db/DBConnection.inc.php(76): DBConnection->initConn()
#4 /home/jimfbior/public_html/lib/pkp/classes/db/DBConnection.inc.php(52): DBConnection->initDefaultDBConnection()
#5 /home/jimfbior/public_html/lib/pkp/classes/db/DBConnection.inc.php(220): DBConnection->__construct()
#6 /home/jimfbior/public_html/lib/pkp/classes/core/PKPApplication.inc.php(170): DBConnection::getInstance()
#7 /home/jimfbior/public_html in /home/jimfbior/public_html/lib/pkp/lib/adodb/drivers/adodb-mysql.inc.php on line 456
[18-Apr-2019 02:11:19 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 /home/jimfbior/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php on line 64
[18-Apr-2019 02:11:19 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 /home/jimfbior/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 263
[18-Apr-2019 02:11:19 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 /home/jimfbior/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 359
[18-Apr-2019 02:11:19 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 /home/jimfbior/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 2921
[18-Apr-2019 02:11:19 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 /home/jimfbior/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 3939
[18-Apr-2019 02:11:19 UTC] PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/jimfbior/public_html/lib/pkp/lib/adodb/drivers/adodb-mysql.inc.php:456
Stack trace:
#0 /home/jimfbior/public_html/lib/pkp/lib/adodb/adodb.inc.php(558): ADODB_mysql->_connect(‘localhost’, ‘(removed)’, ‘(removed)’, ‘(removed)’)
#1 /home/jimfbior/public_html/lib/pkp/classes/db/DBConnection.inc.php(144): ADOConnection->Connect(‘localhost’, ‘(removed)’, ‘(removed)’, ‘(removed)’, false)
#2 /home/jimfbior/public_html/lib/pkp/classes/db/DBConnection.inc.php(119): DBConnection->connect()
#3 /home/jimfbior/public_html/lib/pkp/classes/db/DBConnection.inc.php(76): DBConnection->initConn()
#4 /home/jimfbior/public_html/lib/pkp/classes/db/DBConnection.inc.php(52): DBConnection->initDefaultDBConnection()
#5 /home/jimfbior/public_html/lib/pkp/classes/db/DBConnection.inc.php(220): DBConnection->__construct()
#6 /home/jimfbior/public_html/lib/pkp/classes/core/PKPApplication.inc.php(170): DBConnection::getInstance()
#7 /home/jimfbior/public_html in /home/jimfbior/public_html/lib/pkp/lib/adodb/drivers/adodb-mysql.inc.php on line 456
[18-Apr-2019 02:11:21 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 /home/jimfbior/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php on line 64
[18-Apr-2019 02:11:21 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 /home/jimfbior/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 263
[18-Apr-2019 02:11:21 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 /home/jimfbior/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 359
[18-Apr-2019 02:11:21 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 /home/jimfbior/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 2921
[18-Apr-2019 02:11:21 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 /home/jimfbior/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 3939
[18-Apr-2019 02:11:21 UTC] PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/jimfbior/public_html/lib/pkp/lib/adodb/drivers/adodb-mysql.inc.php:456
Stack trace:
#0 /home/jimfbior/public_html/lib/pkp/lib/adodb/adodb.inc.php(558): ADODB_mysql->_connect(‘localhost’, ‘(removed)’, ‘(removed)’, ‘(removed)’)
#1 /home/jimfbior/public_html/lib/pkp/classes/db/DBConnection.inc.php(144): ADOConnection->Connect(‘localhost’, ‘(removed)’, ‘(removed)’, ‘(removed)’, false)
#2 /home/jimfbior/public_html/lib/pkp/classes/db/DBConnection.inc.php(119): DBConnection->connect()
#3 /home/jimfbior/public_html/lib/pkp/classes/db/DBConnection.inc.php(76): DBConnection->initConn()
#4 /home/jimfbior/public_html/lib/pkp/classes/db/DBConnection.inc.php(52): DBConnection->initDefaultDBConnection()
#5 /home/jimfbior/public_html/lib/pkp/classes/db/DBConnection.inc.php(220): DBConnection->__construct()
#6 /home/jimfbior/public_html/lib/pkp/classes/core/PKPApplication.inc.php(170): DBConnection::getInstance()
#7 /home/jimfbior/public_html in /home/jimfbior/public_html/lib/pkp/lib/adodb/drivers/adodb-mysql.inc.php on line 456

is this causes the website blank?

#5

Hi @hari_pramono,

Be careful when posting stack traces! Your post contained credentials – I’ve removed them, but please change your database password (and anything else that shared these credentials) ASAP.

Regards,
Alec Smecher
Public Knowledge Project Team

#6

i’ve already change the DB password and else.
so, what’s the problem that makes our website blank? how we fix it.
thankyou

#7

Hi @hari_pramono,

See e.g. Uncaught Error: Call to undefined function mysql_connect() for details.

Regards,
Alec Smecher
Public Knowledge Project Team

#8

im still have problem with my website, still blank. when download new OJS and try to install, the website also has an error. please give me a way to solve this problem. :frowning:

#9

Hi @hari_pramono,

Have you tried the solution posted on the other thread? Let me know what you’ve tried & what the result was.

Regards,
Alec Smecher
Public Knowledge Project Team

#10

i do, i try to update to OJS 3.1.2 to fix this problem and i get error :

Fatal error : Uncaught Error: Call to undefined function json_encode() in /home/jimfbior/public_html/lib/pkp/classes/template/PKPTemplateManager.inc.php:691 Stack trace: #0 /home/jimfbior/public_html/lib/pkp/classes/template/PKPTemplateManager.inc.php(155): PKPTemplateManager->registerJSLibraryData() #1 /home/jimfbior/public_html/classes/template/TemplateManager.inc.php(28): PKPTemplateManager->initialize(Object(Request)) #2 /home/jimfbior/public_html/lib/pkp/classes/template/PKPTemplateManager.inc.php(884): TemplateManager->initialize(Object(Request)) #3 /home/jimfbior/public_html/lib/pkp/classes/plugins/Plugin.inc.php(352): PKPTemplateManager::getManager() #4 /home/jimfbior/public_html/lib/pkp/classes/plugins/Plugin.inc.php(118): Plugin->_registerTemplateResource() #5 /home/jimfbior/public_html/lib/pkp/classes/plugins/LazyLoadPlugin.inc.php(28): Plugin->register(‘generic’, ‘plugins/generic…’, NULL) #6 /home/jimfbior/public_html/plugins/generic/googleAnalytics/GoogleAnalyticsPlugin.inc.php(23): LazyLoadPlugin->register( in /home/jimfbior/public_html/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 691

#11

Hi @hari_pramono,

It looks like you’re missing a PHP module. See e.g. https://stackoverflow.com/questions/18239405/php-fatal-error-call-to-undefined-function-json-decode.

Regards,
Alec Smecher
Public Knowledge Project Team