Jump to content

validation.php goes to blank page


Recommended Posts

I have the same problem. I set display_error "on". And says the problem is in PaymentModule.php line 494.

494:

$tmp_values[] = (isset($fields_style[$field_item]))? sprintf($fields_style[$field_item], $the_address->{$field_item}) : $the_address->{$field_item};




You can see more code here:

    /**
    * @param Object Address $the_address that needs to be txt formated
    * @return String the txt formated address block
    */

   private function _getFormatedAddress(Address $the_address, $line_sep, $fields_style = array())
   {
       $out = '';
       $adr_fields = AddressFormat::getOrderedAddressFields($this->id_country);

       $r_values = array();

       foreach($adr_fields as $fields_line)
       {
           $tmp_values = array();
           foreach (explode(' ', $fields_line) as $field_item)
           {
               $field_item = trim($field_item);
               $tmp_values[] = (isset($fields_style[$field_item]))? sprintf($fields_style[$field_item], $the_address->{$field_item}) : $the_address->{$field_item};
           }
           $r_values[] = implode(' ', $tmp_values);
       }


       $out = implode($line_sep, $r_values);
       return $out;
   }




I have replace PaymentModule.php with the 1.4.0 file, and now works, but I dont know if it is a good idea.

Link to comment
Share on other sites


I have replace PaymentModule.php with the 1.4.0 file, and now works, but I dont know if it is a good idea.

I don't think it is very good idea, you fixed this issue, but maybe cause more other issue.

Follow tomerg3's suggestion, post the exact error here maybe we can help you to fix.
Link to comment
Share on other sites

  • 2 weeks later...

Hi,I have the same problem.
I set display_error “on”. And says the problem is in PaymentModule.php line 494.

494:


$tmp_values[] = (isset($fields_style[$field_item]))? sprintf($fields_style[$field_item], $the_address->{$field_item}) : $the_address->{$field_item};

I have PS 1.4.1 with new install

Link to comment
Share on other sites

My problem is almost the same, I'm using ATM payment and when you click "confirm the order" it goes to blank page with this error: "Error: invalid email subject"

Can you help me?
I´m using v.1.4

Regards

Link to comment
Share on other sites

  • 1 month later...

same problem here.


Im using prestashop ver 1.4.1
I’ve placed some order for testing several times with paypal but the last page of order is always same blank page with this error msg ;


Fatal error: Cannot access empty property in ../classes/PaymentModule.php on line 494


BUT paypal payment go through so that I can see the listed order on ‘orders’ tap.

BUT there shows another error msg when I trying to generate invoice of that order ;



Fatal error: Cannot access empty property in ../classes/PDF.php on line 468


Any solutions of this issue?

Link to comment
Share on other sites

  • 3 weeks later...
×
×
  • Create New...