I am getting error when i am trying to edit order status / history --
PHP Notice: Undefined variable: json in /home/arrockr1/public_html/admin/controller/sale/order.php on line 2490
And also when i trying to edit order status in Total save button is not working.
Please give me a solution.
PHP Notice: Undefined variable: json in /home/arrockr1/public_html/admin/controller/sale/order.php on line 2490
And also when i trying to edit order status in Total save button is not working.
Please give me a solution.
You find this text admin/controller/sale/order.php on line 2423:dev9457 wrote:I am getting error when i am trying to edit order status / history --
PHP Notice: Undefined variable: json in /home/arrockr1/public_html/admin/controller/sale/order.php on line 2490
And also when i trying to edit order status in Total save button is not working.
Please give me a solution.
Code: Select all
public function api() {
Code: Select all
public function api() {
$json = array();
I got the same error and i fixed it
go to Admin->System->users->Api
Add a new api generate password, and enable it
Then go to Admin->system->settings->Edit->Option(tab)
Select api user under Checkout section as your api user
Then save the changes
Then go to Sales->orders->edit
It will work fine :-)
go to Admin->System->users->Api
Add a new api generate password, and enable it
Then go to Admin->system->settings->Edit->Option(tab)
Select api user under Checkout section as your api user
Then save the changes
Then go to Sales->orders->edit
It will work fine :-)
Opencart Quick checkout
View All modules
Any opencart issue contact me at support@opencartextensions.in
Thank you
I did this but still it didnt work can anyone help its annoying it has been two whole night i havent slept plssssssssssssashwani_multi wrote:I got the same error and i fixed it
go to Admin->System->users->Api
Add a new api generate password, and enable it
Then go to Admin->system->settings->Edit->Option(tab)
Select api user under Checkout section as your api user
Then save the changes
Then go to Sales->orders->edit
It will work fine :-)
I had the same problem as OP but none of the steps listed helped. I tried resetting the API password, reassigning the API user etc etc and didn't have any joy.
I also tried the code mods that were suggested in other threads ... no luck.
Then, when I thought things couldn't get any worse, I discovered I couldn't delete orders either. FFS!
Then I read somewhere that the OC admin module uses curl to send requests to the other parts of OC using http. Then I remembered that I had set a Basic AuthType in my .htaccess while I was still building the site (didn't want outsiders or bots indexing my junk data!)
I removed the Auth stuff from my .htaccess and now my order operations in admin all work properly.
So, if you also have these problems, check that your infrastructure allows your admin module to access your main OC site. In my case it was .htaccess but you may have some firewall restriction or a network restriction placed by your ISP or server provider.
Good luck.
McPop.
I also tried the code mods that were suggested in other threads ... no luck.
Then, when I thought things couldn't get any worse, I discovered I couldn't delete orders either. FFS!
Then I read somewhere that the OC admin module uses curl to send requests to the other parts of OC using http. Then I remembered that I had set a Basic AuthType in my .htaccess while I was still building the site (didn't want outsiders or bots indexing my junk data!)
I removed the Auth stuff from my .htaccess and now my order operations in admin all work properly.
So, if you also have these problems, check that your infrastructure allows your admin module to access your main OC site. In my case it was .htaccess but you may have some firewall restriction or a network restriction placed by your ISP or server provider.
Good luck.
McPop.
mcpop wrote:I had the same problem as OP but none of the steps listed helped. I tried resetting the API password, reassigning the API user etc etc and didn't have any joy.
I also tried the code mods that were suggested in other threads ... no luck.
Then, when I thought things couldn't get any worse, I discovered I couldn't delete orders either. FFS!
Then I read somewhere that the OC admin module uses curl to send requests to the other parts of OC using http. Then I remembered that I had set a Basic AuthType in my .htaccess while I was still building the site (didn't want outsiders or bots indexing my junk data!)
I removed the Auth stuff from my .htaccess and now my order operations in admin all work properly.
So, if you also have these problems, check that your infrastructure allows your admin module to access your main OC site. In my case it was .htaccess but you may have some firewall restriction or a network restriction placed by your ISP or server provider.
Good luck.
McPop.
Mmm, i check this but i not have .htaccess file in admin folder how i can check this ?
Can you be specific? What is 'Auth stuff'. I am getting the same error msg:I removed the Auth stuff from my .htaccess and now my order operations in admin all work properly.
SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
Searching this forum I am coming with answers that are all over the map, from generating a new api
to
removing 'auth stuff' from htaccess file (see above) to making sure mantenance mode is off, to changing HTTPS to HTTP in admin/config.php and config.php, etc.
Searching for 'opencart SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data OK' comes up with tons of people posting about having this problem, but very little in the way of an answer.
Is this an unresolved issue with Opencart? Or is there an official solution to this?
Code: Select all
http://stackoverflow.com/questions/27732677/opencart-2-0-0-syntaxerror-json-parse-unexpected-end-of-data-at-line-1-colu
removing 'auth stuff' from htaccess file (see above) to making sure mantenance mode is off, to changing HTTPS to HTTP in admin/config.php and config.php, etc.
Searching for 'opencart SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data OK' comes up with tons of people posting about having this problem, but very little in the way of an answer.
Is this an unresolved issue with Opencart? Or is there an official solution to this?
This is a bug.
I have tried :
-Maintaince mode on and off
-Created new APIs via the Admin and through phpMyAdmin
-Edited admin/controller/sale/order.php by adding after public function api() { $json = array();
-Fresh install
-PHP and cURL enabled on server
-SSL enabled on server
This is soo annoying that it is not address and not fixed. OpenCart is loosing my respect day and day and I am always actively promoting it. I might have to go the Magento bloated route..
Even the damn site documentation and downloading the latest release has a zip file that talks about upgrading 1.4 to 1.5 and nothing about 1.5 to 2.0 or anything about 2.0 upgrades - even on the website. It is so poor and embarassing.. To much brown sniffing and licking ass of the Leeds agency; welford media opencart
I have tried :
-Maintaince mode on and off
-Created new APIs via the Admin and through phpMyAdmin
-Edited admin/controller/sale/order.php by adding after public function api() { $json = array();
-Fresh install
-PHP and cURL enabled on server
-SSL enabled on server
This is soo annoying that it is not address and not fixed. OpenCart is loosing my respect day and day and I am always actively promoting it. I might have to go the Magento bloated route..
Even the damn site documentation and downloading the latest release has a zip file that talks about upgrading 1.4 to 1.5 and nothing about 1.5 to 2.0 or anything about 2.0 upgrades - even on the website. It is so poor and embarassing.. To much brown sniffing and licking ass of the Leeds agency; welford media opencart
Hellow everyone,
I got this error after installing a product configuration extension:
Fatal error: Cannot redeclare ModelCatalogProduct::editProductFee() in /home1/casys123/public_html/system/modification/admin/model/catalog/product.php on line 352
Please let me knwo how to fix it...Thanks
I got this error after installing a product configuration extension:
Fatal error: Cannot redeclare ModelCatalogProduct::editProductFee() in /home1/casys123/public_html/system/modification/admin/model/catalog/product.php on line 352
Please let me knwo how to fix it...Thanks
Hi , BEEN Annoyed with the issue for a while. But solved it with the replies in this thread itself.
First You have to create the api user with the smae name and password as the original user you logged it. Can be done through
system-> settings ->edit -> options -> select user you created with same as the store owner
Then Edit the code in order.php with assignment as in above thread.
By doing both the above my problem is fixed and i can delete as well as edit the orders
Hope this piece of info helps you all
First You have to create the api user with the smae name and password as the original user you logged it. Can be done through
system-> settings ->edit -> options -> select user you created with same as the store owner
Then Edit the code in order.php with assignment as in above thread.
By doing both the above my problem is fixed and i can delete as well as edit the orders
Hope this piece of info helps you all
Posted on another thread.. I found out that this was a CloudFlare related issue. As soon as I disabled CloudFlare DNS routing, the problem went away. This was also confirmed by other users, something in the way they resolve DNS does not sit well with cURL. I hope that this is reported as a bug (i'm not part of the github scene) and addressed. It's en easy test, enable DNS routing via ClouldFlare and the error pops, disable and its gone. Thanks.
I don't use CloudFare and I am still getting this issue.
In fact, CloudFare is an embarrassment of a CDN. We have Rackspace Cloud and Akamai and S3 systems. This forum and site uses CloudFare and you get an annoying DDos que message; very amateur.
In fact, CloudFare is an embarrassment of a CDN. We have Rackspace Cloud and Akamai and S3 systems. This forum and site uses CloudFare and you get an annoying DDos que message; very amateur.
"Undefined variable: json in admin/controller/sale/order.php on line 2490"
The error occurs when you edit an order or when you want to change the status of an order.
I tried solving methods mentioned above but do not have a positive outcome.
Is it a bug in version 2.0.2.0?
The error occurs when you edit an order or when you want to change the status of an order.
I tried solving methods mentioned above but do not have a positive outcome.
Is it a bug in version 2.0.2.0?
Who is online
Users browsing this forum: No registered users and 41 guests