OMP: Unable to create a press as admin

Dear all,

I have been asked to install OMP and create a press for publishing the conference proceedings of my department electronically and I have to admit that I do not know much about this kind of tools.

Directly after installation I have tried to create a press as admin but I encounter the same problem as DiegoG here: when I try to create a new press, after clicking “save” button, it starts a spinning icon, and never ends. Moreover, if I refresh the site, the press is listed but without any name or description (only the path) and, if I try to edit it, the same process repeats. Should I clik on “Settings Wizard” instead, I get the following error message: “The current role does not have access to this operation”. This is particularly annoying as I am logged in as admin.

I checked the user tables to make sure that my user had the admin role, and it was the case.

Following the advice given to DiegoG, I have checked the public directory and there are two folders, “presses” and “site”, both empty. I have also checked my files directory and it contains three folders: “presses” (in which a folder “2” is to be found, which has the folder “monographs” inside, empty), “site” (empty) and “usageStats”, with four empty folders (“archive”, “processing”, “reject”, “stage”) and one “usageEventLogs” with a log file inside.

In the case of DiegoG the problem seemed to be related to permissions in his own computer. I do not know if this could also be my case, as I am admin of this computer. I am working with Windows 8.1 and the XAMPP 5.6.3-0, if this should be of any use.

Moreover, if I install OMP in Spanish, there are many labels that are not translated (even the same error message from above), but I assume this has to do with the language files, not with any further error.

Thank you in advance for your help.

Hi @SaSoeurJuliette,

Can you check your server’s error log? When there’s an endlessly-spinning icon, that usually means that a PHP error occurred. You can usually find more details in the log.

Regards,
Alec Smecher
Public Knowledge Project Team

Hello, @asmecher!

Sorry for the late reply. I do this in my free time and I did not have the chance to look at this before.

Provided that the server’s error log were error.log in the logs folder of the apache folder, that’s everything I got for today after reinstalling OMP with the same configuration and characteristics as in my previous message and trying to create a new pres (and that’s the same I got on the 1st of March):

[Thu Mar 10 09:51:22.361612 2016] [ssl:warn] [pid 4868:tid 320] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Mar 10 09:51:22.635611 2016] [core:warn] [pid 4868:tid 320] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten – Unclean shutdown of previous Apache run?
[Thu Mar 10 09:51:22.758256 2016] [ssl:warn] [pid 4868:tid 320] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Mar 10 09:51:27.172731 2016] [mpm_winnt:notice] [pid 4868:tid 320] AH00455: Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3 configured – resuming normal operations
[Thu Mar 10 09:51:27.173746 2016] [mpm_winnt:notice] [pid 4868:tid 320] AH00456: Apache Lounge VC11 Server built: Jul 17 2014 11:50:08
[Thu Mar 10 09:51:27.173746 2016] [core:notice] [pid 4868:tid 320] AH00094: Command line: ‘c:\xampp\apache\bin\httpd.exe -d C:/xampp/apache’
[Thu Mar 10 09:51:27.175745 2016] [mpm_winnt:notice] [pid 4868:tid 320] AH00418: Parent: Created child process 1240
[Thu Mar 10 09:51:27.868269 2016] [ssl:warn] [pid 1240:tid 388] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Mar 10 09:51:28.061540 2016] [ssl:warn] [pid 1240:tid 388] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Mar 10 09:51:28.116958 2016] [mpm_winnt:notice] [pid 1240:tid 388] AH00354: Child: Starting 150 worker threads.

Unfortunately, it does not say anything I can understand.

Thank you very much in advance for your help and best regards.

Hi @SaSoeurJuliette,

I’m not sure that’s the right log file, but unfortunately the details will depend on your server’s precise setup. The best way to find the error log if you’re not sure where it is would be to use the phpinfo function to list your server’s configuration.

Create a file called e.g. info.php in your OJS installation directory containing…

<?php phpinfo(); ?>

Then point your web browser to it and you should receive a page of PHP configuration information. Look for a setting called error_log.

Regards,
Alec Smecher
Public Knowledge Project Team

Sorry for the wrong log. As you can see, this is far from being my field, but I am the one in my department who “understands computers” (imagine the rest).

Thanks to your kind explanation, I think I found the right log (and now I know how to find it the next time I need it):

[10-Mar-2016 09:53:22 Europe/Berlin] PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\phpMyAdmin\libraries\dbi\DBIMysqli.class.php on line 290

[10-Mar-2016 10:05:26 Europe/Berlin] PHP Fatal error: Call to a member function getId() on null in C:\xampp\htdocs\omp-1.1.1-1\classes\publicationFormat\PublicationFormatTombstoneManager.inc.php on line 82

[10-Mar-2016 10:06:54 Europe/Berlin] omp has produced an error
Message: WARNING: array_intersect_key(): Argument #1 is not an array
In file: C:\xampp\htdocs\omp-1.1.1-1\pages\about\AboutContextHandler.inc.php
At line: 132
Stacktrace:
Server info:
OS: WINNT
PHP Version: 5.6.3
Apache Version: Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3
DB Driver: mysql
DB server version: 5.6.21

[10-Mar-2016 10:06:54 Europe/Berlin] omp has produced an error
Message: WARNING: array_filter() expects parameter 1 to be array, null given
In file: C:\xampp\htdocs\omp-1.1.1-1\pages\about\AboutContextHandler.inc.php
At line: 135
Stacktrace:
Server info:
OS: WINNT
PHP Version: 5.6.3
Apache Version: Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3
DB Driver: mysql
DB server version: 5.6.21

If I am not wrong, the first fatal error corresponds to the installation and the second to trying to create the press. Does this log say anything to you?

Best regards.

Hi @SaSoeurJuliette,

The first message says that your server didn’t allow a long request to complete because it was taking too long. It doesn’t tell me what operation you were performing when the timeout was reached, but it does have a timestamp. If it’s possible that you were installing OMP or creating the press at that time, then there might be important tasks that OMP wasn’t able to complete – especially if it happened during installation.

I’d suggest increasing the time limit to something above 30 seconds – if it’s a testing or development machine, there’s no harm in increasing it to a long time. If it’s possible that your installation didn’t finish, then I’d suggest installing OMP again once the timeout has been increased.

Regards,
Alec Smecher
Public Knowledge Project Team

Dear @asmecher,

thank you very much for your reply and sorry for replying so late. I changed the max_execution_time and the problem has solved. Now I can create a press and I only have to fight with the language files, as many labels of the Spanish version do not appear translated (look! The press I created).

Best regards.

Hi @SaSoeurJuliette,

Glad to hear that’s solved! The OMP 1.1.1 Spanish translation was not complete, which is why you’re seeing those. @mtub may be able to help you get your translation files updated.

Regards,
Alec Smecher
Public Knowledge Project Team

We’ve recently updated (completed) the Spanish translation of OMP (see [OMP] update es_ES locale · Issue #1232 · pkp/pkp-lib · GitHub). You can find the locale files in the omp-dev-1_1 branch of OMP and pkp-lib and may be able to copy them to your OMP 1.1.1 installation. We plan to have a complete es_ES locale for the upcoming OMP 1.2 release.

Hello!

I just wanted to let you know that, thanks to your help, I have been able to publish my first book using OMP: http://hispanistik.uni-trier.de/omp-1.2.0/index.php/HispanistikTrier/index

Thank you very much to all of you.

Hi @SaSoeurJuliette,

Congratulations! Excellent work, and thanks for letting us know.

Regards,
Alec Smecher
Public Knowledge Project Team