$GLOBALS['logged'] empty - avatar change problem

I have a problem changing the avatars on my site (D7.0.9).

If i upload a new one there in no problem but if itry to change it to a predefined site avatar i always get an "Access denied" message in the "My Avatars" section. I have checked the code and digged it down to the function "isAllowedAdd".

I echoed the array "$GLOBALS['logged']" at avatar changing and the values are not defined. This is the content of the array: Array ( [admin] => [member] => ) If i check the values anywhere else on the page they are not empty. So the if statement in the "isAllowedAdd" function will return with false.

 

Anyone had this issue before or an idea how to fix it?

 

Thanks in advance!

http://www.boonex.com/market/posts/paansystems - your resource for Dolphin Pro
Quote · 24 Aug 2012

php is configured properly ...

  • allow_url_fopen = On - OK
  • allow_url_include = Off - OK
  • magic_quotes_gpc = Off - OK
  • memory_limit = 134217728 - OK
  • post_max_size = 314572800 - OK
  • upload_max_filesize = 314572800 - OK
  • register_globals = Off - OK
  • safe_mode = Off - OK
  • short_open_tag = On - OK
  • disable_functions = - OK
  • php module: curl = curl - OK
  • php module: gd = gd - OK
  • php module: mbstring = mbstring - OK
  • php module: xsl = xsl - OK
  • php module: json = json - OK
  • php module: openssl = openssl - OK
  • php module: mysqli = mysqli - OK
  • php module: ftp = ftp - OK
http://www.boonex.com/market/posts/paansystems - your resource for Dolphin Pro
Quote · 24 Aug 2012

For some reason it can't find if you are logged in. Check the ajax request in console and see if it sends cookies to the server. Well it should :P

so much to do....
Quote · 25 Aug 2012

hmm, everything seems fine with cookies. memberID is set correctly.

http://www.boonex.com/market/posts/paansystems - your resource for Dolphin Pro
Quote · 25 Aug 2012

ok ok, so i checked everything in detail and the cookie was not correct on ajax call ... it was a caching issues with varnish.

http://www.boonex.com/market/posts/paansystems - your resource for Dolphin Pro
Quote · 26 Aug 2012

good you sort it out. :D

so much to do....
Quote · 26 Aug 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.