Common OpenCart Errors and How to Solve Them

Written by in Tutorials on August 21, 2012  |  134 Comments

common-opencart-errors-and-how-to-solve-them

There is nothing more excited then try to build your own ecommerce store. Installing OpenCart extensions and themes, modificate them to your need and learn new thing during development. But most OpenCart users know how frustrating it can be get an unexpected error and not be able to find a solution for it.

Most OpenCart issues are solvable. If you got an error, don’t fret because other OpenCart user had the same problem and already gotten it solved. This tutorial collecting most common errors that repeatedly asked by OpenCart users at community forum. Sometime the same error have different error messages, that why we organize the error variant and solution for it.

Before continue, you need to know that an error usually trigger another errors. This is commonly happen because when your code breaks, the rest of code will not work and cause another error. No need to be confuse, the first error is the key. Recognise the error, find issue in your code and try to solve them with solution as suggested on this tutorial.

1. Blank White Pages or 500 Internal Server Error

Blank white pages is a PHP errors that for some reason the error messages isn’t show because your server is not setup to display the errors. While the 500 Internal Server Error means something has gone wrong but the server cannot specifically state what the exact problem is.

The similiarity of both issue is it doesn’t give us a clue what exactly happen, or what files triggering the errors. So, first step before we try to solve the errors is try to show the error messages. Then use the error message as starting point to investigate what is the error cause. Here are a few ways to show the error messages:

  1. Set your “Output Compression Level” to 0 in the System > Settings > Server tab.
  2. Then open php.ini and add code below:
    display_errors = 1;
    error_reporting = E_ALL;
    log_errors = 1;
  3. If your server not read the php.ini, we will use an alternative method. Open index.php and add code below at the top (line 2):
    ini_set('display_errors', 1);
    ini_set('log_errors', 1);
    error_reporting(E_ALL);
    
  4. When you have fixed the problem, remove code line above.

2. Undefined Index / Variable

The error appears when you referencing variable that not been declared. In programming approach set the variable or use isset() to checks if the variable has been set will solve the issue. But for an application to get this issue mean there is a bugs in it, whether it’s OpenCart or extensions files. Or you do some modification on unappropriate way.

Error variant:
  • PHP Notice: Undefined index: company in /path/public_html/catalog/model/account/customer.php on line 8
  • PHP Notice: Undefined variable: order_id in /path/public_html/catalog/controller/account/order.php on line 149
  • PHP Notice: Undefined variable: product in /path/public_html/vqmod/vqcache/vq2-catalog_view_theme_default_template_product_product.tpl on line 272
Solution
  1. If you get this issue on clean OpenCart installation, share the bugs at OpenCart forum. It will help OpenCart developer to develope bugs fix.
  2. When you get this issue after installing an extension, disable the extension then report it to the developer.
  3. If the error refer to file inside the “/vqmod/vqcache” folder, it’s mean the error caused by vQmod file. Disable the vQmod file by rename it to vqmod_file.xml_ and report the bugs to the developer.

3. Undefined Function / Method

If you get “Fatal error: Call to undefined function” or “Fatal error: Call to undefined method” means you try to call the function/ method that doesn’t exist. Commonly happen if files is not uploaded properly or the extensions is not compatible with your OpenCart version; or it’s really doesn’t exist. Here, I will try to classify the problem based on error message.

Error variant:
Related to OpenCart core files
  • Fatal error: Call to undefined function utf8_strlen() in /path/public_html/system/helper/utf8.php on line 39
  • Fatal error: Call to undefined method Customer::isLogged() in /path/public_html/catalog/model/catalog/product.php on line 8
  • Warning: require_once(/path/public_html/system/library/customer.php) [function.require-once]: failed to open stream: No such file or directory in /path/public_html/index.php on line 22
  • Fatal error: require_once() [function.require]: Failed opening required ‘/path/public_html/system/library/customer.php’ (include_path=’.:/usr/lib/php’) in /path/public_html/index.php on line 22
Related to vQmod files
  • Fatal error: Call to undefined method ModelAccountCustomer::getPaymentAddress() in /path/public_html/vqmod/vqcache/vq2-catalog_controller_checkout_confirm.php on line 38
Related to PHP built-in functions
  • Fatal error: Call to undefined function imagecreatefromjpeg() in /path/public_html/system/library/image.php on line 34
  • Fatal error: Call to undefined function mysql_connect() in /path/public_html/system/database/mysql.php on line 6
Solution
Related to OpenCart core files
  1. Some file is not uploaded or it’s corrupted during upload process. Reupload the files to your server with ASCII mode, not binary.
  2. In some case, this issue appear because server path is not configured properly at config.php. So recheck your server path in config.php and admin/cofig.php
  3. “Warning/ Fatal error: require_once” mean the file is not available. You need to reupload the file mentioned on the error message or fix the server path at config.php as mentioned above.
Related to vQmod files
  1. vQmod fails to generate new cache from the extensions vQmod files. Check vqmod/cache folder permission, make sure it’s writable and clear all cache files.
  2. Enabled / disabled one by one vQmod files you have. Once you get the cause, contact the developer.
  3. The extensions is not compatible with your OpenCart version or it have a bug. Contact the developer.
Related to PHP built-in functions
  1. PHP have lot of built-in functions, you can check it here. Errors related to PHP built-in function is server issues. Contact your host to solve this.

4. Headers Already Sent

You get an error message “headers already sent” right after installing, modificating, updating OpenCart or vQmod files. There is a good refference explaining the issue.

Error variant:
  • Warning: Cannot modify header information – headers already sent by (output started at /path/public_html/config.php:31) in /path/public_html/index.php on line 175.
  • Warning: session_start() [function.session-start]: Cannot send session cookie – headers already sent by (output started at /path/public_html/config.php:31) in /path/public_html/system/library/session.php on line 11.
  • Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /path/public_html/config.php:31) in /path/public_html/system/library/session.php on line 11.
Solution:

Download the file stated at the error message then apply solution bellow:

  1. Remove spaces at begining and end of file.
      <?php //contain space
    echo "remove all space or line-break before <?php and after ?>";
    ?> 
  2. Resave the file with Notepad++ or other editor (encode file as ANSI or UTF-8 without BOM).
  3. Reupload to server through FTP in ASCII mode, not binary.

5. Session Issue

PHP session store user information on the server for later use (i.e. login status, shopping items, etc) across the page requests. Session is temporary information and will be deleted after the user left the website. OpenCart use session on lot of aspect like login status, product cart, compare etc. In most case, session issue will throw error messages. But there is time when it’s not show any error message; to recognise it, here is some indication of session issue:

  1. Product on the cart is self-cleared.
  2. Product on the cart is cleared after user logged in.
  3. No items stored at product compares.
  4. OpenCart admin always asking to login and get message “Invalid token session. Please login again”.
Error variant:
  • Warning: session_start () [function.session-start]: open (/tmp/sess_41abirkdiesf9efwej46wtib2, O_RDWR) failed: No such file or directory (2) in /path/public_html/system /library /session.php on line 11
  • Warning: session_start () [function.session-start]: open (/tmp/sess_41abirkdiesf9efwej46wtib2, O_RDWR) failed: Permission denied (13) in /path/public_html/system /library /session.php on line 11
  • Warning: session_start() [function.session-start]: open(/tmp/sess_41abirkdiesf9efwej46wtib2, O_RDWR) failed: No space left on device (28) in /path/public_html/upload/system/library/session.php on line 11
Solution:
No such file or directory issue
  1. Open php.ini and add code below:
    session.save_path = /tmp;
  2. If solution above not work, contact your host and ask them how to set session.save_path.
Other errors
  1. “Permission denied”, ask your hosting to check the session directory permission.
  2. “No space left on device”, ask your hosting is it server issue or you need to upgrade to larger hosting space.

6. Allowed Memory Size Exhausted

This error happen because your memory is not enough to execute the php code (uploading large image, delete lot of products, send mass mails etc). Increasing the memory allocated for PHP will solve the issue.

Error variant:
  • Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 47200 bytes) in /path/public_html/system/library/image.php on line 34
  • Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 13069817 bytes) in /path/public_html/system/library/mail.php on line 144
  • Fatal error: Out of memory (allocated 33554432) (tried to allocate 14024 bytes) in /path/public_html/library/image.php on line 34
Solution:
Apply one of solutions bellow to increasing the limit to 64MB, 128MB, 256MB or 512MB -depends on your host.
  1. Edit php.ini
    memory_limit = 128M;
  2. Or put code below to .htaccess
    php_value memory_limit 128M
  3. If you oftenly get this error and solution above isn’t work, contact your host. In most shared hosting, there is maximum memory_limit. You can’t set memory-limit to 64Mb if you get max 32Mb.

7. Restriction in effect

You get an error message “SAFE MODE Restriction in effect”. This is a PHP restriction issue, and your server account is trying to run a -builtin PHP- functions but doesn’t have access to run it. This issue is nothing to do with OpenCart, but related to your server configuration.

Error variant:
  • Warning: session_start() [function.session-start]: SAFE MODE Restriction in effect. The script whose uid is 10025 is not allowed to access /path/public_html/system/library/session.php on line 11
  • Warning: imagejpeg() [function.imagejpeg]: SAFE MODE Restriction in effect. The script whose uid is 10305 is not allowed to access /path/public_html/image/cache/data owned by uid 48 in /path/public_html/system/library/image.php on line 44
  • Warning: is_dir(): open_basedir restriction in effect. File(/path/public_html/image/87cngmlc22pe96fof5fhmq9c290phri7) is not within the allowed path(s): (/path/server/) in /path/public_html/catalog/controller/checkout/confirm.php on line 248
Solution
  1. Safe Mode and open_basedir restriction is a server issue, ask your host to turn off the restriction is the best way to fix the issue.
  2. But in case you wanna try to resolve it, try this solution:
    // Put code bellow at php.ini
    safe_mode = Off;
    
    --- or ---
    
    // Put code bellow at .htaccess
    php_value safe_mode off

Usefull Tools

System Information

System Information provide server information, PHP built-in functions and file/ folder permission that required or recomended by OpenCart. This extension will help you to monitor that your site / server meet OpenCart requirements to work well. You can download it at OpenCart Marketplace.

vQmod Manager
vQmod Manager allows users to managing vQmod files. This extension display vQmod file information and help you to manage (Upload, delete, install, uninstall and backup) and monitor the vQmod files through the admin panel. You can download it at OpenCart Marketplace.

Tags: , ,

About the Author

Join OpenCart community in 2010. Founders of OpencartNews and EchoThemes.

View all posts by

134 Comments on "Common OpenCart Errors and How to Solve Them"

  1. justin November 10, 2014 at 1:52 am · Reply

    i would like to know if you or someone you know that i can hire to repair and upgrade my ocart
    Thank you

  2. savita November 4, 2014 at 5:22 am · Reply

    Hi i am getting these problems on home page in opencart theme :

    Notice: Undefined variable: class in C:\xampp\htdocs\theme\catalog\view\theme\theme\template\common\header.tpl on line 55

    My Account
    Notice: Undefined variable: text_register in C:\xampp\htdocs\theme\catalog\view\theme\theme\template\common\header.tpl on line 159
    Notice: Undefined variable: text_login in C:\xampp\htdocs\theme\catalog\view\theme\theme\template\common\header.tpl on line 160
    Notice: Undefined variable: data in C:\xampp\htdocs\theme\catalog\view\theme\theme\template\common\header.tpl on line 204
    Notice: Undefined index: tax in C:\xampp\htdocs\theme\catalog\view\theme\theme\template\module\featured.tpl on line 24
    Undefined index: tax in C:\xampp\htdocs\theme\catalog\view\theme\theme\template\module\featured.tpl on line 24
    Notice: Undefined index: tax in C:\xampp\htdocs\theme\catalog\view\theme\theme\template\module\featured.tpl on line 24

  3. kailashkumar September 26, 2014 at 6:48 am · Reply

    please help me and fix follow error:

    when i click my account in my site, i get following error

    Fatal error: Class ‘Controlleraccountaccount’ not found in C:\Users\kailash.SYSTEM1\workspace\designhut1\vqmod\vqcache\vq2-system_engine_front.php on line 39
    Call Stack
    # Time Memory Function Location
    1 0.0010 330264 {main}( ) ..\index.php:0
    2 0.2280 3624960 Front->dispatch( ) ..\index.php:241
    3 0.2300 3697408 Front->execute( ) ..\vq2-system_engine_front.php:29

    i did also the account.php file reuploaded in catalog/controller/account/. but i can’t fix it..

  4. zubair September 15, 2014 at 11:19 am · Reply

    Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/shoppin4/public_html/system/library/log.php on line 14

    Warning: fclose() expects parameter 1 to be resource, boolean given in /home/shoppin4/public_html/system/library/log.php on line 16
    Warning: imagejpeg(/home/shoppin4/public_html/image/cache/data/Manufacture/MENS BELTS/Hermes Belt/5-40×40.jpg): failed to open stream: Permission denied in /home/shoppin4/public_html/system/library/image.php on line 45
    Warning: fopen(/home/shoppin4/public_html/system/logs/error.txt): failed to open stream: Permission denied in /home/shoppin4/public_html/system/library/log.php on line 12

    Help me plz for fix this error of opencart 1.5.5.1

  5. Edwin September 9, 2014 at 10:36 am · Reply

    After installation step 4 Finished! telling me that installation is successful and clicking on: ” go to your online shop” the following error comes up:

    Fatal error: Class ‘Controllermoduleslideshow’ not found in /home/hanmerto/public_html/Store/system/engine/controller.php on line 41

    What does this mean and how can I fix this?

  6. ergotron ds100 September 8, 2014 at 4:52 am · Reply

    well try enabling rigths to /image/cache/data

  7. Razzi.eu August 14, 2014 at 2:18 pm · Reply

    Any ideas on this one: Notice: Error: Could not load model shipping/kiala! in /home/spelthuys/domains/spelthuys.nl/public_html/vqmod/vqcache/vq2-system_engine_loader.php on line 48
    As there is no model, why would VQMod force you to provide one!

  8. amirexpress.ir August 14, 2014 at 6:39 am · Reply

    Hi
    I am having strange problem….
    the comments are not being shown…why or better say how to fix it:
    http://amirexpress.ir/index.php?route=product/product&product_id=355

  9. knights99 August 13, 2014 at 8:50 pm · Reply

    hi,

    I am having issues with my image manager on opencart . I upload pictures just fine but when i wanna add a new picture to a product, it suddenly crashes. Then i have to re-log in all over again. Same thing happens 8 out of 10 times.

    Please i need help urgently. Thanks for your help in advance

  10. Vds June 24, 2014 at 1:18 pm · Reply

    i installed blanco theme .the undefined error will come.. Please help thanks now

  11. Ray May 19, 2014 at 11:59 pm · Reply

    Hi.

    Moved my shop to a new server. Frontend of shop seems fine. Cannot access Admin,

    Fatal error: Call to a member function isLogged() on a non-object in /home/wwwbogno/public_html/catalog/model/catalog/product.php on line 229

    Have checked config.php & admin/config.php & changed all the ‘define’ to suit new database. At a total loss, Please help!

    • Qahar May 20, 2014 at 9:09 am ·

      You say you cannot access admin, but the error indicate that the issue is related to customer (front). Had you change the ‘define’ folder in admin/config.php?

  12. seo May 19, 2014 at 8:22 pm · Reply

    This is the right webpage for anyone who wants to understand this
    topic. You know so much its almost hard to argue with you (not that I actually will need to…HaHa).

    You definitely put a fresh spin on a topic that’s been written about for ages.
    Excellent stuff, just excellent!

  13. islam May 7, 2014 at 1:26 am · Reply

    i have problem with step 4 on the procurement process, when customer press continue he show this error message ” Notice: Undefined index: payment_country_id in /home3/islam90/public_html/system/library/tax.php on line 20 ”

    img ” http://ow.ly/i/5tURg

  14. neddy April 21, 2014 at 11:00 am · Reply

    hello there i kindly need assistance. my site was working fine until i installed this module:
    http://www.opencart.com/index.php?route=extension/extension/info&extension_id=5985

    i did everything as instructed by the developer but now my entire site is screwed up. when i try to load the backend i get the following error:
    Fatal error: Class ‘Log’ not found in /home/mhxhh/public_html/admin/index.php on line 58

    and when i try to load the frontend i get this error:
    Fatal error: Class ‘Log’ not found in /home/mhxhh/public_html/index.php on line 75

    i have now removed all the files from thes module plus the google and bing verification files but no change the errors are still being reproduced. please assist as i dont know what to do. thank you

    • Ian April 22, 2014 at 2:22 am ·

      hi, Looks like we are having the same error as well and totally at loss. (Fatal error: Class ‘Log’ not found in /home/heero24/public_html/index.php on line 83). I am still wondering on the issue as i gotten feedback from my customer that the website is totally down. Hopefully someone would be kind enough to shed some light. Thank you.

    • Qahar April 23, 2014 at 1:15 am ·

      Possibly line that call library/log.php at system/startup.php is missiong or the system/library/log.php is corrupt

      Check system/startup/php and make sure library/log.php is called and or reupload the system/library/log.php

      Hope that can help

  15. Gualdino March 15, 2014 at 9:57 am · Reply

    when registering clients, i get the below error, please assist:

    Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/content/64/11422464/html/system/library/mail.php on line 153Warning: fsockopen() [function.fsockopen]: unable to connect to smtpout.secureserver.net :25 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in /home/content/64/11422464/html/system/library/mail.php on line 153Notice: Error: php_network_getaddresses: getaddrinfo failed: Name or service not known (0) in /home/content/64/11422464/html/system/library/mail.php on line 156

  16. Mari March 9, 2014 at 10:39 pm · Reply

    Hi,

    I have a strange problem. In your post you wrote about “Product on the cart is self-cleared.” but my problem is that my products are self-added somehow in cart. Some customers complained about this problem when they saw that they have products in cart that they did not ordered. And today I saw in cart 2 products I did not add there. Did you heard about something similar? I really do not know how to solve this.

    Thank you very much for your time!

  17. Mulyadi Syafar February 17, 2014 at 3:42 am · Reply

    Admin mau nanya,,
    cara mengatasi masalah ini gimana ?

    Parse error: syntax error, unexpected end of file in /home/dkhatuli/public_html/catalog/language/english/shipping/jne.php on line 88

    • Mulyadi Syafar February 17, 2014 at 3:44 am ·

      Admin.
      how to fixed this Problemm? please

      Parse error: syntax error, unexpected end of file in /home/dkhatuli/public_html/catalog/language/english/shipping/jne.php on line 88

  18. syed January 11, 2014 at 5:44 am · Reply

    Hello i am using version 1.5.6 and i saw error log, this is what i have got

    Undefined index: order_id in /public_html/www.maycart.in/catalog/controller/payment/cod.php on line 20

    could you please guide me what error is this? at the same time ..i am not reciving order details on admin id, few weeks ago it was working fine for me…

    THanks

  19. naveen December 19, 2013 at 12:42 pm · Reply

    : Undefined variable: filter_name in C:\xampp\htdocs\bigshop\catalog\view\theme\bigshop\template\common\header.tpl on line 202

  20. Keyser December 14, 2013 at 11:04 pm · Reply

    i got the following issue Fatal error: Call to a member function get() on a non-object in

    After i made a search on the sytem files noticed as Qahar said system/library must be corrupted so I re-upload that folder and problem solved. Thanks Qahar !

  21. syed December 13, 2013 at 9:22 am · Reply

    please help me on my website..i am tired of fixing this bug.. please its urgent…. system/database/mysql.php on line 50

  22. Farah Islam December 5, 2013 at 2:41 am · Reply

    Salam Qahar,

    i have an issue “PHP Notice: Error: MySQL server has gone awayError No: 2006SELECT * FROM `oc_language` WHERE status = ’1′ in /home/stylewed/public_html/styleweddingsmy.com/system/database/mysql.php on line 50″

    I hope you can help me to fix it?

  23. Murenzo December 4, 2013 at 6:01 am · Reply

    Good day, i have been trying to move the header search form to the body content of the home page. i was able to move the search script from the header.tpl to the home.tpl, the search text box is showing, but the search button is not appearing, and the search functionality is not working when i press enter button. What am i not doing right, as i have been on this for a week now. Will appreciate if you can assist with this. Kind Regards

  24. Tushar November 27, 2013 at 5:32 am · Reply

    Unable to generate vqcache file for catalog/model/total/tax.php

    I am just trying to update taxname through vqcache.

    I have written following code

    but it is not creating cache for model/total/tax.php

    Please help me to solve above problem

    Regards,
    Tushar

  25. eko November 25, 2013 at 7:45 am · Reply

    Finally,

    session.save_path = /tmp;

    solved my problem. Thanks a lot.

    • eko November 25, 2013 at 8:03 am ·

      update:
      the problem remains. It was OK only for “old” image folder.

  26. ozcan October 29, 2013 at 8:44 pm · Reply

    Notice: unserialize(): Error at offset 63422 of 65535 bytes in /home/repphone/public_html/admin/index.php on line 47
    please help me hvad is mean ?

  27. Jeffrey Chen October 29, 2013 at 2:47 am · Reply

    I keep getting an error message on my website, and I dont know what triggered the error and not sure where to fix it. I hope someone will be able to help me to get rid of the problem. Thank you.

    below is the error message my smart phone.. sometimes xxxxxx, sometimes other letters in the same pattern.

    SyntaxError: JSON Parse error: unrecognized token ‘<' OK document.cookie=’xxxxxxx=fb6b29axxxxxxx_ffb6b29a;path=/’;window.location.herf=window.location.href’

    For Mac system, the error message is below:

    SyntaxError: Unable to parse JSON string OK document.cookie=’mmmmmmm=fb6b29axxxxxxx_ffb6b29a;path=/’;window.location.herf=window.location.href’

  28. Guzzyman October 23, 2013 at 9:07 pm · Reply

    I have this error after installing uploading opencart to a live server.

    Notice: unserialize() [function.unserialize]: Error at offset 1303 of 27425 bytes in /home/trumart3/public_html/index.php on line 67
    Warning: session_start() [function.session-start]: Cannot send session cookie – headers already sent by (output started at /home/trumart3/public_html/index.php:67) in /home/trumart3/public_html/system/library/session.php on line 11Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/trumart3/public_html/index.php:67) in /home/trumart3/public_html/system/library/session.php on line 11Warning: Cannot modify header information – headers already sent by (output started at /home/trumart3/public_html/index.php:67) in /home/trumart3/public_html/index.php on line 179Warning: Cannot modify header information – headers already sent by (output started at /home/trumart3/public_html/index.php:67) in /home/trumart3/public_html/system/library/currency.php on line 45

    Please how do I rectify it? The first error I suppose led to the occurence of the other errors in the code.

  29. Sunny October 23, 2013 at 9:09 am · Reply

    Fatal error: Call to undefined method ModelCatalogProduct::getProfiles() in /home/k3912878/public_html/catalog/controller/product/product.php on line 455

    • Sunny October 23, 2013 at 9:10 am ·

      How to fixed it? please help me

  30. Luis Fernando September 19, 2013 at 5:21 am · Reply

    Hi, i have opencart 1.5.6 with latest version of VQmod, I have duplicated the default theme folder and configured the store to use my new theme to modify it, the problem is that after chaning the theme in the server configuration it keeps using the default one, anyone with an idea of how to solve it?

    Regards

  31. Robert September 12, 2013 at 8:01 pm · Reply

    I am using opencart ver 1.5.6

    I get this error on guest checkout

    SyntaxError: JSON.parse: unexpected character

    OK

    Notice: Undefined index: email in /home/content/39/11744839/html/opencart/catalog/controller/checkout/guest.php on line 193Notice: Undefined index: email in /home/content/39/11744839/html/opencart/catalog/controller/checkout/guest.php on line 193Notice: Undefined index: telephone in /home/content/39/11744839/html/opencart/catalog/controller/checkout/guest.php on line 197{“error”:{“email”:”E-Mail Address does not appear to be valid!”,”telephone”:”Telephone must be between 3 and 32 characters!”}}

  32. chris September 2, 2013 at 1:03 pm · Reply

    I upgarded from 1.4 to 1.5 and my customer list is no longer showing, I can see there are multiple pages of customers but the list is not visible, any suggestions?

  33. Geekyard August 4, 2013 at 5:51 am · Reply

    I can’t change the default theme of Opencart. Can someone suggest a solution to fix this issue?

  34. Jackie July 30, 2013 at 3:26 am · Reply

    Can’t get to checkout page -
    Has anyone had an intermittent issue of not being able to progress from the cart to the checkout page?
    Pressing ‘checkout button’, just redirects back to the cart. Being logged in or not doesn’t matter, and the products don’t matter. I don’t see any patterns yet – the error seems random.

    In the forum I’ve seen others w/this issue but no solution. Some suggested ssl, the stock levels, if the javascript has loaded … I’m trying to put diagnostics in the controller code (cart.php and checkout.php) to print variables in the IF statements – but not working for me yet.

    I have SSL turned on in my cart. I have the SSL set in both config.php’s.
    Should the non-SSL lines (configuring HTTP) be removed from the config.php’s so it forces the SSL at all times?
    Probably the can’t get to checkout page issue is not about SSL, but I’m grasping at any info and found this post:

    “Re: Checkout Redirects to Cart with SSL turned on in 1.5.1.3
    Is your SSL : https://www.mywebsite.com
    and not just https://mywebsite.com?
    If the http base URL does not have www and the SSL has www, you face the issue.”

    I don’t know how the base URL is set on Opencart -
    Thanks for any information on this frustrating issue,

    • Jackie July 31, 2013 at 3:20 pm ·

      solved – it turned out that the server can’t handle the php.ini file that comes with OpenCart…
      both of them (in /admin as well)

    • Adalto August 30, 2013 at 10:43 pm ·

      Hi Jackie,

      I’m experiencing the same error on my website. I have the SSL certificate setup ok but, when I turn on SSL use, the checkout button makes the customer go back to the cart.

      How did you solve it ?

  35. farzad July 17, 2013 at 6:01 am · Reply

    ( ! ) Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\opencart\system\database\mysql.php on line 22
    Call Stack
    # Time Memory Function Location
    1 0.0006 720976 {main}( ) ..\index.php:0
    2 0.0112 1663832 Front->dispatch( ) ..\index.php:75
    3 0.0112 1663832 Front->execute( ) ..\front.php:29
    4 0.0121 1806600 call_user_func_array ( ) ..\front.php:42
    5 0.0121 1806840 ControllerStep3->index( ) ..\front.php:42
    6 0.0158 1852632 ModelInstall->mysql( ) ..\step_3.php:9
    7 29.9483 3392576 DB->query( ) ..\install.php:26
    8 29.9483 3392576 MySQL->query( ) ..\db.php:16
    i am getting this error can someone please solve my problem
    Thanks.

  36. Asif July 16, 2013 at 6:21 pm · Reply

    I am using the standard paypal payment method with my opencart website. When I go through the checkout process and get redirected to the PayPal website, I get to login and choose my payment source on the paypal site. However, when it starts processing, it just returns “Your session has timed out, please log in again.” and logs me out of Paypal.

    Any help would be appreciated.

  37. chikamiku July 15, 2013 at 3:28 am · Reply

    Notice: Error: Could not load model catalog/category! in /home/mydbname/public_html/vqmod/vqcache/vq2-system_engine_loader.php on line 39

    May I know how to solve this problem? I can not see the website at all.

    Thanks

    • Lucky Bhumkar April 3, 2014 at 3:01 pm ·

      @chikamiku Just reinstall VQMod. For this you can upload a zip archive to public_html folder (in Linux based hosting) and extract to same path (\public_html).

  38. http://www.onlinetvbg.org/diema-online- July 10, 2013 at 10:11 am · Reply

    WOW just what I was searching for. Came here by searching for soccer without borders

  39. ele July 8, 2013 at 1:09 pm · Reply

    gettin this error please helo

    Notice: Undefined variable: filter_name in /home/a6385168/public_html/chronic/catalog/view/theme/bigshop/template/common/header.tpl

  40. Opencart Developers July 5, 2013 at 9:06 am · Reply

    Thanks for the help – having a nightmare after a customer site got moved, and adding the info into index.php spat out exactly what the problem was, and it was due to the host not moving the database as well!!!!

    Cheeky!

    Thanks again!

  41. ollthai July 4, 2013 at 11:21 am · Reply

    Hi dear …. I’m getting this error ….. store/catalog/view/theme/default/template/common/header.tpl on line 57 … please could you help me thanks. Version 1.5.5.1
    Thanks for your help

  42. Rachma Rara June 27, 2013 at 2:17 pm · Reply

    Hi Qahar,

    Your tutorial is great. Many useful informations for me.
    Matur Nuwun :)

  43. ledstrip specialist June 27, 2013 at 1:45 am · Reply

    Hello,

    I get thru google to this weblog and there is a lot of info here, but i cant solve my problem.
    Product on the cart is self-cleared.
    http://www.slimmeledlamp.nl

    How can i fix this, it just started this week. What is the cause? I tried the solutions but it doesnt work for me

  44. Gus June 24, 2013 at 9:26 am · Reply

    Hey, Could you help me out with this issue: Every time I change to Spanish language I get a white space appear at the top of the website, however when in English, this space does not appear. Any idea? thanks in advance

  45. tohit June 17, 2013 at 1:23 pm · Reply

    how can i add phone number field in Log in form with data base validation in open cart…..?

  46. deepika June 5, 2013 at 11:03 am · Reply

    Warning: require(E:\xampp\htdocs\11840321610_mjrizo\opencart-1.5.5.1\upload/admin/view/template/) [function.require]: failed to open stream: Permission denied in E:\xampp\htdocs\11840321610_mjrizo\opencart-1.5.5.1\upload\system\engine\controller.php on line 62
    Fatal error: require() [function.require]: Failed opening required ‘E:\xampp\htdocs\11840321610_mjrizo\opencart-1.5.5.1\upload/admin/view/template/’ (include_path=’.;\xampp\php\pear\’) in E:\xampp\htdocs\11840321610_mjrizo\opencart-1.5.5.1\upload\system\engine\controller.php on line 62
    The error is encountered when a add an extra module.Please give a solution…

    • Rachma Rara June 27, 2013 at 6:40 pm ·

      Hi, I had same error problem as yours, but it solved now.
      I think there is missing file or database or something, bec when I done re-upload, it’s work.

      And you have to check config file carefully, make sure dir and database config are correct (especially dir path). After all, it should be ok.

      Goodluck and cheers :)

  47. OpenCart Themes May 21, 2013 at 3:27 am · Reply

    Thank you! Very useful. Bookmarked!

  48. manisha May 18, 2013 at 8:27 am · Reply

    getting this Duplicate entry ’81′ for key 1 error while import

  49. Jeff May 6, 2013 at 9:57 am · Reply

    Anyone have any idea what this error is and how to fix it? I get it about 100+ times a day.

    unlink(/system/cache/cache.nwa_osl.xxxxxxxxxx) [function.unlink]: No such file or directory in /system/library/cache.php on line 45

  50. Hafeez Muslim April 27, 2013 at 3:37 am · Reply

    Hi,

    For those people out there having problem logging in to admin because of this error message:

    Notice: Error: MySQL server has gone away
    Error No: 2006
    UPDATE oc_currency SET value = ’1.00000′, date_modified = ‘xxx’ WHERE code = ‘xx’ in /home/xxxxx/domains/xxxxxx/public_html/system/database/mysql.php on line 49

    The solution given by rph was very helpful to me though it might be a temporary one. Visit this link http://forum.opencart.com/viewtopic.php?f=19&t=48063&p=401199#p228414

    Cheers and have a nice day!

  51. satish April 16, 2013 at 7:37 am · Reply

    Hi,

    I am getting below two error again and again in my error log file of opencart ver 1.5.4

    2013-04-16 0:15:54 – PHP Notice: Error: MySQL server has gone awayError No: 2006SELECT * FROM language WHERE status = ’1′ in /home/content/17/10209417/html/system/database/mysql.php on line 49

    2013-04-16 0:19:03 – PHP Warning: unlink(/home/content/17/10209417/html/system/cache/cache.product.total.1.0.1.991aae47cfd3720ba3f382d1d63ca434.1366100343) [function.unlink]: No such file or directory in /home/content/17/10209417/html/system/library/cache.php on line 45

    Can you help me to resolve this ?

  52. Tebogo Mothiba April 12, 2013 at 7:50 pm · Reply

    I have the latest version of opencart and vqmod installed but I get the following error

    2013-04-12 17:49:53 – PHP Notice: Undefined variable: filter_name in /home/soundlou/public_html/catalog/view/theme/fancycart/template/common/header.tpl on line 75
    2013-04-12 17:49:59 – PHP Notice: Undefined variable: filter_name in /home/soundlou/public_html/catalog/view/theme/fancycart/template/common/header.tpl on line 75
    2013-04-12 17:50:00 – PHP Notice: Undefined variable: filter_name in /home/soundlou/public_html/catalog/view/theme/fancycart/template/common/header.tpl on line 75
    2013-04-12 17:50:07 – PHP Notice: Undefined variable: filter_name in /home/soundlou/public_html/catalog/view/theme/fancycart/template/common/header.tpl on line 75
    2013-04-12 17:50:15 – PHP Notice: Undefined variable: filter_name in /home/soundlou/public_html/catalog/view/theme/fancycart/template/common/header.tpl on line 75
    2013-04-12 17:50:39 – PHP Notice: Undefined variable: filter_name in /home/soundlou/public_html/catalog/view/theme/fancycart/template/common/header.tpl on line 75
    2013-04-12 17:51:25 – PHP Notice: Undefined index: company_id in /home/soundlou/public_html/catalog/controller/checkout/guest.php on line 269
    2013-04-12 17:51:25 – PHP Notice: Undefined index: tax_id in /home/soundlou/public_html/catalog/controller/checkout/guest.php on line 270
    2013-04-12 17:51:30 – PHP Notice: Undefined variable: filter_name in /home/soundlou/public_html/catalog/view/theme/fancycart/template/common/header.tpl on line 75

    • Glenda March 8, 2014 at 8:31 am ·

      Hi there, just turned into alert to your blog via Google, and found that it is rellay informative. I’m gonna watch out for brussels. I’ll appreciate in case you proceed this in future. A lot of other people will be benefited from your writing. Cheers!

  53. oakley daisy chain sunglasses black April 8, 2013 at 1:51 pm · Reply

    Because of its durability and versatility, PC is a strong material that can be found in everything from police shields and airplane windows to cell phones and CDs. PC lenses were first introduced in 1970 in the aerospace industry. Research has found many advantages that PC-coated shades have over the plain plastic lenses. It wasn’t until 1980 that treated lenses were available to the general public for sunglasses. This thermoplastic material not only offers the highest protection against the harmful rays from the sun, but it is also thin, lightweight and extra comfortable. oakley daisy chain sunglasses black http://www.sunglasses-soaho.org/oakley-daisy-chain-sunglasses-black-p-79.html

  54. sam April 8, 2013 at 6:10 am · Reply

    HI,

    I get the Error No: 1054 , when i want to edit the settings, or modify or add new products. I am all locked with my shop !

    They say i should run the upgrade script or rerun a request to database ?

    What is your oppinion about this ?

    Thank you.

    B.r

    Sam

  55. Raju April 2, 2013 at 8:05 am · Reply

    I want to add paytu payment getway plz tell me the process.

  56. ruchi agrawal March 29, 2013 at 9:16 am · Reply

    Hiiii Qahar,

    I like Your tutorial and it is helpful for me. Thanks for this. But buddy, I am facing the problem of loading the template and i didn’t find the proper solution in ur tutorial. Please will u tell me the solution. My error is on front page is :
    Notice: Error: Could not load template C:\xampp\htdocs\opencart/catalog/view/theme/yaprak/template/module/slideshow.tpl! in C:\xampp\htdocs\opencart\system\engine\controller.php on line 70. I am waiting in ur ans.

    Thanks,
    Ruchi Agrawal
    From India.

    • Qahar March 31, 2013 at 9:53 am ·

      catalog/view/theme/yaprak/template/module/slideshow.tpl is not available or it’s corrupted during upload. Try to reupload the file.

      If the template is not available in a custom OpenCart should find the template at default theme.

  57. Dave March 19, 2013 at 6:58 pm · Reply

    Can anyone help us!?! we have about 35 stores all running same products..

    I get this error about 100 times a day:

    PHP Notice: Error: MySQL server has gone away Error No: 2006 SELECT * FROM dspets2012language in /home/content/62/8956262/html/system/database/mysql.php on line 49

    Host has tried everything (they know) including switching our dns… They now say it’s in the coding/database and we need to find opencart support… can anyone here help!?!? Thanks…

    • Qahar March 19, 2013 at 10:25 pm ·

      Does that 35 stores is from one OpenCart setup?

      There is two possible reason of this: MySQL connection timed out or server dropped an incorrect -or to large- package.

      For fix it from server side on both cause, you can refer to this post: http://support.dropletz.com/content/how-fix-%E2%80%9Cmysql-server-has-gone-away%E2%80%9D-error-2006

      I think OpenCart need to be improved to check the connection before execute the query. I come up with this idea because OpenCart doesn’t have a reconnect to database if for any various reason the connection is timed out. As refference, we can use mysql_ping() to check the connection.

  58. Zahirul Islam Khan March 14, 2013 at 5:22 pm · Reply

    Hi,

    I am getting two error messages in my “error logs” from the admin panel of my website. And it is repeating hundred of times as follows :

    2013-03-13 6:57:05 – PHP Notice: Undefined variable: c_ads in /usr/local/hosting/shared/foot.php on line 5
    2013-03-13 6:57:05 – PHP Notice: Undefined variable: c_ads_code in /usr/local/hosting/shared/foot.php on line 6

    It is not creating any problem on my website. But why the error messages ?

    By the way, i have checked all the PHP coding of my website. There is nothing like ” c_ads_code in /usr/local/hosting/shared/foot.php”

    Besides, i have browsed several websites & forums to resolve the fact. They are saying it’s an advertising issues of hosting service providers. Only they can solve it by editing their PHP code.

  59. Michal February 22, 2013 at 7:24 pm · Reply

    Hi,

    i got this error only in IE:
    Warning: Cannot modify header information – headers already sent by (output started at /home/v/i/ftp_vipspardk/catalog/language/danish/danish.php:1) in /home/v/i/ftp_vipspardk/system/library/currency.php on line 45

    I tried to follow your guide, but i did not work for me, any idea of how to solve this ?

    /Michal
    Vipspar.dk

  60. Ega February 22, 2013 at 4:01 am · Reply

    May I ask, i have an issue regarding my OC. I’m actualy new to OC, so i really need your help.

    Everything was fine, but when i click on SYSTEM>SETTING>EDIT>SAVE or CANCEL, the page “Invalid token session. Please login again.” appeared, and when i tried to login again, it diverted me to the admin homepage. I tried to go to SYSTEM>SETTING>EDIT>SAVE or CANCEL again, but the page is always to “Invalid token session. Please login again.” and i can’t edit my store.

    * I never change a file controller (setting.php) in the admin folder

    Thanks for all your help, and I’m looking forward for your positive response.
    Ega

  61. ali February 21, 2013 at 1:14 am · Reply

    ok i found that the parent category with this issue has 2 level subcategories where as the other parent categories (which are functioning well) have only one subcategory each. i think that should hint to the issue but i can’t seem to figure it out for now. kindly assist. thanks

  62. ali February 20, 2013 at 9:38 pm · Reply

    i need some assistance. on my site the subcategories links for one of the main category links are not functioning. when i click on them, them they direct back to the main category page. i dont know why

    • ali February 21, 2013 at 1:12 am ·

      ok i found that the parent category with this issue has 2 level subcategories where as the other parent categories (which are functioning well) have only one subcategory each. i think that should hint to the issue but i can’t seem to figure it out for now. kindly assist. thanks

  63. Alex Onyia February 16, 2013 at 9:49 pm · Reply

    Thanks for the post. Please i recently changed my opencart theme. What i noticed is that it’s only the home page that opens in the front end and no other page opens. It doesn’t even show any error. Please what could possibly be the problem?

  64. gourav February 14, 2013 at 8:55 am · Reply

    Hi , my customer not getting order email i am using OC v1.5.1.3

    • Robben August 3, 2013 at 4:24 pm ·

      Same problem here. Email notifications to shop admin its ok but not to customers.

  65. venkatesh February 9, 2013 at 2:10 pm · Reply

    i have integrated with opencart source code but admin page nice working but user page this error will be display.

    Error: Could not load template catalog/view/theme/default/template/module/sidebarslideshow.tpl!

    kindly reply me the error how to clear it..

    thanks in advance..,

    • aftab April 5, 2014 at 8:49 am ·

      catalog/view/theme/yaprak/template/module/sidebarslideshow.tpl is not available or it’s corrupted during upload. Try to reupload the file.
      If the template is not available in a custom OpenCart should find the template at default theme.

  66. Appaji Ambarisha Darbha February 4, 2013 at 6:30 pm · Reply

    Hi Qahar,

    Thanks for the great support you are providing to all of us. I am getting error when I complete my payment transaction and returning back to my site:

    Call to a member function get Layout() on a non-object in /catalog/controller/common/header.php on line 239
    What could be the problem? This header.php was provided by Template I purchased from Template Monster. I made a complaint at their support desk but haven’t received any reply yet (two days already). Can you help me sorting this out? Thanks in advance..

    • Qahar February 6, 2013 at 8:19 am ·

      I suggest you to wait for Template Monster support. It’s hard to suggest because the error can possibly anything, furthermore my header controller is only 144 lines.

  67. satya February 4, 2013 at 3:28 pm · Reply

    Hi Qahar,

    I want to send SMS to customer when they register on site. Hence i have added a code that sends cURL request with some parameters to SMS server.

    I have added this code in Model > customer.php file >addcustomer() method and just before the line used to send email to admin.

    When i try to register, it adds customer,send mail and sms to customer and send mail to admin but instead of success message , it shows the errors on screen as

    Notice: Use of undefined constant username – assumed ‘username’ in /home/content/17/10209417/html/catalog/model/account/customer.php on line 52Notice: Use of undefined constant password – assumed ‘password’ in /home/content/17/10209417/html/catalog/model/account/customer.php on line 53Notice: Use of undefined constant to – assumed ‘to’ in /home/content/17/10209417/html/catalog/model/account/customer.php on line 54Notice: Use of undefined constant sender – assumed ‘sender’ in /home/content/17/10209417/html/catalog/model/account/customer.php on line 55Notice: Use of undefined constant message – assumed ‘message’ in /home/content/17/10209417/html/catalog/model/account/customer.php on line 56Message GID=228334610 ID=228334610-1(SUBMITED)Warning: Cannot modify header information – headers already sent by (output started at /home/content/17/10209417/html/index.php:103) in /home/content/17/10209417/html/vqmod/vqcache/vq2-system_engine_controller.php on line 28Warning: Cannot modify header information – headers already sent by (output started at /home/content/17/10209417/html/index.php:103) in /home/content/17/10209417/html/vqmod/vqcache/vq2-system_engine_controller.php on line 29

    Below is the code i have used.

    try
    {
    $curl = curl_init();
    // Set some options –
    curl_setopt_array($curl, array(
    CURLOPT_URL => ‘http://xyz.com/sms.php’,
    CURLOPT_POST => 1,
    CURLOPT_POSTFIELDS => array(
    username => ‘XXXX’,
    password => ‘XXXX’,
    to =>$data['telephone'],
    sender=> ‘XXXX’,
    message => ‘Hello’
    )
    ));
    // Send the request & save response to $resp
    $resp = curl_exec($curl);

    }catch( Exception $e)
    {
    //no error message
    }
    // Close request to clear up some resources
    curl_close($curl);

    As given in instruction, i have saved customer.php file in UTF8 without BOM and and there is no white space also. VQmod cache has writable permission set.

    Please help me on this

  68. Deepak February 2, 2013 at 4:03 am · Reply

    I HAVE PROBLEM IN SETTING OPTIONS OF ADMIN MENU . Whenever i try to save some setting the session is destroyed and tok me back to login page

    • Ega February 22, 2013 at 4:07 am ·

      same problem with me. :(

  69. Van83 January 31, 2013 at 10:15 am · Reply

    Hi all, i have a strange problem on my opencart site. I don’t know why, but only in my account -> download page, it seem that the system try to load the not_found.tpl template, but the page exist.

    If i’m going to index.php?route=account/download i get this error:

    Notice: Undefined variable: text_error_tit in /home/catalog/view/theme/csid/template/error/not_found.tpl on line 5

    Notice: Undefined variable: text_error_txt in /home/catalog/view/theme/csid/template/error/not_found.tpl on line 6

    Notice: Undefined variable: text_error_button in /home/catalog/view/theme/csid/template/error/not_found.tpl on line 7

    Only in this page.

    Do you know why ??

    • Qahar February 2, 2013 at 5:57 pm ·

      What OpenCart version you use?
      The reason download page is load not_found because user not “buy” downloadable products. It should show a message instead of throw an error.

      Check your catalog/controller/account/download.php or vQmod file related to it. Compare it with default OpenCart file.

    • Van83 February 7, 2013 at 2:47 pm ·

      Thanks Qahar!!!

      i found that if the multimedia order i s complete, i can see the regular download page with bought element, but the problem remain if a user havent buy any multimedia item.

      I tried to see the file you wrote, but it is the same as the default theme, and the same in another installation i made to verify the file.

      Version is: 1.5.3

    • Qahar February 8, 2013 at 7:04 am ·

      Compare template/error/not_found.tpl of OpenCart 1.5.3 default theme and your theme.
      There is no text_error_txt in OpenCart 1.5.3 default theme. So most possibly your theme is the error cause.

  70. salih January 30, 2013 at 12:29 pm · Reply

    hello,
    When I went to my product categories product also seems to appear in the product. please help me.

  71. frank don January 25, 2013 at 3:43 pm · Reply

    Hello i need help i cant login to my opencart admin panel the password and the username is correct. but the login but is inactive getitnw.com/admin.

    any help pliz..

  72. Tom January 21, 2013 at 9:39 pm · Reply

    Hello , I have problem with categories , I add in total 5 categories and everything is ok , but when I try to add one more ( 6th ) categories I recived notification “The required data are not write Please check fields for data entry!” but I write everything same ( just write order of categories different ) . Can you help me please . Thanks in advanced

    • Tom January 21, 2013 at 9:46 pm ·

      iI resolve the problem :) I need write name in all of language :) Sorry for post ;)

  73. Matt January 21, 2013 at 12:35 pm · Reply

    Warning: require_once(./vqmod/vqmod.php) [function.require-once]: failed to open stream: No such file or directory in /websites/123reg/LinuxPackage22/gr/av/el/gravelandcompost.co.uk/public_html/babyplants/index.php on line 15

    Fatal error: require_once() [function.require]: Failed opening required ‘./vqmod/vqmod.php’ (include_path=’.:/usr/local/php52/share/pear:/usr/local/php52/share/php’) in /websites/123reg/LinuxPackage22/gr/av/el/gravelandcompost.co.uk/public_html/babyplants/index.php on line 15

    I have no idea what I could’ve changed to result in this. Any help appreciated!

    • Matt January 21, 2013 at 12:43 pm ·

      Just check FTP, looks like my entire vqmod folder has vanished of the face of the server.
      Anyone ever had this strange issue before??

    • Qahar January 21, 2013 at 2:20 pm ·

      You should ask your host, that is strange issue.

  74. Siddiqui Noor January 15, 2013 at 6:48 am · Reply

    Your article is very useful. I have found many solution here.
    Please help me to get rid of the following problem in Opencart.

    mysql_real_escape_string() expects parameter 1 to be string, array given in /home/gmacom/public_html/test_server/style_and_deco/system/database/mysql.php on line 55Warning

    • Siddiqui Noor January 15, 2013 at 10:35 am ·

      I have found the where the problem was.

    • Tom February 3, 2014 at 3:13 pm ·

      How did you solve this problem?

  75. si doel January 5, 2013 at 10:51 am · Reply

    Not Found

    The requested URL /EMPING/EMPING-KOTAK was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    http://empingmelinjo.web.id>>>ga ada masalah
    kategori bermalasah
    solusi brow…?

  76. cesar December 31, 2012 at 5:32 am · Reply

    Parse error: syntax error, unexpected T_VARIABLE in /home/u510421132/public_html/catalog/language/spanish/common/header.php on line 2

    • Qahar December 31, 2012 at 3:56 pm ·

      T_VARIABLE declaration is usually an unclosed command i.e. ‘{‘, ‘;’ etc
      Since your error source is language file, most possibly the cause is the semicolon is missing at the end of the line.

  77. Saad December 24, 2012 at 8:44 pm · Reply

    Hi, my error is kind of different..

    Notice: unserialize() [function.unserialize]: Error at offset 60311 of 65535 bytes in /home/content/08/10230308/html/admin/index.php on line 45
    Notice: Use of undefined constant � – assumed ‘�’ in /home/content/08/10230308/html/system/library/session.php on line 11Notice: Use of undefined constant tmp� – assumed ‘tmp�’ in /home/content/08/10230308/html/system/library/session.php on line 11Warning: Division by zero in /home/content/08/10230308/html/system/library/session.php on line 11Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/content/08/10230308/html/admin/index.php:45) in /home/content/08/10230308/html/system/library/session.php on line 12

    I did change the php.ini and library/session.php file.

    Doesnt help

    http://www.techtronicsdubai.com/admin

    here is the error

  78. ben December 19, 2012 at 10:15 pm · Reply

    hi Qahar,

    can please direct me where to edit file to sort out my issue. the text on product description is showing huge margin on left. also, if i enable review, margin will become much bigger. please see link to describe issue:
    http://indexoflondon.co.uk/index.php?route=product/product&path=59&product_id=42

    i want the text to be same as the default. text to be in line with the description title. i may deleted items on file probably by accident that i didn’t notice that’s why it came to this. appreciate your help.

  79. Don December 12, 2012 at 6:49 pm · Reply

    Ass.. mas qahar

    Saya mau tanya nih kalau mau klik kategory produk kok error ya ? tulisannya muncul kaya gini Fatal error: Call to undefined method ModelCatalogProduct::getProductTags() in /home/dshoponl/public_html/catalog/controller/product/product.php on line 347
    mohon bantuannya mas, makasih

    maaf pake bahsa negeri. :)

    • Sajid March 8, 2014 at 1:08 pm ·

      This post has helped me think things thgrouh

  80. Dei December 12, 2012 at 5:53 pm · Reply

    I have error opencart 1.5.1.3 , from website client, kang qahar. this problem about email . i cant received email order via admin email or customer email . but for customer email sometimes , order email received . i don’t know , what should i do. can you help me ? thanks

  81. umer November 27, 2012 at 8:54 am · Reply

    Fatal error: Call to undefined method ModelCatalogProduct::getProductTags() in /home/sheezafa/public_html/catalog/controller/product/product.php on line 347

    I am getting above mentioned error in any template I used could you please help in this matter.

    • Qahar November 27, 2012 at 9:25 am ·

      Check does the theme is compatible with your OpenCart version. getProductTags() is deprecated on OpenCart v.1.5.4.1 due the change in database structure.

  82. Sam November 26, 2012 at 1:47 pm · Reply

    You are truly awesome man I wasted my more than an hour in sloving this issue of “Cannot modify header information – headers already sent” but after reading your solution i did it in just one min thanks alot man.. and Keep it up! GOD BLESS YOU :)

  83. Fabianna@thelogoboutique.com November 23, 2012 at 4:33 pm · Reply

    I am trying to install googlecheckout into a client’s site and when I click on install it says error_permission – and the user name and password id the only information client has. can you think of what would be a solution for this?

  84. vinod November 21, 2012 at 4:10 am · Reply

    hi
    i installed blanco theme .the undefined error will come
    thanks

  85. Star November 3, 2012 at 5:18 am · Reply

    hi Qahar, is it possible to delete the opencart default them from the server? i downlaided a theme but the default slide show stays there so i want to delete the default theme completely. do you think this is a good idea?

    thanks

    • Qahar November 4, 2012 at 1:14 pm ·

      Default theme used as fallback in OpenCart, so modificate or delete it is a bad idea if you aware of upgrade process in the future.

  86. Geir November 1, 2012 at 11:30 am · Reply

    Hi,
    after reuploading database, I get the error:
    Fatal error: Call to a member function get() on a non-object in /home/3/b/xxxx/www/index.php on line 103
    Can you please help me on this one?
    Regards
    Geir

    • Qahar November 1, 2012 at 12:19 pm ·

      Most likely the cause is one or more of your library files are corrupt during upload. Try to reupload your system/library/ folder to solve the issue.

    • Gangsar Swa Purba November 1, 2012 at 2:47 pm ·

      Hi Geir,

      What does your mean with reuploading database ?

      I think you should check your database again.

    • Geir November 1, 2012 at 3:32 pm ·

      Hi again,
      Tried uploading system/library/folder now from my Opencart backup from 22. oct. No change.
      Empty cache in system/ and vqmod/
      Database was reuploaded from backup made day before changes that messed up the base, and lead to my reupload.
      All export / import made with My SQL Workbench. Also have a backup made with tools from my hosts webpanel. Had no error messages about the upload.

      Really appreciate your help :-)
      Regards.
      Geir

  87. way October 29, 2012 at 8:22 pm · Reply

    hey mate i have an error

    Notice: Undefined variable: entry_parent in /var/www/vhosts/domain.com/httpdocs/store/admin/view/template/catalog/category_form.tpl on line 54

    How can i fix this?

    Kind regards

    • Qahar October 31, 2012 at 7:33 am ·

      entry_parent is defined by default at admin/controller/catalog/category.php and the error appear because it’s missing in the controller.

      I suggest you to compare your controller with unmodified OpenCart versions

    • Bruce November 4, 2012 at 3:05 am ·

      I am getting the same error.:
      Notice: Undefined variable: entry_parent in /var/www/html/admin/view/template/catalog/category_form.tpl on line 54

      and inside the field:
      Notice: Undefined variable: parent in /var/www/html/admin/view/template/catalog/category_form.tpl on line 55

      I checked and my file size is: 20218 – which seems to be just the right size for opencart 1.5.4

      Could this be a bug?

    • Qahar November 4, 2012 at 1:10 pm ·

      Bruce, compare the content not the size.

    • Bruce November 4, 2012 at 4:37 pm ·

      Qahar, thanks for weighing in. I did a fresh install and still see the same.

    • Bruce November 5, 2012 at 2:28 pm ·

      Seems like I was checking out the “unreleased” version from Github, v1.5.5 while on opencart.com it’s v1.5.4 that is the release. You would think github would have the stable version but it seems not. Thanks

  88. Mark October 29, 2012 at 12:51 am · Reply

    This page has the most useful information on Opencart errors that I could find anywhere. I have actually reffered this page to my hosting company to try & resolve the issues.

  89. amit October 13, 2012 at 2:28 pm · Reply

    i am surely going to bookmark this on and will surely share this with all my friends.

  90. Maghda October 6, 2012 at 4:05 pm · Reply

    I have an issue: PHP Fatal error: Call to undefined function mcrypt_create_iv() in /system/library/encryption.php on line 8

    Any ideas how to solve it?

    • Qahar October 6, 2012 at 6:22 pm ·

      Your error is related to PHP built-in function: mcrypt. Ask your Hosting company to install mcrypt extension to solve this issue.

  91. Alex September 21, 2012 at 9:52 am · Reply

    Thank a lot, this tutorial save my live! Bookmark this for future refference.
    p.s. Loved your article at OpenCart forum and hope you bring another cool article here.

Trackbacks for this post

  1. Headers already sent again error | Open Cart Know How
  2. Recieving errors in logs | Open Cart Know How

Leave a Comment

comm comm comm