Author |
Message |
fkelly
Former Moderator in Good Standing

Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY
|
Posted:
Fri Sep 26, 2008 11:18 am |
|
Can someone remind me why we have the last line in config.php being
require_once INCLUDE_PATH . 'rnconfig.php';
I'm trying to include config.php at the beginning of a program pp_ipn.php that executes when Paypal returns completed transactions to my site. Since include path is defined in mainfile this doesn't work. But if I try to include mainfile the program doesn't work (don't ask me why). Besides I don't need all the mainfile stuff. All I really need is the db connection stuff in config.php.
Why do we even need include path in there? Rnconfig is in the same directory as config.php so it would always work without that wouldn't it. When I take the include path out of my "production" config.php the site operates fine and my paypal seems to also. |
|
|
|
 |
evaders99
Former Moderator in Good Standing

Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Fri Sep 26, 2008 1:22 pm |
|
This is the recent issue that spurred the change is #1064
I don't understand why including mainfile.php doesn't work.
Edited by Admin: I removed the link |
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
 |
fkelly

|
Posted:
Fri Sep 26, 2008 1:45 pm |
|
Yes, thanks for the reminder Evaders. The only problem is that the change to config.php breaks any scripts that were based on the old Nukescripts Paypal code for pp_ipn.php. It depended on including config.php directly and then that tried to include rnconfig.php but since include path is not defined that dies.
Why mainfile doesn't work I have no idea. I will need to try it in a test environment as time permits. The problem with the pp_ipn.php script is that it gets executed in the background so you don't see any errors. Even the error log is more or less useless for debugging this puppy. Then you add in times when Paypal's sandbox is broken and you are sitting there pounding on the keypad cause things that should be working aren't, it's just nuts.
I'm halfway inclined to just put a copy of the database connection variables right into the ipn script and be done with it. |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Sat Sep 27, 2008 6:03 am |
|
For these one-off problems, just define INCLUDE_PATH yourself within the script that is calling config.php directly... ???? |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Sat Sep 27, 2008 6:37 am |
|
These forums were not meant to be used just yet - I forgot to LOCK them after I created them. Until v2.3 is actually released, please continue using the private forums or Mantis for all issues  |
|
|
|
 |
papamike
Theme Guru

Joined: Jan 11, 2006
Posts: 170
|
Posted:
Tue Feb 15, 2011 1:35 am |
|
Well here we go,
I've searched the forums pretty good and tried to resolve the issue myself but I just can't figure it out. When I click on the Home link it doesn't go to the Home page unless I add index.php to the end of it, instead I get a 404 error "You don't have permission to access /upfront/ on this server"
My site is http://papamikecreations.net/upfront/index.php I have another RN site running and it works fine. I'm sure it's a easy fix.
Sorry if I posted under the wrong topic.
Thanks,
Mike (papamike)  |
|
|
|
 |
montego

|
Posted:
Sun Feb 20, 2011 4:32 pm |
|
Tells me your web server is not configured to check for an index.php. It is set not to allow directory browser, but it should also look through its list of default pages such as index.php, index.html, etc. |
|
|
|
 |
papamike

|
Posted:
Sun Feb 20, 2011 7:12 pm |
|
I added it to the .htaccess file. Works fine now. Thanks! |
|
|
|
 |
montego

|
Posted:
Mon Feb 21, 2011 6:17 pm |
|
Awesome!
 |
|
|
|
 |
|