OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



A Problem with language in OCS 2

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

Moderators: jmacgreg, michael, John

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

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. Please note that this FAQ is OJS-centric, but most issues are applicable to both platforms.

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 OCS Conference Support and Discussion subforum; if you have a development question, try the OCS Development subforum.

A Problem with language in OCS 2

Postby puuul » Thu May 17, 2007 5:53 am

In OCS 2 there is a critical problem, it doesn't support the Persian language, where as the characters would change to character [?].
Off course the source code is changed to Persian without any problem, but the mistake is taken place when I tried to submit a new conference in administration page.
Does any one know the solution?
puuul
 
Posts: 11
Joined: Thu May 17, 2007 5:21 am

re: A Problem with language in OCS 2

Postby mj » Thu May 17, 2007 9:09 am

Hi Puuul,

We are working dilligently to handle character encoding normalization across a number of different schemes, and facing numerous challenges. We had not yet had an opportunity to test Persian in our code, but now that you have brought it to our attention, we will find a solution as quickly as possible.

For you, and any others who are having issues submitting non-Western characters into your forms, you may wish to comment out lines 93-108 in /classes/form/Form.inc.php while we attempt to determine a more reliable approach.

With full apologies for the inconvenience,

MJ Suhonos
Open Journal Systems
Development Team
mj
Site Admin
 
Posts: 304
Joined: Fri Mar 26, 2004 9:32 am
Location: Toronto, Canada

Postby puuul » Thu May 17, 2007 11:44 pm

Dear mj,
thank u 4 ur reply, i'll check the Form.inc.php file.
puuul
 
Posts: 11
Joined: Thu May 17, 2007 5:21 am

Postby puuul » Fri May 18, 2007 12:21 am

Dear MJ,
I
Previous code:
By the way I'm going to check it and i'll notify you if it would be any problem any more with the case.
Last edited by puuul on Sun Jun 10, 2007 6:03 am, edited 2 times in total.
puuul
 
Posts: 11
Joined: Thu May 17, 2007 5:21 am

A problem is remained

Postby puuul » Fri May 18, 2007 11:33 am

Hi again

The task I have done was successful to some extent. Unfortunately I have encountered some other problems, now there are errors on submitting the site settings and also in submitting the journals;

The problem with the site setting contains an error:
Warning: Cannot modify header information - headers already sent by (output started at f:\program files\tools\easyphp1-8\www\ocs-2.0.0-1\ocs-2.0.0-11\ocs-2.0.0-1\classes\form\Form.inc.php:1) in f:\program files\tools\easyphp1-8\www\ocs-2.0.0-1\ocs-2.0.0-11\ocs-2.0.0-1\classes\template\TemplateManager.inc.php on line 250


And in journal submitting the problem is occurred as:
Warning: mkdir(f:/program files/tools/easyphp1-8/www/ocs-2.0.0-1/ocs-2.0.0-1/ocs-2.0.0-1/files/conferences/4): No such file or directory in f:\program files\tools\easyphp1-8\www\ocs-2.0.0-1\ocs-2.0.0-11\ocs-2.0.0-1\classes\file\FileManager.inc.php on line 234

Warning: mkdir(f:/program files/tools/easyphp1-8/www/ocs-2.0.0-1/ocs-2.0.0-1/ocs-2.0.0-1/files/conferences/4/schedConfs): No such file or directory in f:\program files\tools\easyphp1-8\www\ocs-2.0.0-1\ocs-2.0.0-11\ocs-2.0.0-1\classes\file\FileManager.inc.php on line 234

Warning: Cannot modify header information - headers already sent by (output started at f:\program files\tools\easyphp1-8\www\ocs-2.0.0-1\ocs-2.0.0-11\ocs-2.0.0-1\classes\form\Form.inc.php:1) in f:\program files\tools\easyphp1-8\www\ocs-2.0.0-1\ocs-2.0.0-11\ocs-2.0.0-1\classes\core\Request.inc.php on line 40


Does anyone have any idea?
puuul
 
Posts: 11
Joined: Thu May 17, 2007 5:21 am

Postby asmecher » Fri May 18, 2007 12:20 pm

Hi puuul,

The first problem is most likely caused by a blank line at the of classes/form/Form.inc.php introduced when you modified the file.

The second is probably a configuration issue; check your config.inc.php to see what the files_dir is set to. Make sure that this directory exists, and that it and all of its contents are writable by the web server.

Regards,
Alec Smecher
Public Knowledge Project Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 8910
Joined: Wed Aug 10, 2005 12:56 pm

Postby puuul » Sat May 19, 2007 4:33 am

Dear asmecher,
Unfortunately, those weren't the answer. The problem is related to something else.
puuul
 
Posts: 11
Joined: Thu May 17, 2007 5:21 am

Postby asmecher » Mon May 21, 2007 9:36 am

Hi Puuul,

Do you mean both problems you were describing? I'd urge you to double-check to make sure there's no blank line at the beginning of classes/form/Form.inc.php; if that's not the problem, you'll need to do more investigation yourself.

As for the second problem, what is files_dir set to in config.inc.php?

Regards,
Alec Smecher
Public Knowledge Project Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 8910
Joined: Wed Aug 10, 2005 12:56 pm

Postby puuul » Tue May 22, 2007 12:35 am

Hi,
I think the problem is related to the changes in the code:
Last edited by puuul on Sun Jun 10, 2007 6:04 am, edited 1 time in total.
puuul
 
Posts: 11
Joined: Thu May 17, 2007 5:21 am

Postby asmecher » Tue May 22, 2007 9:41 am

Hi puuul,

Do you mean this message?
Warning: Cannot modify header information - headers already sent by (output started at f:\program files\tools\easyphp1-8\www\ocs-2.0.0-1\ocs-2.0.0-11\ocs-2.0.0-1\classes\form\Form.inc.php:1) in f:\program files\tools\easyphp1-8\www\ocs-2.0.0-1\ocs-2.0.0-11\ocs-2.0.0-1\classes\template\TemplateManager.inc.php on line 250
This indicates that output was started in Form.inc.php at line 1, which should simply read "<?php". Is that still the same message you're getting, and does it still indicate line 1?

Regards,
Alec Smecher
Public Knowledge Project Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 8910
Joined: Wed Aug 10, 2005 12:56 pm

Postby puuul » Wed May 23, 2007 10:44 am

hi asmecher,
unfortunately the errors r remaind, offcource the error in top of the page is removed as i changed the php.ini configuration of the server but the errors after registration in site r remaind.

take a look at these errors:
Warning: session_regenerate_id(): Cannot send session cookie - headers already sent by (output started at c:\program files\easyphp1-8\www\seminars\ocs-2.0.0-1\classes\form\Form.inc.php:1) in c:\program files\easyphp1-8\www\seminars\ocs-2.0.0-1\classes\session\SessionManager.inc.php on line 209

Warning: Cannot modify header information - headers already sent by (output started at c:\program files\easyphp1-8\www\seminars\ocs-2.0.0-1\classes\form\Form.inc.php:1) in c:\program files\easyphp1-8\www\seminars\ocs-2.0.0-1\classes\session\SessionManager.inc.php on line 193

Warning: Cannot modify header information - headers already sent by (output started at c:\program files\easyphp1-8\www\seminars\ocs-2.0.0-1\classes\form\Form.inc.php:1) in c:\program files\easyphp1-8\www\seminars\ocs-2.0.0-1\classes\core\Request.inc.php on line 40


those r shown after registeration of a user. and the whole page is empty. even the user is registered in the db, and e-mail is sent to the user's mail.

if u wana i[ll send u my server add.
puuul
 
Posts: 11
Joined: Thu May 17, 2007 5:21 am

Postby asmecher » Wed May 23, 2007 11:31 am

Hi puuul,

All of those messages indicate the same error -- content was generated in Form.inc.php at line 1 where it shouldn't be. Open classes/core/Form.inc.php in a simple text editor and make sure there is no blank line at the very beginning, i.e. make sure that it begins with:
Code: Select all
<?php
...and not...
Code: Select all
 
<?php
If that doesn't work, email me your classes/core/Form.inc.php.

Regards,
Alec Smecher
Public Knowledge Project Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 8910
Joined: Wed Aug 10, 2005 12:56 pm

Same problem for Chinese characters

Postby cb » Tue Jul 17, 2007 5:19 pm

I installed the latest OCS system on my server, and set "client_charset =
utf-8", "connection_charset = utf8", "database_charset = utf8". My MySQL
is 5.0.22. But when I use Chinese, the client program can't insert correct
Chinese characters into the database, but only "????". If I correct records
to Chinese characters manually by PhpMyAdmin, these characters can be
displayed correct on webpages.
cb
 
Posts: 5
Joined: Tue Jul 17, 2007 5:12 pm

Postby asmecher » Tue Jul 17, 2007 6:01 pm

Hi cb,

Please try the solution described above -- comment out lines 93-108 in classes/form/Form.inc.php. If that doesn't work, please let me know and I'll see what else I can suggest.

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

Re:

Postby fujiang » Sat Nov 03, 2007 12:36 am

asmecher wrote:Hi cb,

Please try the solution described above -- comment out lines 93-108 in classes/form/Form.inc.php. If that doesn't work, please let me know and I'll see what else I can suggest.

Regards,
Alec Smecher
Public Knowledge Project Team



Hi Alec, I have exactly same situation and problem with cb. I commented out the lines you montioned but I still get '????' for any none-western words. I noticed the above messengs are half year ago. I wonder you could have better solution. Many thanks, look forward to hearing from you.
fujiang
 
Posts: 4
Joined: Tue Oct 30, 2007 10:51 pm

Next

Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron