OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



TinyMCE not showing in extra About items [FIXED]

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.

TinyMCE not showing in extra About items [FIXED]

Postby ramon » Wed Apr 07, 2010 11:18 am

Hello all,

Not sure if this is also happening in OJS, since I haven't tested.
I searched the forum, PKP Google, but nothing matched this issue.
When adding more than just one extra item in the About page (Step 1 of Conference setup), the new added fields do not display the TinyMCE editor in the textarea, which is odd.
Anyone with this issue yet?
I'll fiddle with TinyMCE configuration to see if that helps.
I'm using OCS 2.1.2.1
Last edited by ramon on Thu Apr 22, 2010 7:21 am, edited 1 time in total.
ramon
 
Posts: 926
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil

Re: TinyMCE not showing in extra About items

Postby jmacgreg » Mon Apr 12, 2010 2:41 pm

Hi Ramon,

I can't track the bugfix down for this either; but it does seem to be fixed in 2.3. If it's imperative for you to have the TinyMCE box working in 2.1.2, let me know and I'll pass this on to the devs.

Cheers,
James
jmacgreg
 
Posts: 4181
Joined: Tue Feb 14, 2006 10:50 am

Re: TinyMCE not showing in extra About items

Postby ramon » Thu Apr 15, 2010 11:04 am

Hello James,

Sorry for the late reply.
Yes I'd like to solve this for our OCS installation, as we will have to downgrade.
2.3 has shown a MySQL error which we don't know how to fix.
Code: Select all
DB Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ASC LIMIT 0,25' at line 1
ramon
 
Posts: 926
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil

Re: TinyMCE not showing in extra About items

Postby mcrider » Tue Apr 20, 2010 10:44 am

Hi Ramon,

You can try applying the patch at http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=4830. If it doesn't apply cleanly, you should be able to make the modification by hand pretty easily.

Cheers,
Matt
mcrider
 
Posts: 952
Joined: Mon May 05, 2008 10:29 am
Location: Vancouver, BC

Re: TinyMCE not showing in extra About items

Postby ramon » Thu Apr 22, 2010 7:01 am

Hello James,

I'm not sure if anyone tried to apply the patch before me, but this is what was on the code:
Previous code:
Code: Select all
$count = max(1, count($templateMgr->get_template_vars('customAboutItems')));
for ($i=0; $i<$count; $i++) {
  $fields[] = "customAboutItems-$i-content";
}


After I applied the patch, the following are the related PHP errors in the log (I think, since I had commented the previous code and added the patch lines, the line numbers will differ):
Code: Select all
[22-Abr-2010 09:56:43] PHP Fatal error:  Can't use method return value in write context in /var/local/www/congresso/ibict/plugins/generic/tinymce/TinyMCEPlugin.inc.php on line 144
[22-Abr-2010 09:57:05] PHP Fatal error:  Can't use method return value in write context in /var/local/www/congresso/ibict/plugins/generic/tinymce/TinyMCEPlugin.inc.php on line 144
ramon
 
Posts: 926
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil

Re: TinyMCE not showing in extra About items [fixed]

Postby ramon » Thu Apr 22, 2010 7:15 am

Hello James,

This is the correct code for OCS 2.1.2.1, in plugins/generic/tinymce/TinyMCEPlugin.inc.php:
Code: Select all
$customAboutItems = $templateMgr->get_template_vars('customAboutItems');
$count = max(1, isset($customAboutItems[$formLocale])?count($customAboutItems[$formLocale]):0);
for ($i=0; $i<$count; $i++) {
   $fields[] = "customAboutItems-$i-content";
}
ramon
 
Posts: 926
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil


Return to OCS Technical Support

Who is online

Users browsing this forum: Google [Bot] and 2 guests