Forums / Managing Customers and Orders / Contact Us form with Call for Price not working

Contact Us form with Call for Price not working

Views: 1,590

Results 1 to 7 of 7
14 Apr 2014, 6:08 AM
#1
sachin1008 avatar

sachin1008

New Zenner

Join Date:
Mar 2014
Posts:
32
Plugin Contributions:
0

Contact Us form with Call for Price not working

When I fill Full Name, Email Address, Message, and click Send button, I get a blank page with following on the browser bar: http://MySite.com/index.php?main_page=contact_us&action=send. Help will be highly appreciated.

14 Apr 2014, 7:31 AM
#2
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,780
Plugin Contributions:
2

Re: Contact Us form with Call for Price not working

Sachin1008:

When I fill Full Name, Email Address, Message, and click Send button, I get a blank page with following on the browser bar: http://MySite.com/index.php?main_page=contact_us&action=send. Help will be highly appreciated.

Have a look in your logs folder via ftp/cpanel and post the content of the file created when the error occurs.

14 Apr 2014, 11:33 AM
#3
sachin1008 avatar

sachin1008

New Zenner

Join Date:
Mar 2014
Posts:
32
Plugin Contributions:
0

Re: Contact Us form with Call for Price not working

Thanks for the reply.

[08-Apr-2014 05:20:37 America/Phoenix] PHP Warning: reset() expects parameter 1 to be array, null given in /home/content/99/10511299/html/MyShoppingHomePage/MyAdmin/includes/classes/object_info.php on line 29
[08-Apr-2014 05:20:37 America/Phoenix] PHP Warning: Variable passed to each() is not an array or object in /home/content/99/10511299/html/MyShoppingHomePage/MyAdmin/includes/classes/object_info.php on line 30

26 Apr 2014, 2:44 PM
#4
sachin1008 avatar

sachin1008

New Zenner

Join Date:
Mar 2014
Posts:
32
Plugin Contributions:
0

Re: Contact Us form with Call for Price not working

There are files like .htaccess, index.html, index.php, and no. of myDebu file which I guess you are requiring output of. Here is the output:
[09-Apr-2014 05:37:50 America/Phoenix] PHP Parse error: syntax error, unexpected '<' in /home/content/99/10511299/html/contentshopping/includes/languages/english/classic/header.php on line 22

26 Apr 2014, 3:01 PM
#5
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Contact Us form with Call for Price not working

Sachin1008:

There are files like .htaccess, index.html, index.php, and no. of myDebu file which I guess you are requiring output of. Here is the output:
[09-Apr-2014 05:37:50 America/Phoenix] PHP Parse error: syntax error, unexpected '<' in /home/content/99/10511299/html/contentshopping/includes/languages/english/classic/header.php on line 22
The error, as the log indicates, is in the file /includes/languages/english/classic/header.php on line 22. If you post the contents of that file (using the code tags, the # in the formatting bar when you create a posting) lines 15 to 25 it would help.

28 Apr 2014, 6:01 AM
#6
sachin1008 avatar

sachin1008

New Zenner

Join Date:
Mar 2014
Posts:
32
Plugin Contributions:
0

Re: Contact Us form with Call for Price not working

Thanks for the reply. Here is the output:

// header text in includes/header.php

define('HEADER_TITLE_CREATE_ACCOUNT', 'Create Account');

define('HEADER_TITLE_MY_ACCOUNT', 'My Account');

define('HEADER_TITLE_CART_CONTENTS', 'Shopping Cart');

define('HEADER_TITLE_CHECKOUT', 'Checkout');

define('HEADER_TITLE_TOP', 'Top');

define('HEADER_TITLE_CATALOG', 'Home');

define('HEADER_TITLE_LOGOFF', 'Log Out');

define('HEADER_TITLE_LOGIN', 'Log In');

// added defines for header alt and text

define('HEADER_ALT_TEXT', 'Splendid Digital Solutions [home link]');

define('HEADER_SALES_TEXT', '<h1>Splendid Digital Solutions</h1>');

define('HEADER_LOGO_WIDTH', '200px');

define('HEADER_LOGO_HEIGHT', '70px');

define('HEADER_LOGO_IMAGE', 'SDSlogo.jpg');

// header Search Button/Box Search Button

define('HEADER_SEARCH_BUTTON','Search');

define('HEADER_SEARCH_DEFAULT_TEXT','Enter search keywords here');

?>

7 May 2014, 2:09 AM
#7
trinity14 avatar

trinity14

Zen Follower

Join Date:
Jan 2014
Location:
Ontario, Canada
Posts:
252
Plugin Contributions:
3

Re: Contact Us form with Call for Price not working

Have you modified your admin/includes/classes/object_info.php file? An error suggests a change... it should look something like this:

  class objectInfo {

// class constructor
    function objectInfo($object_array) {
//this line should be added, but should be tested first:
//      if (!is_array($object_array)) return;
      reset($object_array);
      while (list($key, $value) = each($object_array)) {
        $this->$key = zen_db_prepare_input($value);
      }
    }
  }
?>