Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6907949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:29:56+00:00 2026-05-27T08:29:56+00:00

I have this scipt call: …. $objResponse->addScriptCall(my_script); return $objResponse->sendResponse(); This works ok but if

  • 0

I have this scipt call:

....
$objResponse->addScriptCall("my_script");
return $objResponse->sendResponse();

This works ok but if I try to send a php mail just before, the script is not called:

...
$send =& $mailer->Send(); 
$objResponse->addScriptCall("my_script");
return $objResponse->sendResponse();

Why is that happening?
The problem persists even if I replace the email function with a plain:

...
print 'hello'; 
$objResponse->addScriptCall("my_script");
return $objResponse->sendResponse();
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T08:29:57+00:00Added an answer on May 27, 2026 at 8:29 am

    You need to call error_reporting(0); ini_set('display_errors', 0); at the top of your script.

    The $mailer->Send() call is triggering an error, which is being echoed. This is causing a Javascript syntax error which will, as you say, break your Javascript.

    This is why calling print "hello"; also breaks it, because you then have a random, meaningless hello at the top of your Javascript.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an AJAX call in my jQuery/PHP app. It needs to send some
I have a script called ranking.php. I call this script at the top of
Let's imagine I have a bash script, where I call this: bash -c some_command
I have this script to generate an XML file for an RSS feed. Works
I have this script and when i try to run it, it just says
I have this script <?php if (!empty($_FILES)) { $tempFile = $_FILES['Filedata']['tmp_name']; $targetPath = dirname(__FILE__)
i have this script <select> <option value=1>one<img src=star.gif height=15 width=15></img> </option> </select> but it
Alright so I've got this script sort of working. The ajax call works and
I have this form: <form action=contact.php method=post id=contactform> <ol> <li> <label for=name>First Name *
I have this PHP script (test.php): <?php $cmd = /usr/bin/sass --watch file1.scss; system($cmd); ?>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.