modules basket + sidebar

45 views
Skip to first unread message

John Kanaka

unread,
Oct 31, 2021, 4:14:07 AM10/31/21
to Gallery 3 Users
Hello, does anyone have any idea why the purchasing modules basket smashes the whole sidebar ?
When I am logged in as admin, everything is fine.
Thank you for any suggestions, best regards 
www.jpg

John Kanaka

unread,
Nov 1, 2021, 3:41:06 AM11/1/21
to Gallery 3 Users
I found:

logs --- error: Error [ 0 ]: Object of class User_Model could not be converted to string

---------------------------------------------------------------------------

  static public function can_view_orders()

  {
   
  if (identity::active_user()->admin){
   
   return true;
 
   }

  

  print identity::active_user();
 
  foreach (identity::active_user()->groups() as $group){
    
  if ($group->name == 'shop'){
     
  return true;
  
    }
  
  }

   
 return false;

  }

--------------------------------------------------------------------------
How can I modify this record?

------------------------------------------------
  if (identity::active_user()->admin){
 
------------------------------------------------

Thank you.

Jeroen ten Kate

unread,
Nov 1, 2021, 4:37:04 AM11/1/21
to gallery...@googlegroups.com
Try BasketPlus instead. Much more functionality.

Regards, Jeroen 

--
WHEN USING AN EMAIL PROGRAM to reply to this message, click REPLY TO LIST or REPLY TO ALL so your reply goes out to everyone in the group. If you click REPLY or REPLY TO SENDER Google will *only* send your reply to the original author (not recommended).
 
To post a NEW MESSAGE to the group, send an new email to:
gallery...@googlegroups.com
 
To view or sign in to this group on the web, use this URL:
https://groups.google.com/forum/#!forum/gallery-3-users
---
You received this message because you are subscribed to the Google Groups "Gallery 3 Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gallery-3-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gallery-3-users/66998522-5be0-4757-b538-061a6c97de94n%40googlegroups.com.

John Kanaka

unread,
Nov 1, 2021, 5:35:51 AM11/1/21
to Gallery 3 Users
Unfortunately, it's the same:

error: Error [ 0 ]: Object of class User_Model could not be converted to string

Regards

Jeroen ten Kate

unread,
Nov 1, 2021, 6:10:42 AM11/1/21
to gallery...@googlegroups.com
Hi, 

My guess is that it expects a user within a group. Did you set up a group and assign the user to it? If 
not, try that. 
Jeroen

John Kanaka

unread,
Nov 10, 2021, 6:07:38 AM11/10/21
to Gallery 3 Users
Hello, 
after changing the PHP version on the server from 7.4. to 7.3.32, everything works perfectly.

Thanks, best regards

J.R.

unread,
Nov 10, 2021, 4:55:18 PM11/10/21
to gallery...@googlegroups.com
John,

That's good news, of a sort. The way the security-update world is going these days, it will only be temporary because it won't be long before hosting servers will be forced to only allow 7.4 and above. Perhaps the issue with 7.4 which is affecting the basket/sidebar conflict will not be there in versions above PHP 7.4, but it might be a good idea to research why 7.3.32 works with your configuration and why 7.4 does not. If you can find out what it is, then it might be to make more permanent fix that will work with the coming versions past 7.4

It's kind of  surprising that we haven't heard from others who are using the basket and sidebar but not reporting the problem as well...

-- J.R.
Reply all
Reply to author
Forward
0 new messages