OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



RebuildSearchIndex with Allowed memory size exhausted

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

Re: RebuildSearchIndex with Allowed memory size exhausted

Postby raickonen » Thu Sep 12, 2013 12:45 pm

I tried before, inside lib/pkp but not worked:


Code: Select all
 patch -p1 --dry-run < 6635.patch
patching file classes/plugins/HookRegistry.inc.php
Hunk #1 FAILED at 68.
Hunk #2 FAILED at 92.
2 out of 2 hunks FAILED -- saving rejects to file classes/plugins/HookRegistry.inc.php.rej
can't find file to patch at input line 87
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/tests/classes/core/PKPRequestTest.php b/tests/classes/core/PKPRequestTest.php
|index c38159f..a0a2eee 100644
|--- a/tests/classes/core/PKPRequestTest.php
|+++ b/tests/classes/core/PKPRequestTest.php
--------------------------
File to patch: tests/classes/core/PKPRequestTest.php
tests/classes/core/PKPRequestTest.php: No such file or directory



Luciano
raickonen
 
Posts: 34
Joined: Tue Nov 16, 2010 10:39 am

Re: RebuildSearchIndex with Allowed memory size exhausted

Postby asmecher » Thu Sep 12, 2013 1:04 pm

Hi Luciano,

Actually, the patch for OJS 2.4.2 is cc4be218320d7cf4480a3dc1b15a54b29d3e5a6e.diff from the ojs-stable-2_4 branch. Applying it to a stock 2.4.2 installation gives me...
Code: Select all
patching file classes/plugins/HookRegistry.inc.php
patching file tests/classes/core/PKPRequestTest.php
Hunk #1 FAILED at 25.
1 out of 1 hunk FAILED -- saving rejects to file tests/classes/core/PKPRequestTest.php.rej
patching file tests/classes/core/PKPRouterTestCase.inc.php
Hunk #1 FAILED at 32.
Hunk #2 FAILED at 106.
Hunk #3 FAILED at 157.
Hunk #4 FAILED at 240.
Hunk #5 FAILED at 258.
5 out of 5 hunks FAILED -- saving rejects to file tests/classes/core/PKPRouterTestCase.inc.php.rej
That's a successful patch in classes/plugins/HookRegistry.inc.php and two failed applications to files in the tests/ subdirectory. You can ignore the latter -- those are showing up because the process of building the tarball strips out the tests. Just clean out the .rej files that patch leaves around and you should be fine. (Or clean up the patch file to just include the first part.)

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8869
Joined: Wed Aug 10, 2005 12:56 pm

Previous

Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot] and 4 guests