shortest block error
Sharique - April 3, 2008 - 16:11
| Project: | Buddylist2 |
| Version: | 5.x-1.0-beta2 |
| Component: | Buddy API Shortest Path |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
Hi,
I have enable shortest path block, and gives this error on front page.
warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/html/dtesting/sites/all/modules/buddylist2/buddy_api_shortestroute/buddy_api_shortestroute.module on line 134.----
Sharique

#1
Hi,
are you displaying your shortest route block on every page? (and not only on users profile pages?)
how many users do you have?
regards,
dominik
#2
I have just 2 uesrs, i'm testing module in local.
yes i'm displaying block on every page. Oooh this is the thing wrong?
#3
When I enable shortest path block (following the instructions for placing the following PHP snippet in the block config)
<?php
if (arg(0) && arg(0) == 'user' && arg(1) && is_numeric(arg(1)) && !arg(2)) { return TRUE; }
?>
I get the following error when visit any userprofile page except my own. (I have admin privilege if that makes a diff)
If I disable the shortest path block, the error goes away.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@services.matrixleadership.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Any Ideas????
#4
Hi again,
Just tried loading beta2 and FWIW, the error goes away and block seems to work as intended showing up only on users profile pages.