I'm not sure what you were trying to do here, but if I change line 112: (Now I know, you were trying to use the sort order from the Settings screen...)
Everything started working. It's possible that I'm massively oversimplifying, but it went and printed out the multiple Awards and their proper titles with no issue. (I thought I saw an issue, but I think it was due to the sort issue for the awards, where re-sorting the awards mixes up the IDs.)
It's late in the day here so I'll have to leave any update until tomorrow. The main problem seems to be sorting awards more than once without refreshing the settings.php page.
Hi I am getting this error and I tried the fix from bmw but i still get the error
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/phoenix2/public_html/extensions/UserAward/conf/settings.php on line 50
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/phoenix2/public_html/extensions/UserAward/conf/settings.php on line 51
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/phoenix2/public_html/extensions/UserAward/conf/settings.php on line 55
I actually put the user award in first before all other extensions thinking the same thing and still got the error. No biggie probably something wrong with my freebie host or something.
I can reproduce this error. I am getting the warnings
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/devel/svn/vanilla/extensions/UserAward/conf/settings.php on line 50 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/devel/svn/vanilla/extensions/UserAward/conf/settings.php on line 51 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/devel/svn/vanilla/extensions/UserAward/conf/settings.php on line 55
I get these warnings only when logged off and when calling people.php. Any other page is working quite fine.
I too can reproduce the error that Jkrogma and Spiral have. I turned off all of my extensions one at a time to check for compatibility issues, but gives me this output when it's the only one active as well. It is not crippling, it just looks weird...
I think the latest version (1.3) fixes the above database error. Can't be sure though as I have not been able to reproduce the error - please let me know if not.
Comments
115: $imagereturn .= ' <img src="extensions/
Otherwise, the awards tend to scrunch up against the User Name.
(Now I know, you were trying to use the sort order from the Settings screen...)
112: $AwardID = indexOf($Awards->UserAward[$CommentID]["Award"][$award], $this->Context->UserAwardAwards['ID']);
to
112: $AwardID = $this->Context->UserAwardAwards['ID'][$award];
Everything started working. It's possible that I'm massively oversimplifying, but it went and printed out the multiple Awards and their proper titles with no issue. (I thought I saw an issue, but I think it was due to the sort issue for the awards, where re-sorting the awards mixes up the IDs.)
It's late in the day here so I'll have to leave any update until tomorrow. The main problem seems to be sorting awards more than once without refreshing the settings.php page.
If you ever need suggestions for small tweaks to the extension, let me know, I'm grateful for your work.
Anyone else getting this problem?
Might be a clash with another extension.
Any other page is working quite fine.
I am using
Vanilla 1.1.4
UserAward 1.2
Not sure that was the problem though as it was using the same code used by several other extensions for checking if a field exists.