OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Undefined var saving e-mail templates on various languages

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.

Undefined var saving e-mail templates on various languages

Postby lrizquierdo » Tue Dec 11, 2007 1:39 pm

Dear All,

I have installed an additional language on OCS 2.0.0-1. Everything seems to work fine except when I try to edit e-mail templates in both languages. When I click on the "Save" button, I get the following error (both working on Windows and Lynux):

Notice: Undefined variable: conference in C:\Archivos de programa\EasyPHP 2.0b1\www\ocs-2.0.0-1\classes\manager\form\EmailTemplateForm.inc.php on line 143

Fatal error: Call to a member function getSupportedLocaleNames() on a non-object in C:\Archivos de programa\EasyPHP 2.0b1\www\ocs-2.0.0-1\classes\manager\form\EmailTemplateForm.inc.php on line 143


The line mentioned in the error message reads:

Code: Select all
foreach ($conference->getSupportedLocaleNames() as $localeKey => $localeName) {


and I *BELIEVE* (but do not speak php!) that it should read:

Code: Select all
foreach ($this->conference->getSupportedLocaleNames() as $localeKey => $localeName) {


This makes sense to me and everything seems to work fine after making this change, but I do not *really* know what I am doing.

Would anyone be so kind as to confirm that this amendment is correct (or alternatively tell me to go and buy a php book and stop messing around with the code without really understanding what I am doing)?

Thanks so much!
Luis
lrizquierdo
 
Posts: 5
Joined: Wed Nov 14, 2007 2:59 am

Re: Undefined var saving e-mail templates on various languages

Postby asmecher » Tue Dec 11, 2007 2:20 pm

Hi Luis,

This is a known issue in OCS 2.0; see http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=3150. The CVS version has been fixed and this problem should be corrected in the next release, which will be OCS 2.1; in the meantime, your fix should work fine.

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

Re: Undefined var saving e-mail templates on various languages

Postby lrizquierdo » Tue Dec 11, 2007 3:38 pm

Thank you very much indeed Alec!
Luis
lrizquierdo
 
Posts: 5
Joined: Wed Nov 14, 2007 2:59 am


Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 1 guest