1

I get error during export product,

Error : (error_log)

[15-Jul-2016 12:24:04 UTC] PHP Strict Standards: Declaration of CustomImportExport_Export::export() should be compatible with Mage_ImportExport_Model_Export::export() in /home/giritra/public_html/export_product.php on line 1047

enter image description here

1

As the error states your declaration needs to be compatible with the class you're extending. This means that functions needs to have same number of properties passed.

The original class Mage_ImportExport_Model_Export have method export() but it doesn't receives any parameters. In your class your method has an extra parameter $destination. Remove the parameter from method definition and the error will be resolved.

On the other hand it looks like you're doing this wrong. You're not using Magento module concept, and you're declaring multiple classes in one file which AFAIK will fail to autoload in PSR-4. You really should do this as a module, not a file in public place where it'll be available for everyone.

  • Actually am host my site, completely developed from localhost right after i did hosting. – Gem Jul 16 '16 at 11:25
  • i don't know any other files or missing or not – Gem Jul 16 '16 at 11:25
  • help me about this error – Gem Jul 16 '16 at 11:26
  • regard this line @ The original class Mage_ImportExport_Model_Export have method export() but it doesn't receives any parameters. In your class your method has an extra parameter $destination. Remove the parameter from method definition and the error will be resolved. – Gem Jul 16 '16 at 11:37
  • 1
    You've ran out of memory which means you need to increase MEMORY_LIMIT in your php.ini or change your code to consume less memory. – versedi Jul 16 '16 at 12:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.