![]() |
Quote:
took me a month or so to figure this out finally. |
nevermind... jsut saw your post and ?Variable? fixed the issue. man, whish i did that a month or so ago ;)
now, sombody get that stupid auto group adition to work! ;) |
So you have upgraded and are running 2.1? It's working without any issues?
I am going to give it a try. Definitely backing up the codebase, database and config file in case I need to revert to the old version. I'll let you know how it goes! Sean |
Anyone have Gallery 2.1 working with 3.5.4?
Here is my config file with a couple changes as outlined in the integration notes on the Gallery site: PHP Code:
Fatal error: Call to undefined function: iserror() in /home/paranorm/public_html/gallery2.php on line 74 Not sure what to do.... |
Quote:
|
With some help from a member over on Menalto's site, I've got Gallery 2.1 and vBulletin 3.5.4 working together.
The only problem I've come across is when the user first accesses the gallery (causing the gallery to create the new user) I get this error: Code:
Fatal error: Call to a member function on a non-object in /home/paranorm/public_html/gallery2.php on line 96 Here is my gallery2.php file, updated to work with Gallery 2.1 and vBulletin 3.5.4. PHP Code:
|
if you go into notepad, and hit ctrl-G then tell it to goto line 96.. what is on that line...
|
PHP Code:
|
Quote:
i alreayd have a user created(my username) from previous attempts and since i dotn haev to create that account again, the integration script runs fine... so the script is working other than that part. the isError() part is what i have been having issues with from day ?1?... there is a post that ?joshmount? made over on teh G2 integration section, he did nto respond to me asking for more info as of yesterday afternoon. i wish i could find where this problem was comming from... such a PITA.. and since VBB is closed source, Valiant or anybody over on the G2 forums wont help too much, but they will help with the G2 related issues :) helpfull normaly to :) alright, i MIGHT have fixed the isError() BS... try going into your gallery admin panel. goto the mod rewrite/URL rewrite.. scroll to the bottom and uncheck the "Show Item", and "Download Item". after you hit save you will probobly get somethign saying that your integration file does not exist... that is fine... if you hit back and refresh teh page the settings will have taken(mod rewrite does nto work yet). then attempt to display the page again. after you login make your user an admin, then i got another browser(i use firefix as my default, so IE is my test browser) and login as a bogus user... that is the best way to test IMO :) let me knwo how it goes :) |
Figured it out guys. The error caused by: if ($ret->isError()) is caused -- among other things -- that if things go correctly when doing the embed, nothing is returned by the $ret= statements. So what you need to do is:
Change: Code:
$retcreate = GalleryEmbed :: createUser($uid, $args); Code:
$retcreate = GalleryEmbed :: createUser($uid, $args); First, I believe that $retcreate->isSuccess() is no longer used. In the new paradigm of this version, if you do something and its successful, you get nothing returned back to $ret. Only when there is an error, then you get something back in $ret. So my replacement says, "if you get something back"...which is essentially what the previous statment said: "if what you get back is not successful" Change: Code:
$ret = GalleryEmbed::checkActiveUser($uid); Code:
$ret = GalleryEmbed::checkActiveUser($uid); |
All times are GMT. The time now is 07:34 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|