Page 1 of 6

Editing orders dont work 2.0.1.1

Posted: Sun Dec 07, 2014 4:35 am
by spawacz_rider
Hi


I have just install new version of open cart 2.0.1.1
And i have similar problem to version 2.0.1.0

I can't edit orders when i press on Continue buton nothing is happening

But this time I don't have any pop-up with errors on Chrome and IE
but on Firefox i have SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
deleting order is not possibile as well
The php error log is clear from any faults.



Any idea?

I'm not php master I just have average level of html5 and css.
Please help

Re: Editing orders dont work 2.0.1.1

Posted: Sun Dec 07, 2014 10:07 pm
by spawacz_rider
No one have the same problem??

Re: Editing orders dont work 2.0.1.1

Posted: Sun Dec 07, 2014 10:29 pm
by JNeuhoff
spawacz_rider wrote:No one have the same problem??
Nope, it's just you :)

Use Firefox, works fine. Why is anybody using IE?

Re: Editing orders dont work 2.0.1.1

Posted: Sun Dec 07, 2014 11:30 pm
by lz1nud
spawacz_rider wrote:No one have the same problem??
It works fine for me too.

Re: Editing orders dont work 2.0.1.1

Posted: Mon Dec 08, 2014 2:39 am
by spawacz_rider
Use Firefox
Im having error with Firefox Chrome and IE

Re: Editing orders dont work 2.0.1.1

Posted: Mon Dec 08, 2014 2:59 am
by pm-netti
spawacz_rider wrote:Hi


I have just install new version of open cart 2.0.1.1
And i have similar problem to version 2.0.1.0

I can't edit orders when i press on Continue buton nothing is happening

But this time I don't have any pop-up with errors on Chrome and IE
but on Firefox i have SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
deleting order is not possibile as well
The php error log is clear from any faults.



Any idea?

I'm not php master I just have average level of html5 and css.
Please help
Have you created an API user (if you only updated files)?

Re: Editing orders dont work 2.0.1.1

Posted: Mon Dec 08, 2014 5:36 am
by spawacz_rider
yes i have API set

i did not update anything is clean install on FTP server

I have same problem since 2.0.0.0 v

Re: Editing orders dont work 2.0.1.1

Posted: Tue Dec 09, 2014 2:05 am
by gob33
All these JSON errors you see there came from API and Curl. Curl returns in certains conditions an error message which breaks json data. Then parsing that data in ajax fails. In 1.5.6.4 html was returned, now it's json and many problems occurs because of the conception.

Re: Editing orders dont work 2.0.1.1

Posted: Tue Dec 09, 2014 2:24 am
by spawacz_rider
So what I need to do to fix this.
Like I said I'm not expert can somone point to me how I can fix it?

It looks like I only have this problem?

Re: Editing orders dont work 2.0.1.1

Posted: Tue Dec 09, 2014 2:54 am
by pm-netti
spawacz_rider wrote:So what I need to do to fix this.
Like I said I'm not expert can somone point to me how I can fix it?

It looks like I only have this problem?
And api_id is 1 in table api?

Re: Editing orders dont work 2.0.1.1

Posted: Tue Dec 09, 2014 3:24 am
by spawacz_rider
In api_id i have only one user and is maching the one from back end from OpenCart

I just set the same version of OC 2.0.1.1 on XAMPP on my pc and everything is runing fine.

So i just guess the problem is in my FTP provider
I'm using Hart Internet

Re: Editing orders dont work 2.0.1.1

Posted: Tue Dec 09, 2014 3:33 am
by pm-netti
spawacz_rider wrote:In api_id i have only one user and is maching the one from back end from OpenCart

I just set the same version of OC 2.0.1.1 on XAMPP on my pc and everything is runing fine.

So i just guess the problem is in my FTP provider
I'm using Hart Internet
Sorry, what is value in your database in table 'api', field 'api_id'?

Re: Editing orders dont work 2.0.1.1

Posted: Tue Dec 09, 2014 3:44 am
by spawacz_rider
Image

Re: Editing orders dont work 2.0.1.1

Posted: Tue Dec 09, 2014 3:54 am
by pm-netti
And API status is 'Enabled' ( in route user/api/edit ) ?
----
Ps. My test in route sale/order/edit:

Code: Select all

 Payment method required! 
Payment method is selected.

Re: Editing orders dont work 2.0.1.1

Posted: Tue Dec 09, 2014 4:45 am
by spawacz_rider
The API is enabled in back end of Open Cart do I need to enable this somewhere else?

What you mean payment method is required

Re: Editing orders dont work 2.0.1.1

Posted: Tue Dec 09, 2014 5:40 am
by pm-netti
spawacz_rider wrote:The API is enabled in back end of Open Cart do I need to enable this somewhere else?

What you mean payment method is required
That 'red' warning text show in order edit page.

Re: Editing orders dont work 2.0.1.1

Posted: Tue Dec 09, 2014 6:02 am
by huha
Hello.
I have the same problem.
On a fresh install i cannot modify orders or delete them.
When i install Open Cart i see in system=>settings=>default sore name => option=> API User that was empty.


From there i go to system => users=> api and create a user with a generated password.
After this i start configuring the store.

Now i`m trying to modify orders and i can not . I delete the API user , created another one with a generate password again and modify the api ID back to 1, logout , i create an order , the login to the admin user and still can not modify the orders.

The store is not on Maintenance Mode

On others installs there was a API user created by the install and i had no problems with editing orders. On one install , again i did not have an API user and i had the same problem with "SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data OK"

Anything else that could help me or you guys to figure out the problem ? How can i have a working API user again ?

Thank you.

Re: Editing orders dont work 2.0.1.1

Posted: Tue Dec 09, 2014 7:00 am
by spawacz_rider
pm-netti wrote:
spawacz_rider wrote:The API is enabled in back end of Open Cart do I need to enable this somewhere else?

What you mean payment method is required
That 'red' warning text show in order edit page.


There is no warning. only pop up from browser

SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data

OK

Re: Editing orders dont work 2.0.1.1

Posted: Tue Dec 09, 2014 7:09 am
by gob33
Dont try to debug JSON alerts. It is burried deep inside and is a conception problem.
How many people have already signaled SyntaxError: JSON.parse: unexpected end of data ... ?
Stop using 2.0, it is not reliable, wait until the situation becomes clear, and team get concious something wrong with curl and json.

Re: Editing orders dont work 2.0.1.1

Posted: Tue Dec 09, 2014 8:58 pm
by pm-netti
gob33 wrote:Dont try to debug JSON alerts. It is burried deep inside and is a conception problem.
How many people have already signaled SyntaxError: JSON.parse: unexpected end of data ... ?
Stop using 2.0, it is not reliable, wait until the situation becomes clear, and team get concious something wrong with curl and json.
Check, is it cURL in use your Server:
This can save to name 'wwwstorecom/curl.php' and check it:

Code: Select all

<?

// Script to test if the CURL extension is installed on this server

// Define function to test
function _is_curl_installed() {
    if  (in_array  ('curl', get_loaded_extensions())) {
        return true;
    }
    else {
        return false;
    }
}

// Ouput text to user based on test
if (_is_curl_installed()) {
  echo "cURL is <span style=\"color:blue\">installed</span> on this server";
} else {
  echo "cURL is NOT <span style=\"color:red\">installed</span> on this server";
}
?>