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
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
ramon
Posts: 945
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil
Contact:

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.

jmacgreg
Posts: 4191
Joined: Tue Feb 14, 2006 10:50 am
Contact:

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

ramon
Posts: 945
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil
Contact:

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

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

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

ramon
Posts: 945
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil
Contact:

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: 945
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil
Contact:

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";
}


Return to “OCS Technical Support”

Who is online

Users browsing this forum: No registered users and 1 guest