VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
VISIT OUR CHANNEL ON YOUTUBE

Account Details

Change your name, email, password or permanently delete your account. Change settings

We offer several ways you can get support from our experts: Support ForumKnowledgebaseNewsletter

Your Forum Posts

No posts to display.

Welcome, Guest
Username Password: Remember me

Mod Simple Contact - error php
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Mod Simple Contact - error php

Mod Simple Contact - error php 04 Sep 2016 19:08 #9367

Hello guys !! I hope all you are in good mood !!

I enable the report error maximum for check the Joomla and I see this error in frontend:

Notice: Undefined variable: sendMessage in /home/mercamari/public_html/modules/mod_simplecontact/mod_simplecontact.php on line 55

I try this solution :
www.joomfreak.com/forum/categories/jooml...salina-template.html

But dosen't work.
The notice still appears !

Thanks in advanced for all you help in this issue !!

  • Posts:11
  • cuesta
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: Mod Simple Contact - error php 05 Sep 2016 03:46 #9373

You can edit modules/mod_simplecontact/mod_simplecontact.php, on line 28 add:
 
$sendMessage = '';
 


joomfreak

  • Posts:2768
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0

Re: Mod Simple Contact - error php 07 Sep 2016 13:31 #9388

Hello, it is shown the following error message when I try to compile the module on my site (which works correctly):

Strict Standards: Non-static method ModSimpleContactHelper::sendEmail() should not be called statically in /web/htdocs/www.gfxstudios.it/home/modules/mod_simpl...od_simplecontact.php on line 31

Strict Standards: Only variables should be assigned by reference in /web/htdocs/www.gfxstudios.it/home/modules/mod_simplecontact/helper.php on line 43

Site: www.gfxstudios.it

How can I fix that?

Thanks

  • Posts:18
  • Sunhyre
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: Mod Simple Contact - error php 08 Sep 2016 03:16 #9391

You should config Error Reporting is System Default.

joomfreak

  • Posts:2768
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0

Re: Mod Simple Contact - error php 09 Sep 2016 15:32 #9397

Hello team Joonfreak this solution work for me $sendMessage = ''; in line 28 in mod_simplecontact.php

$contact_task = JRequest::getVar('contact_task', null, 'POST');
$sendMessage = '';
if ($contact_task == 'send') {
$sendMessage = ModSimpleContactHelper::sendEmail($params);
 


Thanks a lot !!

  • Posts:11
  • cuesta
  • Fresh Boarder
  • OFFLINE
  • Karma: 0
  • Page:
  • 1
Time to create page: 1.03 seconds
Wednesday 17 July 2019

joomfreak is not affiliated with or endorsed by the Joomla Project or Open Source Matters.
The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.