| Author |
Message |
adrenarush
Beginner


Joined: Dec 23, 2005 Posts: 12
|
Posted: Sat Dec 31, 2005 2:19 am Post subject: Unable to create new users in PHPNuke due to embed.php |
|
|
Can anyone PLEASEexplain to me what would cause the following error.
Warning: activate(/embed.php): failed to open stream: No such file or directory in /home/jacobspl/public_html/home/modules/Your_Account/index.php on line 226
Fatal error: activate(): Failed opening required '/embed.php' (include_path='.:/usr/local/lib/php') in /home/jacobspl/public_html/home/modules/Your_Account/index.php on line 226
I am able to sucessfully export user in the admin module without visible errors but when I try to create a new user in Nuke, I receive this error when clicking the link in the confirmation mail.
Feel free to try for yourself at http://www.jacobsplace.com/home/ [jacobsplace.com] |
|
| Back to top |
|
|
AdBot
|
| Post subject: Unable to create new users in PHPNuke due to embed.php |
|
|
|
|
|
| Back to top |
|
 |
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
|
Posted: Sat Dec 31, 2005 8:20 am Post subject: Re: Unable to create new users in PHPNuke due to embed.php |
|
|
please post the contents of your g2_config db table. _________________
 |
|
| Back to top |
|
|
adrenarush
Beginner


Joined: Dec 23, 2005 Posts: 12
|
Posted: Mon Jan 02, 2006 2:37 pm Post subject: Re: Unable to create new users in PHPNuke due to embed.php |
|
|
That may be the problem... it appears I don't have a g2_config table in my Gallery db. What might cause that and how have I gotten as far as I have without one?  |
|
| Back to top |
|
|
adrenarush
Beginner


Joined: Dec 23, 2005 Posts: 12
|
Posted: Mon Jan 02, 2006 4:05 pm Post subject: Re: Unable to create new users in PHPNuke due to embed.php |
|
|
after a bit more investigation, my g2_config table appears to have been created in my nuke db as nuke_g2config. The following are the values that it was populated with.
embedphpfile
/home/jacobspl/public_html/home/modules/Gallery/
embedUri
modules.php?name=Gallery
relativeG2Path
/modules/Gallery/
loginRedirect
modules.php?name=Your_Account
activeUserId
0
embedPath
/home/
cookiepath
/
showSidebar
0
g2configurationDone
1
embedVersion
0.4.2 |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
|
Posted: Tue Jan 03, 2006 3:13 pm Post subject: Re: Unable to create new users in PHPNuke due to embed.php |
|
|
my bad, it's _g2config, not g2_config....
make your embedPath just / _________________
 |
|
| Back to top |
|
|
adrenarush
Beginner


Joined: Dec 23, 2005 Posts: 12
|
Posted: Tue Jan 03, 2006 9:18 pm Post subject: Re: Unable to create new users in PHPNuke due to embed.php |
|
|
Looks like making the embedPath just "/" has made all the images go away and I still get the error on user registration.
Warning: activate(/embed.php): failed to open stream: No such file or directory in /home/jacobspl/public_html/home/modules/Your_Account/index.php on line 226
Fatal error: activate(): Failed opening required '/embed.php' (include_path='.:/usr/local/lib/php') in /home/jacobspl/public_html/home/modules/Your_Account/index.php on line 226
I am going to try building out another site, but this time use the nuke db and default values for the gallery2 module. We'll see if that one works.  |
|
| Back to top |
|
|
adrenarush
Beginner


Joined: Dec 23, 2005 Posts: 12
|
Posted: Wed Jan 04, 2006 12:30 am Post subject: Re: Unable to create new users in PHPNuke due to embed.php |
|
|
Well, just tried and entirely new install using Nuke 7.5, this time installing all G2 data into the Nuke DB, also this time I did NOT modify the "gallery2" module name to a more professional looking "Gallery". I did do everything step by step per the readme and was extra careful to not skip any steps or ignore steps.
Unfortunately, I am in pretty much the same place I was with the previous site. I am still getting the following error when a new user clicks their confirmation email link.
Warning: activate(/embed.php): failed to open stream: No such file or directory in /home/windflow/public_html/base/modules/Your_Account/index.php on line 226
Fatal error: activate(): Failed opening required '/embed.php' (include_path='.:/usr/local/lib/php') in /home/windflow/public_html/base/modules/Your_Account/index.php on line 226
I am running Nuke 7.5, MySQL 4.0.16, Gallery 2.0.2, and integration package 0.4.3
my nuke_g2config table has the following settings.
embedphpfile
/home/windflow/public_html/base/modules/gallery2/
embedUri
modules.php?name=gallery2
relativeG2Path
modules/gallery2/
loginRedirect
modules.php?name=Your_Account
activeUserId
0
embedPath
/base
cookiepath
/
showSidebar
0
g2configurationDone
1
embedVersion
0.4.3
The URL is http://www.windflowsports.com if you would like to see the error for yourself. I am totally open to any suggestions that might bring about a fix for the community at large.  |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
|
Posted: Thu Jan 05, 2006 7:47 am Post subject: Re: Unable to create new users in PHPNuke due to embed.php |
|
|
Use:
embedUri
/base/modules.php?name=gallery2
relativeG2Path
/base/modules/gallery2/
loginRedirect
/base/modules.php?name=Your_Account _________________
 |
|
| Back to top |
|
|
adrenarush
Beginner


Joined: Dec 23, 2005 Posts: 12
|
Posted: Thu Jan 05, 2006 11:20 pm Post subject: Re: Unable to create new users in PHPNuke due to embed.php |
|
|
First I want to send a huge Thank You to Dari for his continued contributions and help on this integration effort. I think we all see the need for it, otherwise we would not be spending time trying to make it work. I feel bad for you, watching how much abuse you take from folks on this forum. People can be pretty rude when they are spending countless hours in front of the computer trying to solve a problem but I think folks need to remember that being on the bleeding edge is always going to be difficult and that you are donating your time to those of us unable or unwilling to pay for assistance.
For me personally it is a great chance to learn more about Nuke, PHP, and Gallery2 as I started out a relative noob on these technologies (and still am). Now that I have spent my own countless hours reading all the posts, readmes, integration files (not that I understand most of them) I am totally stumped and it concerns me that nobody else seems to be having the same issue. Could it be that in all of my attempts,fresh installs, reinstalls, reconfigurations and retries that I am just missing something obvious or could it be that I or my hoster has some wacky version that just will not work to do what is intended by this integration package.
The issue I am having is with user registration from my nuke site. Same issue, same error I have had all along (aside from the random errors I got while trying various things.) You can see the error in my previous post in this thread. The error does not occur until the user receives the e-mail with the account confirmation link. Once the user clicks the link BOOM the error comes up and user registration fails.
I am curious if anyone has this aspect of user registration working correctly or if maybe I am the only person doing that level of integration (I assume not).
If anyone would be willing to explain to me what is happening on line 226 of the .../Your_Account/index.php file I would be greatly appreciative...
The code on this line is as follows.
Code: › require_once ($embedphpfile."/embed.php");
This is the same line of code that occurs on line 189 which does not seem to throw an error. If it is required once, should it not be called twice? What does the period do after the variable $embedphpfile? Both instances are being pasted into this file per the integration readme file, is there anything that I might be doing when I paste this in that could cause this to bomb? I have tried all the recommended settings in the readme as well as all the settings Dari has recommended above and I think every iteration of with "/"s and without but I am always getting the same error. I have been at it now since Christmas Eve and have not made any progress toward solving what I believe the last issue to getting my sites working.
Please, if you have any idea as to what might be causing this please drop me a line.
Thank you in advance,
Jake
P.S. Dari, if you have the time to read this post, thanks for any insight you can lend. |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
|
Posted: Fri Jan 06, 2006 8:23 am Post subject: Re: Unable to create new users in PHPNuke due to embed.php |
|
|
You're welcome, and I'm glad to be of service
ah HA:
embedUri
/base/modules.php?name=Gallery
relativeG2Path
/base/modules/Gallery/
embedphpfile
/home/windflow/public_html/base/modules/Gallery/
cookiepath
/base <----- just so that session stuff is synced, etc. _________________
 |
|
| Back to top |
|
|
adrenarush
Beginner


Joined: Dec 23, 2005 Posts: 12
|
Posted: Fri Jan 06, 2006 12:45 pm Post subject: Re: Unable to create new users in PHPNuke due to embed.php |
|
|
Hmmm. updated the cookiepath but it is still not working...
Just to verify with you, it sounds like you are saying in my case I should not be setup per the integration readme? If so, then embedpath would be "/" not "/base"?
Any chance we could get a better description of each of the variables we are setting on the config page to better understand what each affects? If I look at line 226 in the Your_Account/index.php it would look like the only one that would affect the error I am experiencing is
embedphpfile which is currently set to
/home/windflow/public_html/base/modules/Gallery/ |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
|
Posted: Fri Jan 06, 2006 12:51 pm Post subject: Re: Unable to create new users in PHPNuke due to embed.php |
|
|
re: description of the variables...sadly, no. as i did not write the master g2 embedding code (embed.php), i don't have a better description other than what the integration dev has provided.
you can try setting your embedPath to "/" and see if it works. in another month or two, the entire integration method will be changing, and the variables will become much less complex (thank goodness). _________________
 |
|
| Back to top |
|
|
adrenarush
Beginner


Joined: Dec 23, 2005 Posts: 12
|
Posted: Fri Jan 06, 2006 2:07 pm Post subject: Re: Unable to create new users in PHPNuke due to embed.php |
|
|
Funny, I finally got a user to register successfully by hacking line 226 of Your_Account/index.php to read as follows.
Code: › require_once("/home/windflow/public_html/base/modules/Gallery/embed.php");
Which seems rather ridiculous since this is essentially what the original code was building. Any ideas on why this might be?
--Jake |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
|
|
| Back to top |
|
|
adrenarush
Beginner


Joined: Dec 23, 2005 Posts: 12
|
Posted: Fri Jan 06, 2006 4:12 pm Post subject: Re: Unable to create new users in PHPNuke due to embed.php |
|
|
| When I insert that echo statement on the line above I can no longer get the Your_Account module to load, the user just gets a blank screen if they try to create a new user. |
|
| Back to top |
|
|
|
|
|
|
|