Page 1 of 3

jQ_User_Map_api3_v.0.9.0 - "NO USERS IN MAP"

PostPosted: 28 Jul 2014, 13:05
by Pieter Huizinga
Good afternoon, Guten Nachmittag,

Sorry my German is a bit rusty so if you don't mind I'll write in English.
I have just installed jQ_User_Map_api3_v.0.9.0 on http://my-mc-phoenix.com.
Everything seems to be alright, however, when I lookup the map I get the message "No users in map".
Purged all cahces, deactivated CPFs, activated them again, still no luck.
The fields in the database are filled in:
2014-07-28_14h04_07.jpg


Did I miss something in the instructions?
Feel free to register and try for yourself.
Thank you.

Re: jQ_User_Map_api3_v.0.9.0 - "NO USERS IN MAP"

PostPosted: 28 Jul 2014, 17:43
by 4seven
See solution by MaamuT

MaamuT wrote:The problem came well from the function file_get_contents, deactivated by my provider, as well as the function fopen

read from here

viewtopic.php?f=2&t=200&start=30#p780

note: the edit is in
includes/functions_user_map.php

Re: jQ_User_Map_api3_v.0.9.0 - "NO USERS IN MAP"

PostPosted: 28 Jul 2014, 18:28
by Pieter Huizinga
That doesn't help. Sorry.

When activating Debug mode I see this:
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions.php on line 4672: Undefined variable: app_head_include
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions.php on line 4678: Undefined variable: tapatalk_location_url
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions.php on line 4734: Undefined variable: config_user_map_weather

Where should config_user_map_weather be defined? Could this be the issue?

Re: jQ_User_Map_api3_v.0.9.0 - "NO USERS IN MAP"

PostPosted: 29 Jul 2014, 03:15
by HondaSxS
Same issue, Host is not being helpful or does not want to do it.

Going to try the curl solution.

Re: jQ_User_Map_api3_v.0.9.0 - "NO USERS IN MAP"

PostPosted: 29 Jul 2014, 03:28
by HondaSxS
Do I just replace
$geo_map = file_get_contents('http://maps.google.com/maps/api/geocode/json?address=' . $profile_fields_town_map . '&sensor=false');

with
// file_get_content alternative (if bloqued by provider)
$get_url = 'http://maps.google.com/maps/api/geocode/json?address=' . $profile_fields_town_map . '&sensor=false';
$get_content = curl_init();
curl_setopt($get_content, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($get_content, CURLOPT_URL, $get_url);
$geo_map = curl_exec($get_content);


Do I replace both of them or just one?
Thanks.

Re: jQ_User_Map_api3_v.0.9.0 - "NO USERS IN MAP"

PostPosted: 29 Jul 2014, 10:00
by Pieter Huizinga
HondaSxS wrote:Same issue, Host is not being helpful or does not want to do it.

Going to try the curl solution.

That didn't make a difference for my board. But I see this undefined constant. Would appreciate assistance.

Re: jQ_User_Map_api3_v.0.9.0 - "NO USERS IN MAP"

PostPosted: 30 Jul 2014, 16:58
by 4seven
Pieter Huizinga wrote:That doesn't help. Sorry.

When activating Debug mode I see this:
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions.php on line 4672: Undefined variable: app_head_include
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions.php on line 4678: Undefined variable: tapatalk_location_url
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions.php on line 4734: Undefined variable: config_user_map_weather

Where should config_user_map_weather be defined? Could this be the issue?

Seems you have elemtary errors in different mod installs. fix this first.., before you ask for further help.
On a normal/non-restricted board with zero debug-errors it works 100% out of the box..

Re: jQ_User_Map_api3_v.0.9.0 - "NO USERS IN MAP"

PostPosted: 30 Jul 2014, 17:16
by Pieter Huizinga
Well, that also is not much help.

I am an IT professional and I think it is fair to say that the apparent missing declarations in other mods should not affect the missing declaration of your mod. Another difference being that those other mods work even with the warnings and yours does not despite it's nothing more than a warning.

Re: jQ_User_Map_api3_v.0.9.0 - "NO USERS IN MAP"

PostPosted: 30 Jul 2014, 17:23
by 4seven
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions.php on line 4734: Undefined variable: config_user_map_weather

you can try:

open

includes/functions.php

put this line before line 4734

Code: Select all
$config['user_map_weather'] = 1; 

Re: jQ_User_Map_api3_v.0.9.0 - "NO USERS IN MAP"

PostPosted: 30 Jul 2014, 17:25
by 4seven
Pieter Huizinga wrote:I am an IT professional and I think it is fair to say that the apparent missing declarations in other mods should not affect the missing declaration of your mod. Another difference being that those other mods work even with the warnings and yours does not despite it's nothing more than a warning.

lausy programming of other mods than. The missing index of mine is normally automatically set on an unrestricted board.
If not, than its not my mod, but another board fault ;) Because of that, you need that workaround above..