close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Main is not going and showing Fatal error

Thread began 4/20/2020 3:06 pm by Rokon | Last modified 4/21/2020 7:39 pm by Ray Borduin | 49 views | 9 replies |

Rokon

Mail is not going and showing Fatal error

Hello

I am having a problem with email delivery, I have been trying from yesterday but without any result.

I am getting the error as below;

Fatal error: Uncaught Error: Call to a member function Prepare() on null in /home1/x0g1kgnj/new.hadithbd.com/webassist/mysqli/rsobj.php:203 Stack trace: #0 /home1/x0g1kgnj/new.hadithbd.com/hadith/email/hadith-email.php(7): WA_MySQLi_RS->execute() #1 /home1/x0g1kgnj/new.hadithbd.com/webassist/email/WA_Email.php(314): require('/home1/x0g1kgnj...') #2 /home1/x0g1kgnj/new.hadithbd.com/webassist/email/WA_Email.php(473): WA_Email->getFromPage('hadith-email.ph...') #3 /home1/x0g1kgnj/new.hadithbd.com/hadith/email/index.php(62): WA_Email->send(0) #4 {main} thrown in /home1/x0g1kgnj/new.hadithbd.com/webassist/mysqli/rsobj.php on line 203

Below is may page link to try: http://new.hadithbd.com/hadith/email/?id=102

Sign in to reply to this post

Ray BorduinWebAssist

When you add a recordset to an email body you have to use require() instead of require_once() for adding the connection. So this on hadith-email.php:

php:
<?php require_once('../../Connections/hadithbd.php'); ?>


should be this:

php:
<?php require('../../Connections/hadithbd.php'); ?>


Or you could just carry it over as a global variable like:

php:
<?php

global $hadithbd;
?>
Sign in to reply to this post
Did this help? Tips are appreciated...

Rokon

Originally Said By: Ray Borduin
  When you add a recordset to an email body you have to use require() instead of require_once() for adding the connection. So this on hadith-email.php:
php:
<?php require_once('../../Connections/hadithbd.php'); ?>

should be this:
php:
<?php require('../../Connections/hadithbd.php'); ?>

Or you could just carry it over as a global variable like:
php:
<?php

global $hadithbd;
?>
  



I change the connection to <?php require('../../Connections/hadithbd.php'); ?> and uploaded the file newly, now no error is showing but mail also not going too, it is neither shows a success message nor anything just browser shows it is loading for infinity

Sign in to reply to this post

Ray BorduinWebAssist

I added this line to the email code:

$Email->SMTPDebug = 3;

That displays the SMTP communication between the web page and email server. It appears your smtp server information is not correct.

Sign in to reply to this post
Did this help? Tips are appreciated...

Rokon

Originally Said By: Ray Borduin
  I added this line to the email code:

$Email->SMTPDebug = 3;

That displays the SMTP communication between the web page and email server. It appears your smtp server information is not correct.  



Well at last it works! the SMTP port was creating trouble. Thanks for your great support Ray.

Sign in to reply to this post

Rokon

Originally Said By: Ray Borduin
  I added this line to the email code:

$Email->SMTPDebug = 3;

That displays the SMTP communication between the web page and email server. It appears your smtp server information is not correct.  



For the first and last time just one email came and after that every time it shows success message but email never appear in anywhere, checked spam etc but nothing. Pls help.

Sign in to reply to this post

Ray BorduinWebAssist

I turned on email debug again and saw your smtp server was giving an encryption error. So I turned off your email encryption settings and that seems to have fixed it.

Now the email sends, but I get an error because you have email logging turned on and set to insert into the email_log table in your database, but that table doesn't exist. You can either delete lines 55-62 to remove the logging, or create the table in the database so it can insert properly.

Sign in to reply to this post
Did this help? Tips are appreciated...

Rokon

Originally Said By: Ray Borduin
  I turned on email debug again and saw your smtp server was giving an encryption error. So I turned off your email encryption settings and that seems to have fixed it.

Now the email sends, but I get an error because you have email logging turned on and set to insert into the email_log table in your database, but that table doesn't exist. You can either delete lines 55-62 to remove the logging, or create the table in the database so it can insert properly.  



Well at last is working! I added the table manually and now inserting the data and without any error!

Thanks again.

Sign in to reply to this post

Rokon

Email is delivering but the security captcha has no effect

I noticed that the security captcha is not working nor even showing any error! Whatever i put as security text it just accept everything. Can you pls have a look what I am doing wrong?

Sign in to reply to this post

Ray BorduinWebAssist

You only have required validation set for the CAPTCHA, not Like Entry validation, which is required to check they are both the same.

I've gone ahead and added the server validation for you.

Sign in to reply to this post
Did this help? Tips are appreciated...
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...