• 40

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191


File: /var/www/html/cnasolution/site/application/views/question.php
Line: 191
Function: _error_handler

File: /var/www/html/cnasolution/site/application/controllers/Questions.php
Line: 419
Function: view

File: /var/www/html/cnasolution/site/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

OpenCart order not executed 503

I have several sites in OpenCart. One main, and the rest created manually. Those that are created manually give an error when ordering and order_id is zero. I created them this way: by import of an already created site and its directory files (../system/storage). Please tell me how to fix this error.

enter image description here enter image description here

Download script demo [LINK] [Origin]
Download script demo [LINK 2] [Onedrive] Download script demo [LINK 2] [Google drive]

/system/storage is a storage folder with temporary files.

Folders /system/storage/cache and /system/storage/modification should be cleared inside after you creating a copy (only empty index.html should exist there). The files in these folders system will create by itself.

If you are creating a copy - cope the root folder with admin, catalog etc, and all files in it (.htaccess, index.php, config.php etc.). Copy database. Then change 2 config.php (in root directory and admin). Clear cache and modification in /system/storage. Everything should work fine.

About a last screenshot - go to phpMyAdmin and make sure that column is set to auto increment and the other settings are correct.

see demo
  • 26
Reply Report