Area51 @ 4seven.de

Mod Base and Testarea
It is currently 23 Feb 2025, 15:27

All times are UTC + 1 hour




Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2, 3  Next
Author Message
PostPosted: 28 Jul 2014, 13:05 
Offline
Tiptop
Tiptop

Joined: 28 Jul 2014, 12:55
Posts: 7
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:
Attachment:
2014-07-28_14h04_07.jpg
2014-07-28_14h04_07.jpg [ 18.05 KiB | Viewed 11942 times ]


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


Top
 Profile  
Reply with quote  
PostPosted: 28 Jul 2014, 17:43 
Offline
Tiptop
Tiptop
User avatar

Joined: 20 Jun 2012, 16:55
Posts: 318
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


Top
 Profile  
Reply with quote  
PostPosted: 28 Jul 2014, 18:28 
Offline
Tiptop
Tiptop

Joined: 28 Jul 2014, 12:55
Posts: 7
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?


Top
 Profile  
Reply with quote  
PostPosted: 29 Jul 2014, 03:15 
Offline
Tiptop
Tiptop

Joined: 06 Jul 2014, 19:10
Posts: 4
Same issue, Host is not being helpful or does not want to do it.

Going to try the curl solution.


Top
 Profile  
Reply with quote  
PostPosted: 29 Jul 2014, 03:28 
Offline
Tiptop
Tiptop

Joined: 06 Jul 2014, 19:10
Posts: 4
Do I just replace
Quote:
$geo_map = file_get_contents('http://maps.google.com/maps/api/geocode/json?address=' . $profile_fields_town_map . '&sensor=false');

with
Quote:
// 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.


Top
 Profile  
Reply with quote  
PostPosted: 29 Jul 2014, 10:00 
Offline
Tiptop
Tiptop

Joined: 28 Jul 2014, 12:55
Posts: 7
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.


Top
 Profile  
Reply with quote  
PostPosted: 30 Jul 2014, 16:58 
Offline
Tiptop
Tiptop
User avatar

Joined: 20 Jun 2012, 16:55
Posts: 318
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


Top
 Profile  
Reply with quote  
PostPosted: 30 Jul 2014, 17:16 
Offline
Tiptop
Tiptop

Joined: 28 Jul 2014, 12:55
Posts: 7
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.


Top
 Profile  
Reply with quote  
PostPosted: 30 Jul 2014, 17:23 
Offline
Tiptop
Tiptop
User avatar

Joined: 20 Jun 2012, 16:55
Posts: 318
Quote:
[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:
$config['user_map_weather'] = 1; 

_________________
Current Mods | Mod Base | php(BB) programming | No help via PM


Top
 Profile  
Reply with quote  
PostPosted: 30 Jul 2014, 17:25 
Offline
Tiptop
Tiptop
User avatar

Joined: 20 Jun 2012, 16:55
Posts: 318
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2, 3  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
[ Time : 0.012s | 27 Queries | GZIP : Off ]