OAI Enable doesn't run

Hi @prdr30,

Did you restart your Apache service after changing the php.ini setting? That’s generally needed for changes to take effect.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher

Already I changed to the 512M memory_limit, but the error remains to occur.
Would have another alternative for correction?

Regards,

Paulo

Hi @prdr30,

What exactly is the error message you receive after changing the memory_limit setting?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

The error message that is being shown is:
“PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 24 bytes) in /home/storage/f/e9/25/paulorodrigues1/public_html/ojs/ijmp/lib/pkp/lib/adodb/adodb.inc.php on line 2164”.

Regards,

Paulo

Hi @prdr30,

That’s still a 32M limit, suggesting that your change to 512M didn’t take effect. You either need to restart your Apache service, or it’s possible that you’re editing the wrong php.ini file.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

All right?

Today the company’s support team where lodge the site ran the command, as follows and it seems that everything went OK. But appeared two new errors.

  1. It is showing the articles: http://www.ijmp.jor.br/index.php/ijmp/article/view/366;

  2. the other error is in CrossRef management in Manage DOIs:
    “Fatal error: require_once() [function.require]:
    Failed opening required
    ‘plugins/importexport/crossref/classes/PubObjectCache.inc.php’
    (include_path=’.:/home/storage/f/e9/25/paulorodrigues1/public_html/ojs/ijmp/classes:/home/storage/f/e9/25/paulorodrigues1/public_html/ojs/ijmp/pages:/home/storage/f/e9/25/paulorodrigues1/public_html/ojs/ijmp/lib/pkp:/home/storage/f/e9/25/paulorodrigues1/public_html/ojs/ijmp/lib/pkp/classes:/home/storage/f/e9/25/paulorodrigues1/public_html/ojs/ijmp/lib/pkp/pages:/home/storage/f/e9/25/paulorodrigues1/public_html/ojs/ijmp/lib/pkp/lib/adodb:/home/storage/f/e9/25/paulorodrigues1/public_html/ojs/ijmp/lib/pkp/lib/phputf8:/home/storage/f/e9/25/paulorodrigues1/public_html/ojs/ijmp/lib/pkp/lib/pqp/classes:/home/storage/f/e9/25/paulorodrigues1/public_html/ojs/ijmp/lib/pkp/lib/smarty:.:/usr/share/pear’)
    in /home/storage/f/e9/25/paulorodrigues1/public_html/ojs/ijmp/lib/pkp/classes/plugins/PKPPlugin.inc.php on line 408”.
    In what could be wrong?

Regards

paulo

Hi @asmecher,

Look at the script executed by the support.

-bash-3.2$ php -c ~/php.ini tools/upgrade.php upgrade

     ojs2 has produced an error

       Message: WARNING: assert(): Assertion failed

       In file: /home/storage/f/e9/25/paulorodrigues1/public_html/ojs/ijmp/lib/pkp/classes/plugins/PluginRegistry.inc.php

       At line: 241

       Stacktrace: 

       Server info:

        OS: Linux

        PHP Version: 5.2.17

        Apache Version: N/A

        DB Driver: mysql

        DB server version: 5.1.54-rel12.6-log

     [pre-install]

     [load: upgrade.xml]

     [version: 2.4.8.1]

     [schema: lib/pkp/xml/schema/signoff.xml]

     [schema: lib/pkp/xml/schema/common.xml]

     [schema: lib/pkp/xml/schema/groups.xml]

     [schema: lib/pkp/xml/schema/log.xml]

     [schema: lib/pkp/xml/schema/announcements.xml]

     [schema: lib/pkp/xml/schema/scheduledTasks.xml]

     [schema: lib/pkp/xml/schema/temporaryFiles.xml]

     [schema: lib/pkp/xml/schema/metadata.xml]

     [schema: lib/pkp/xml/schema/reviews.xml]

     [schema: lib/pkp/xml/schema/reviewForms.xml]

     [schema: lib/pkp/xml/schema/controlledVocab.xml]

     [schema: lib/pkp/xml/schema/submissions.xml]

     [schema: lib/pkp/xml/schema/comments.xml]

     [schema: lib/pkp/xml/schema/notes.xml]

     [schema: lib/pkp/xml/schema/gifts.xml]

     [schema: lib/pkp/xml/schema/mutex.xml]

     [schema: lib/pkp/xml/schema/tombstone.xml]

     [schema: lib/pkp/xml/schema/metrics.xml]

     [schema: dbscripts/xml/ojs_schema.xml]

     [data: dbscripts/xml/indexes.xml]

     [code: Installer Installer::addPluginVersions]

     ojs2 has produced an error

       Message: WARNING: assert(): Assertion failed

       In file: /home/storage/f/e9/25/paulorodrigues1/public_html/ojs/ijmp/lib/pkp/classes/plugins/PluginRegistry.inc.php

       At line: 241

       Stacktrace: 

       Server info:

        OS: Linux

        PHP Version: 5.2.17

        Apache Version: N/A

        DB Driver: mysql

        DB server version: 5.1.54-rel12.6-log

     [post-install]

     ojs2 has produced an error

       Message: WARNING: assert(): Assertion failed

       In file: /home/storage/f/e9/25/paulorodrigues1/public_html/ojs/ijmp/lib/pkp/classes/plugins/PluginRegistry.inc.php

       At line: 241

       Stacktrace: 

       Server info:

        OS: Linux

        PHP Version: 5.2.17

        Apache Version: N/A

        DB Driver: mysql

        DB server version: 5.1.54-rel12.6-log

     Successfully upgraded to version 2.4.8.1

Regards,

Paulo

Hi @prdr30,

The message about plugins/importexport/crossref/classes/PubObjectCache.inc.php suggests that this file is missing. Between this and the problem you had with metadata plugins earlier, I suspect there may be many files missing from your installation – I’m not sure how this happened, but it’s worth spending some time making sure you aren’t missing files or problems like this will crop up.

The upgrade appears to have completed successfully in your second post – despite a couple of warnings. You should be OK to proceed with the upgraded installation. If you hit problems, feel free to post them here.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

I copied the file Pub ObjectCache.inc.php, directory datacite/classes/PubObjectCache.inc.php and it worked.

Thank you for the clarification.

Regards,

Paulo

Hi @asmecher,

The command that support support team gave me to be able to run the command tools/upgrade.php using my settings that are defined in php.ini was: php -c ~/php.ini tools/upgrade.php upgrade, I think this command may be useful to all colleagues who have the same problem.

Regards

Paulo