PDA


View Full Version : Help Opening Up index.php


rkossick
05-22-2007, 10:56 PM
Hi, all -

Really really basic question here ... I have properly uploaded and installed vBadvanced with an eye to having a portal/intro page in conjunction with the underlying vBulletin forum. I broke out all the different files, as directed, from the initial download, putting them into the folders indicated in the instructions (all the folders ... forums/includes, forums/admincp, etc. reside in a single root folder that exists in simultaneous and synchronized fashion on my remote web host's server and on my hard drive). I renamed cmps_index.php to index.php. I went into the admin CP and, under the vBadvanced main options, designated the CMPS URL as /index.php. Yet, when I put in the URL for my web site (which should consist of both a blank portal page and a forums "gateway"), I keep getting the following warning/fatal error message:


Warning: main(./includes/vba_cmps_include_template.php): failed to open stream: No such file or directory in /hsphere/local/home/rekossic/larutamayaforfoodies.com/index.php on line 44

Fatal error: main(): Failed opening required './includes/vba_cmps_include_template.php' (include_path='.:/usr/local/lib/php:/usr/local/share/pear') in /hsphere/local/home/rekossic/larutamayaforfoodies.com/index.php on line 44

What have I done? What do I need to do to get the basic vBa portal page to open? Can anyone help?

I wonder if the presence of other "index.html" files within different vBulletin folders is causing the problem. It's my understanding that a browser will look for and prioritize an index.html file over an index.php ... and, alternatively, that if there is no index.html file detected, it will automatically open the index.php. I don't know ... but, again, going through the different folders that come with the vBulletin, there appear to be index.html files in every major folder (forums/xml, forums/include, etc.). I also, on closer inspection, found a second index.php. The one I renamed from CMPS_index.php was there, not in a folder (2KB), while the other one (18KB) is embedded in the forums folder. How will a browser know which one to open?

Sorry for such a basic question. I am hoping that somebody smarter than me will be able to provide the help I need.

Thanks!

BK

Brian
05-23-2007, 12:48 PM
That error means that the /includes/vba_cmps_include_template.php file was not uploaded to your server.

rkossick
05-23-2007, 01:11 PM
Hi, Brian and thanks so much for the feedback. I initially thought that may be the case and checked to make sure that the file was in place. It shows up in the LRMFF > forums > includes > vba_cmps_include_template.php location (after the most recent synchronization)!? I am attaching a screen shot that shows a view of the contents of the site's local and remote folders. Any other ideas/leads? Thanks again!

rkossick
05-23-2007, 01:13 PM
Here's the missing screen shot ...

Brian
05-23-2007, 01:40 PM
Normallly the only other thing that could cause that would be an invalid value for the $forumpath variable in your cmps_index.php file. What do you currently have that set to?

rkossick
05-23-2007, 02:04 PM
I hate to sound stupid, Brian, but I'm not sure what you are asking. I went into the vba area on my admin panel and set the CMPS URL to "/index/php" ... is that what you are getting at? How where does one set the forum path value in the cmps_index.php file (which, by the way, I renamed to index.php). Is that where you have to go into the code and insert a specific setting (I'm attaching a screen shot of this, just to be clear)? I bet that's what you are talking about. I did open up the two index.php files I encountered and noticed something along those lines. If that is the case, what would I put in there? "http://www.larutamayaforfoodies.com"? Or "http://www.larutamayaforfoodies.com/index.php"?

And is there any special coding that it would need to fall between (like, for example, between what appears to be the quotation mark -> ")?

Thanks!

Brian
05-23-2007, 02:06 PM
Yes, that is the $forumpath variable. If you followed the instructions in the readme file that comes with the product, one of the first steps there tells you how to modify that, and how to find your forum path if you're not sure what it is.

rkossick
05-23-2007, 02:13 PM
You see, I told you I was being stupid :). I had printed the readme file out and followed it all perfectly ... with the exception of that little discussion right up at the top. I'll follow the directions that I now see! Thanks again for setting me straight on this point.

rkossick
05-23-2007, 02:24 PM
Hi, again, Brian - I was just looking at the instructions/example and I'm still a bit confused on what exactly to put between the ". Should it be the full URL for my site - http://www.mysite.com? Or should it be the same but with the index.php extension included - http://www.mysite.com/index.php? Or should it just be the last extension part - /index.php ???

Can you set me straight?

Thanks.

Brian
05-23-2007, 03:14 PM
You need to add the path to your forums, not the URL. If you're not sure how to find that, there are instructions in the readme file and the FAQ forum here.

rkossick
05-23-2007, 04:37 PM
OK, thanks again, Brian. Sorry for my density here. I think I got it ... doing the upload of the forumspath.php and opening it up in my browser. What shows up is what is in the attached screen shot ... Assuming this is the correct pathway, do I just cut and past that into the space between the " ??

rkossick
05-23-2007, 05:04 PM
Got it, Brian! Took a leap of faith - and it all worked out! Thanks again for your help.