OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Fatal error: Call to undefined method Request::

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.

Fatal error: Call to undefined method Request::

Postby ozp » Sat Jun 09, 2007 8:14 am

http://eventos.redepsi.com.br/index.php ... tAllEmails

Fatal error: Call to undefined method Request::isconferencemanager() in /home/eventos/public_html/pages/manager/EmailHandler.inc.php on line 141

Code: Select all
/**
    * resets all email templates associated with the conference.
    */
   function resetAllEmails() {
      list($conference, $schedConf) = EmailHandler::validate();
      
      $conference = &Request::getConference();
      $emailTemplateDao = &DAORegistry::getDAO('EmailTemplateDAO');
      
      if(Request::isConferenceManager()) {
         $emailTemplateDao->deleteEmailTemplatesByConference($conference->getConferenceId());
      } else {
         $emailTemplateDao->deleteEmailTemplatesBySchedConf($schedConf->getSchedConfId());
      }
      
      Request::redirect(null, null, null, 'emails');
   }


I can reset one email template. But It does not show the proper text message (translated)
ozp
 
Posts: 51
Joined: Sat Apr 28, 2007 9:01 pm

Postby ozp » Sat Jun 09, 2007 8:24 am

I dont know why, but even having a /dbscripts/xml/data/locale/pt_BR/email_templates_data.xml all the templates are gone (when using pt_BR) locale

http://eventos.redepsi.com.br/dbscripts ... s_data.xml


should stuff like
Code: Select all
<field name="email_key">SUBMISSION_ACK</field>


Left as is?
ozp
 
Posts: 51
Joined: Sat Apr 28, 2007 9:01 pm


Return to OCS Technical Support

Who is online

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