jQ_User_Map_api3_v.0.9.0 - "NO USERS IN MAP"

Mod Support

Moderators: BNa, Sekuro, 4seven

jQ_User_Map_api3_v.0.9.0 - "NO USERS IN MAP"

Postby Pieter Huizinga » 28 Jul 2014, 13:05

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.
Pieter Huizinga

Tiptop

Tiptop
 
Posts: 7
Joined: 28 Jul 2014, 12:55
 
Resolution: 1920x1200


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

Postby 4seven » 28 Jul 2014, 17:43

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
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven

Tiptop

Tiptop
 
Posts: 318
Joined: 20 Jun 2012, 16:55
 
Resolution: 1920x1080


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

Postby Pieter Huizinga » 28 Jul 2014, 18:28

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?
Pieter Huizinga

Tiptop

Tiptop
 
Posts: 7
Joined: 28 Jul 2014, 12:55
 
Resolution: 1920x1200

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

Postby HondaSxS » 29 Jul 2014, 03:15

Same issue, Host is not being helpful or does not want to do it.

Going to try the curl solution.
HondaSxS

Tiptop

Tiptop
 
Posts: 4
Joined: 06 Jul 2014, 19:10
 
Resolution: 1400x1050

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

Postby HondaSxS » 29 Jul 2014, 03:28

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.
HondaSxS

Tiptop

Tiptop
 
Posts: 4
Joined: 06 Jul 2014, 19:10
 
Resolution: 1400x1050

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

Postby Pieter Huizinga » 29 Jul 2014, 10:00

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.
Pieter Huizinga

Tiptop

Tiptop
 
Posts: 7
Joined: 28 Jul 2014, 12:55
 
Resolution: 1920x1200


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

Postby 4seven » 30 Jul 2014, 16:58

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..
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven

Tiptop

Tiptop
 
Posts: 318
Joined: 20 Jun 2012, 16:55
 
Resolution: 1920x1080


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

Postby Pieter Huizinga » 30 Jul 2014, 17:16

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.
Pieter Huizinga

Tiptop

Tiptop
 
Posts: 7
Joined: 28 Jul 2014, 12:55
 
Resolution: 1920x1200


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

Postby 4seven » 30 Jul 2014, 17:23

[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; 
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven

Tiptop

Tiptop
 
Posts: 318
Joined: 20 Jun 2012, 16:55
 
Resolution: 1920x1080



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

Postby 4seven » 30 Jul 2014, 17:25

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..
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4seven

Tiptop

Tiptop
 
Posts: 318
Joined: 20 Jun 2012, 16:55
 
Resolution: 1920x1080


Next

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 1 guest

cron