OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



script error! while Push the ''issue publish'' button

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.

script error! while Push the ''issue publish'' button

Postby mustafasacar » Sat Sep 22, 2007 5:38 pm

Hello friends,
Im a new OJS user. I succeed to publish my first issue on local server (my pc) but I couldnt on my hosting server. When I push the "issue publish" button, on internet, error message displays on the left bottom side of internet explorer ("script error!"). My local php version 5.1.4, while on my hosting 4.x.x. This difference is an important for my problem? And what can I do for solving my his big problem.Please help me.
mustafasacar
 
Posts: 12
Joined: Thu Apr 12, 2007 8:33 am

Re: script error! while Push the ''issue publish'' button

Postby asmecher » Sat Sep 22, 2007 11:31 pm

Hi mustafasacar,

As long as your host meets the requirements described in docs/README, it should be fine. Check your PHP version.

There should be an entry in your server's error log that provides more information; check there and see if something shows up. If you don't have permission to view the error log, try adding the following near the top of index.php:
Code: Select all
ini_set('display_errors', E_ALL);
This will result in errors getting sent to the browser for debugging.

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

Re: script error! while Push the ''issue publish'' button

Postby mustafasacar » Sun Sep 23, 2007 5:51 am

Dear Alec Smecher,
Thank you for your kind interest. My host meets the requirements described in docs/README. And I found and read error logs. But I cant understand ? Logs belonging to yesteray are below. Would you so pleased to evaluate these codes?

Best regards.
Mustafa SACAR, MD.


[22-Sep-2007 04:52:37] PHP Warning: error_log() has been disabled for security reasons in /home/akademik/public_html/includes/functions.inc.php on line 144
[22-Sep-2007 04:52:41] PHP Warning: error_log() has been disabled for security reasons in /home/akademik/public_html/includes/functions.inc.php on line 144
"[22-Sep-2007 05:02:29] PHP Warning: error_log() has been disabled for security reasons in /home/akademik/public_html/includes/functions.inc.php on line 144
[22-Sep-2007 08:20:27] PHP Warning: fopen(/home/akademik/public_html/plugins/generic/counter/log.txt) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory in /home/akademik/public_html/plugins/generic/counter/LogEntryDAO.inc.php on line 65
[22-Sep-2007 08:20:27] PHP Warning: Invalid argument supplied for foreach() in /home/akademik/public_html/plugins/generic/counter/CounterHandler.inc.php on line 28
[22-Sep-2007 08:20:33] PHP Warning: fopen(/home/akademik/public_html/plugins/generic/counter/log.txt) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory in /home/akademik/public_html/plugins/generic/counter/LogEntryDAO.inc.php on line 65
[22-Sep-2007 08:20:33] PHP Warning: Invalid argument supplied for foreach() in /home/akademik/public_html/plugins/generic/counter/CounterHandler.inc.php on line 54
[22-Sep-2007 08:20:33] PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/akademik/public_html/classes/core/ArrayItemIterator.inc.php on line 52
[22-Sep-2007 08:23:21] PHP Warning: filemtime() [<a href='function.filemtime'>function.filemtime</a>]: Stat failed for plugins/importexport/pubmed/locale/tr_TR/locale.xml (errno=2 - No such file or directory) in /home/akademik/public_html/classes/plugins/Plugin.inc.php on line 79
[22-Sep-2007 08:23:21] PHP Warning: filemtime() [<a href='function.filemtime'>function.filemtime</a>]: Stat failed for plugins/importexport/crossref/locale/tr_TR/locale.xml (errno=2 - No such file or directory) in /home/akademik/public_html/classes/plugins/Plugin.inc.php on line 79
[22-Sep-2007 08:24:19] PHP Warning: filemtime() [<a href='function.filemtime'>function.filemtime</a>]: Stat failed for plugins/importexport/pubmed/locale/tr_TR/locale.xml (errno=2 - No such file or directory) in /home/akademik/public_html/classes/plugins/Plugin.inc.php on line 79
[22-Sep-2007 08:24:19] PHP Warning: filemtime() [<a href='function.filemtime'>function.filemtime</a>]: Stat failed for plugins/importexport/crossref/locale/tr_TR/locale.xml (errno=2 - No such file or directory) in /home/akademik/public_html/classes/plugins/Plugin.inc.php on line 79
[22-Sep-2007 08:24:52] PHP Warning: filemtime() [<a href='function.filemtime'>function.filemtime</a>]: Stat failed for plugins/importexport/pubmed/locale/tr_TR/locale.xml (errno=2 - No such file or directory) in /home/akademik/public_html/classes/plugins/Plugin.inc.php on line 79
[22-Sep-2007 08:24:52] PHP Warning: filemtime() [<a href='function.filemtime'>function.filemtime</a>]: Stat failed for plugins/importexport/crossref/locale/tr_TR/locale.xml (errno=2 - No such file or directory) in /home/akademik/public_html/classes/plugins/Plugin.inc.php on line 79
[22-Sep-2007 08:25:00] PHP Warning: filemtime() [<a href='function.filemtime'>function.filemtime</a>]: Stat failed for plugins/importexport/pubmed/locale/tr_TR/locale.xml (errno=2 - No such file or directory) in /home/akademik/public_html/classes/plugins/Plugin.inc.php on line 79
[22-Sep-2007 08:25:00] PHP Warning: filemtime() [<a href='function.filemtime'>function.filemtime</a>]: Stat failed for plugins/importexport/crossref/locale/tr_TR/locale.xml (errno=2 - No such file or directory) in /home/akademik/public_html/classes/plugins/Plugin.inc.php on line 79
[22-Sep-2007 08:29:52] PHP Warning: filemtime() [<a href='function.filemtime'>function.filemtime</a>]: Stat failed for plugins/importexport/pubmed/locale/tr_TR/locale.xml (errno=2 - No such file or directory) in /home/akademik/public_html/classes/plugins/Plugin.inc.php on line 79
[22-Sep-2007 08:29:52] PHP Warning: filemtime() [<a href='function.filemtime'>function.filemtime</a>]: Stat failed for plugins/importexport/crossref/locale/tr_TR/locale.xml (errno=2 - No such file or directory) in /home/akademik/public_html/classes/plugins/Plugin.inc.php on line 79
[22-Sep-2007 11:43:35] PHP Warning: escapeshellarg() has been disabled for security reasons in /home/akademik/public_html/classes/core/String.inc.php on line 208
[22-Sep-2007 11:43:35] PHP Warning: shell_exec() has been disabled for security reasons in /home/akademik/public_html/classes/core/String.inc.php on line 209
[22-Sep-2007 13:50:24] PHP Warning: escapeshellarg() has been disabled for security reasons in /home/akademik/public_html/classes/core/String.inc.php on line 208
[22-Sep-2007 13:50:24] PHP Warning: shell_exec() has been disabled for security reasons in /home/akademik/public_html/classes/core/String.inc.php on line 209
[22-Sep-2007 13:54:51] PHP Warning: escapeshellarg() has been disabled for security reasons in /home/akademik/public_html/classes/core/String.inc.php on line 208
[22-Sep-2007 13:54:51] PHP Warning: shell_exec() has been disabled for security reasons in /home/akademik/public_html/classes/core/String.inc.php on line 209
[22-Sep-2007 13:55:25] PHP Warning: escapeshellarg() has been disabled for security reasons in /home/akademik/public_html/classes/core/String.inc.php on line 208
[22-Sep-2007 13:55:25] PHP Warning: shell_exec() has been disabled for security reasons in /home/akademik/public_html/classes/core/String.inc.php on line 209
[22-Sep-2007 13:55:48] PHP Warning: escapeshellarg() has been disabled for security reasons in /home/akademik/public_html/classes/core/String.inc.php on line 208
[22-Sep-2007 13:55:48] PHP Warning: shell_exec() has been disabled for security reasons in /home/akademik/public_html/classes/core/String.inc.php on line 209
[22-Sep-2007 13:56:08] PHP Warning: escapeshellarg() has been disabled for security reasons in /home/akademik/public_html/classes/core/String.inc.php on line 208
[22-Sep-2007 13:56:08] PHP Warning: shell_exec() has been disabled for security reasons in /home/akademik/public_html/classes/core/String.inc.php on line 209
[22-Sep-2007 13:56:23] PHP Warning: escapeshellarg() has been disabled for security reasons in /home/akademik/public_html/classes/core/String.inc.php on line 208
[22-Sep-2007 13:56:23] PHP Warning: shell_exec() has been disabled for security reasons in /home/akademik/public_html/classes/core/String.inc.php on line 209
[22-Sep-2007 13:57:23] PHP Warning: escapeshellarg() has been disabled for security reasons in /home/akademik/public_html/classes/core/String.inc.php on line 208
[22-Sep-2007 13:57:23] PHP Warning: shell_exec() has been disabled for security reasons in /home/akademik/public_html/classes/core/String.inc.php on line 209
[22-Sep-2007 13:57:39] PHP Warning: escapeshellarg() has been disabled for security reasons in /home/akademik/public_html/classes/core/String.inc.php on line 208
[22-Sep-2007 13:57:39] PHP Warning: shell_exec() has been disabled for security reasons in /home/akademik/public_html/classes/core/String.inc.php on line 209
[22-Sep-2007 13:59:02] PHP Warning: escapeshellarg() has been disabled for security reasons in /home/akademik/public_html/classes/core/String.inc.php on line 208
[22-Sep-2007 13:59:02] PHP Warning: shell_exec() has been disabled for security reasons in /home/akademik/public_html/classes/core/String.inc.php on line 209
[22-Sep-2007 14:20:40] PHP Warning: escapeshellarg() has been disabled for security reasons in /home/akademik/public_html/classes/core/String.inc.php on line 208
[22-Sep-2007 14:20:40] PHP Warning: shell_exec() has been disabled for security reasons in /home/akademik/public_html/classes/core/String.inc.php on line 209
mustafasacar
 
Posts: 12
Joined: Thu Apr 12, 2007 8:33 am

Re: script error! while Push the ''issue publish'' button

Postby asmecher » Sun Sep 23, 2007 9:14 am

Hi Mustafa,

I don't see anything in the error log that indicates a fatal error; try publishing the issue again and see if a new entry is created in the error log.

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

Re: script error! while Push the ''issue publish'' button

Postby mustafasacar » Sun Sep 23, 2007 10:03 am

Thank you Alec Smecher,

I tried to publish issue again, but no new entry in log file.
mustafasacar
 
Posts: 12
Joined: Thu Apr 12, 2007 8:33 am

Re: script error! while Push the ''issue publish'' button

Postby asmecher » Mon Sep 24, 2007 9:50 am

Hi Mustafa,

I see from your post at http://pkp.sfu.ca/support/forum/viewtopic.php?f=8&t=1740&p=7827 that you were able to work around the problem by entering the URL directly. This implies a UI problem when submitting the publish form. Does that work-around successfully publish the issue? If so, but the button itself still does not work, could you investigate the URL to which the "Publish Issue" button links and post it here?

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

Re: script error! while Push the ''issue publish'' button

Postby mustafasacar » Mon Sep 24, 2007 10:45 am

Hi Alec,
I m sorry, I forgot informing you that I have found solution how to publish issue. I choose the red written sentence from web page code when "http://www.akademikdizayn.com/index.php/ad/editor/issueToc/1" page is active, and I logged as an editor role.

.......
.........
<div class="separator"></div>

<input type="submit" value="Save" class="button defaultButton" /> <input type="button" value="Publish Issue" onclick="confirmAction('http://www.akademikdizayn.com/index.php/ad/editor/publishIssue/1', 'Are you sure you want to publish the new issue?')" class="button" />
</form>
.......
...........

Dear Alec,
When I tried in a normal way I had a problem with "publish issue" button (script error!), while the same problem was not present on "save" button.
I have just realized a new problem which is in fact not important for the proccessing of the our journal. All of the links of reading tools give the same fault (script error!).
With best regards.

Mustafa SACAR, MD
Pamukkale University Faculty of Medicine
Department of Cardiovascular Surgery.
Denizli /Turkey.
mustafasacar
 
Posts: 12
Joined: Thu Apr 12, 2007 8:33 am

Re: script error! while Push the ''issue publish'' button

Postby asmecher » Mon Sep 24, 2007 10:57 am

Hi Mustafa,

Is Javascript disabled in your web browser? If so, that would explain the problem.

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

Re: script error! while Push the ''issue publish'' button

Postby mustafasacar » Mon Sep 24, 2007 11:28 am

Hi Alec,
Javascript is not disabled in my web browser? And at the same time the links of reading tools in other OJS journals was not give this error.

Best Regards,


Mustafa SACAR, MD
Pamukkale University Faculty of Medicine
Department of Cardiovascular Surgery.
Denizli /Turkey.
mustafasacar
 
Posts: 12
Joined: Thu Apr 12, 2007 8:33 am

Re: script error! while Push the ''issue publish'' button

Postby asmecher » Mon Sep 24, 2007 12:00 pm

Hi Mustafa,

Could you check your Javascript error log? If you're using Firefox, you should be able to find it in Tools -> Error Console. If you're not using Firefox, please let me know what browser and version you're using.

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

Re: script error! while Push the ''issue publish'' button

Postby mustafasacar » Mon Sep 24, 2007 12:03 pm

Hi Alec,
I m using MyIe2 brovser. 0.9.27.68.
Could you check these links in my journal please? I think this problem arise from my hosting.
My links:
http://www.akademikdizayn.com/index.php ... cle/view/6 ---> reding tools ---> for example "email colleague" link

Regards,

Mustafa SACAR.
mustafasacar
 
Posts: 12
Joined: Thu Apr 12, 2007 8:33 am

Re: script error! while Push the ''issue publish'' button

Postby asmecher » Mon Sep 24, 2007 1:49 pm

Hi Mustafa,

The Reading Tools links problem stems from an unrelated OJS bug; there is a patch at http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=2366. I'm not familiar with that browser, but it may well be causing the problem. Is there a Javascript debug console or anything similar that would log javascript errors?

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

Re: script error! while Push the ''issue publish'' button

Postby mustafasacar » Mon Sep 24, 2007 2:00 pm

Hi Alec,
Idont know Javascript debug console or anything similar that would log javascript errors? But this error also occur with internet explorer 6.0. And not only occur with my desktop but also with my other office pc or laptop. Finally, Im happy , Because I succeed issue publish, The other errors not important for me. Thank you for all kind interests.

P.S: I wrote a message about tester 2.2 version. Is it possible?

Mustafa SACAR.
mustafasacar
 
Posts: 12
Joined: Thu Apr 12, 2007 8:33 am

Re: script error! while Push the ''issue publish'' button

Postby asmecher » Mon Sep 24, 2007 2:23 pm

Hi Mustafa,

Glad to hear it's working; I'll make a note to test this behavior when preparing for the release of OJS 2.2. The CVS repository for OJS 2.2 is open, and there's information on accessing it in docs/README-CVS in the 2.1.1 distribution; if you try the CVS version out and have any comments, please send them back to us. We're hoping to begin the official testing phase for OJS 2.2 on October 1st.

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

Re: script error! Reading Tools

Postby ramon » Wed Sep 26, 2007 3:04 pm

Alec,

I'm not sure how to solve this problem.
Mustafa's server is not allowing access to the javascript files.

When trying any link in the Reading Tools bar, here's the error:
Code: Select all
Error: openRTWindowWithToolbar is not defined
Source File: javascript:openRTWindowWithToolbar('http://www.akademikdizayn.com/index.php/ad/rt/context/6/0/168');
Line: 1


If I try to view the javascript file, which should be public, the server throws this forbidden error:
Code: Select all
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>403 Forbidden</TITLE>
</HEAD><BODY>
<H1>Forbidden</H1>
You don't have permission to access /js/general.js
on this server.<P>
<P>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.
<HR>
<ADDRESS>Apache/1.3.37 Server at akademikdizayn.com Port 80</ADDRESS>
</BODY></HTML>


This shouldn't be happening.

Mustafa only has FTP access to the server. Can he run the chown command? I've never seen and FTP application do that, only through SSH.
ramon
 
Posts: 926
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil

Next

Return to OJS Technical Support

Who is online

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