Post by Cyto » Mon Oct 20, 2014 5:00 pm

Hello,

When I want to approve a (new) registered customer. I am being redirected to the admin login page with a error saying:
Invalid token session. Please login again.

Ofcourse I logged in again and tried to approve, still being redirected. Strange part when I go back, I'm logged in.

Approve button html code:
href attribute is empty (I don't know if it supposed to be empty.)

Code: Select all

<a href="" data-toggle="tooltip" title="" class="btn btn-success" data-original-title="Approve"><i class="fa fa-thumbs-o-up"></i></a>
Another error I keep getting everywhere on the front, error:

Code: Select all

Warning: array_key_exists(): The first argument should be either a string or an integer in /var/www/vlm/data/www/oc.vlmproject.nl/index.php on line 158
Register_globals are on probably this is the cause of it, but php.ini of opencart doesn't seem to work. How else can I turn register globals off if this is cause of the error above?

Plus I'm getting John Doe as my administrator name, bug?

Newbie

Posts

Joined
Fri Oct 17, 2014 8:30 pm

Post by marmax » Mon Oct 20, 2014 9:34 pm

Plus I'm getting John Doe as my administrator name, bug?
Least important on your list probably, but I know only how to fix this. Just go to your admin profile and fill in names. John Doe seems to be default values.

New member

Posts

Joined
Fri Oct 10, 2014 4:34 am

Post by Cyto » Mon Oct 20, 2014 9:49 pm

True and dumb of me thx ;D
Hopefully someone has answers to my other questions.

Newbie

Posts

Joined
Fri Oct 17, 2014 8:30 pm

Post by Nesster » Tue Oct 21, 2014 10:54 pm

When I want to approve a (new) registered customer. I am being redirected to the admin login page with a error saying:
Invalid token session. Please login again.
Same here. Keep us posted if you find anything.

Newbie

Posts

Joined
Tue Oct 21, 2014 8:09 am

Post by Cyto » Tue Nov 04, 2014 10:59 pm

Still can't approve customers with updated version @ Github, has anyone able to solve it?

Newbie

Posts

Joined
Fri Oct 17, 2014 8:30 pm

Post by OSWorX » Wed Nov 05, 2014 12:04 am

Did not checked the code, but guess the links are with & instead only &

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by Cyto » Wed Nov 12, 2014 12:22 am

Me again. Perhaps a update; approve button is disabled.
Button code:

Code: Select all

<button type="button" class="btn btn-success" disabled=""><i class="fa fa-thumbs-o-up"></i></button>
Has no one this problem?

Newbie

Posts

Joined
Fri Oct 17, 2014 8:30 pm

Post by cwswebdesign » Wed Nov 12, 2014 12:21 pm

Cyto wrote:Me again. Perhaps a update; approve button is disabled.
Button code:

Code: Select all

<button type="button" class="btn btn-success" disabled=""><i class="fa fa-thumbs-o-up"></i></button>
Has no one this problem?
I have a similar problem but not with the token issue included. I've been manually adding some customers and even though I say they're approved when I add them, they still show up as not approved.

DL

This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.

Thanks!


User avatar
Active Member

Posts

Joined
Sun Dec 11, 2011 12:26 am
Location - USA

Post by Cyto » Wed Nov 12, 2014 5:11 pm

Hm, this is indeed weird.

I don't get the "token issue" anymore either. Maybe it's being solved @ Github.

Newbie

Posts

Joined
Fri Oct 17, 2014 8:30 pm

Post by cwswebdesign » Wed Nov 12, 2014 11:44 pm

Cyto wrote:Hm, this is indeed weird.

I don't get the "token issue" anymore either. Maybe it's being solved @ Github.
Glad I'm not the only one. What happened when you changed the line of code mentioned earlier from disabled to enabled?

DL

This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.

Thanks!


User avatar
Active Member

Posts

Joined
Sun Dec 11, 2011 12:26 am
Location - USA

Post by Cyto » Wed Nov 12, 2014 11:52 pm

cwswebdesign wrote:
Cyto wrote:Hm, this is indeed weird.

I don't get the "token issue" anymore either. Maybe it's being solved @ Github.
Glad I'm not the only one. What happened when you changed the line of code mentioned earlier from disabled to enabled?

DL
I didn't change the structure of the approve button. Nothing happens when I remove "disabled" attribute. Only that it's clickable.
Something is missing which makes the button not function properly.

Newbie

Posts

Joined
Fri Oct 17, 2014 8:30 pm

Post by Nesster » Thu Nov 13, 2014 10:04 pm

Have a look in admin/view/sales/customer_list.tpl (i'm going from memory here, the path could be a little different). There's a condition to show the button, it's something like

Code: Select all

if $data('approve')
I changed it to

Code: Select all

if $data('approve') != ''
Works for me now.

Newbie

Posts

Joined
Tue Oct 21, 2014 8:09 am

Post by cwswebdesign » Thu Nov 13, 2014 11:38 pm

I just submitted this on Github.

This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.

Thanks!


User avatar
Active Member

Posts

Joined
Sun Dec 11, 2011 12:26 am
Location - USA

Post by Cyto » Mon Nov 17, 2014 6:19 pm

I can approve users now with the new githubs version.
How to set this topic solved?

Newbie

Posts

Joined
Fri Oct 17, 2014 8:30 pm

Post by OSWorX » Mon Nov 17, 2014 6:26 pm

Cyto wrote:I can approve users now with the new githubs version.
How to set this topic solved?
Just edit the titel in your first post.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria
Who is online

Users browsing this forum: No registered users and 11 guests