Urgent: Error after installing OHS

Hi @asmecher

I did a test, can you confirm if it is valid?

I copied the code
image;

from the following link:
https://pkp.sfu.ca/ojs/doxygen/master/html/VersionDAO_8inc_8php-source.html

And then, replace it in my file: VersionDAO.inc.php

You change that line…
WHERE current = 1 AND (ps.setting_value=1 OR v.lazy_load=0)’, $context, false);

to
image

and it worked for me …What do you recommend, can I leave it like that?

Thank You
David

Hi @drueda,

Yes, that’s what I was recommending in this post, plus the note about escaping ' characters. Did you try something different?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher

I continue with problems

After entering as administrator, I click on “Reading Tools” and the page goes “HTTP ERROR 500”.

reviewing the code, I see that it calls on:


    // General
    //
    case 'settings':
    case 'saveSettings':
            define('HANDLER_CLASS', 'RTSetupHandler');
            import('lib.pkp.pages.rtadmin.RTSetupHandler');
            break;

But looking at that route, I did not find the file: RTSetupHandler

Could it be that or will it be something else?

Thank you

David.

Hi @drueda,

It does indeed look like that file is long lost, but it’s not a high priority to reconstruct it at the moment. I’d suggest using OHS without that piece.

Regards,
Alec Smecher
Public Knowledge Project Team