PDA

View Full Version : installation problem


MrWolfman
05-20-2004, 11:47 PM
hi
i am getting the same error as in a post before however i justg cannot seem to get it to work this is what i have tried so far

1 recommended by installation help file
cmps_index.php - as its in the same dir as the forum chdir('/ etc has been removed
Results are

Warning: main(./includes/init.php): failed to open stream: No such file or directory in /home/mbruce/public_html/mobilemods/forum2/admincp/global.php on line 51

Fatal error: main(): Failed opening required './includes/init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mbruce/public_html/mobilemods/forum2/admincp/global.php on line 51

=========================
1 method used when i installed vbadvanced
cmps_index.php - added chdir('/home/mbruce/public_html/mobilemods/forum2');

Results are the same as above

so i have tried puttting
chdir('/home/mbruce/public_html/mobilemods/forum2'); into the vbacmps_install file at the top
Result

Fatal error: Call to undefined function: print_cp_header() in /home/mbruce/public_html/mobilemods/forum2/admincp/vbacmps_install.php on line 21

i have tried many different combinations of this also
with
chdir('/home/mbruce/public_html/mobilemods/forum2/admincp');
etc etc

vbadvance installed no problem at all
this just doesnt wish to know
can u help?

Thanatos
05-21-2004, 12:30 AM
well, my CMPS is in www.miratos.com and my forums are under www.miratos.com/forums

so my CMPS index looks like and resides in public_html directory:

chdir('/home/miratos/public_html/forums');

maybe try it without mbruce

hope that helps.

Our Sponsors
 

MrWolfman
05-21-2004, 01:05 AM
nope
just had another play still no joy :-(

Brian
05-21-2004, 09:25 AM
There's no reason you should be editing the install file. Just upload it to your forums/admincp directory and then go to the file in your browser.

Our Sponsors
 

MrWolfman
05-21-2004, 10:00 AM
yep noticed
i did a re installation after alot of messing to correct some error that were caused

it has gone better this time now just got a parse callendar error
just goling to see if its been answered
ill be back if there are any problems
thanx

MrWolfman
05-21-2004, 11:30 AM
ok the website has now gone down

i did a fresh installation and it installed no problem
but
the there were some parse errors top of screen

i have now edited the files again a fresh to make sure they were perfect again
and now get

Fatal error: Call to undefined function: is_browser() in /home/mbruce/public_html/mobilemods/forum2/global.php on line 92

it referes to this
// turn off popups if they are not available to this browser
if ($vboptions['usepopups'])
{
if ((is_browser('ie', 5) AND !is_browser('mac')) OR is_browser('mozilla') OR

is_browser('firebird') OR is_browser('opera', 7) OR is_browser('safari') OR

is_browser('konqueror', 3.2))
{
// use popups
}
else
{
// don't use popups
$vboptions['usepopups'] = 0;
}

and the site is now completely down

Brian
05-21-2004, 11:40 AM
It looks like you've mishacked your functions.php file. Try uploading a fresh, un-hacked version of this file, and then reapply the changes with Notepad or another simple text editor program. Do NOT use Dreamweaver or another similar program as these have been known to cause problems in the past.

MrWolfman
05-21-2004, 11:47 AM
no offence brian but is that the only answer u can give to people
if u read my post its says they are clean unhacked files
the forum as never been altered apart from normal upgrades

i also said i did not use anything else but notepad

so now please give me a more reasonable answer as our popular forum is down
we installed your avbulletin without any problems at all
we then went to put this on and so far nothing but crap

i would not mind as much but every answer u seem to give is the same!

now please again
we have unhacked files which we have uploaded after editing with notepad
and we are getting nothing but error after error after error
see for yourself
http://www.mobilemods.net/forum2/
if u want the files to check it will be a please

now please help us
and dont tell us not to use something we have already said we did not use

MrWolfman
05-21-2004, 11:56 AM
i mean for starters it says to replace in the functions text
find this
if (THIS_SCRIPT == 'online' OR THIS_SCRIPT == 'calendar' OR (THIS_SCRIPT == 'index' AND $vboptions['showevents']))
and replace with this
if (THIS_SCRIPT == 'online' OR THIS_SCRIPT == 'calendar' OR (THIS_SCRIPT == 'adv_index' AND $vboptions['showcalendar']) OR (THIS_SCRIPT == 'index' AND $vboptions['showevents']))

is this pointing to to adv_index.php?

because this is no longer on our forum as we had to remove it because this installation destoryed it

Brian
05-21-2004, 12:01 PM
When that is the correct answer, then yes, that is the only answer I can give. You have not mentioned anywhere in this thread what editor you used to modify the files, which is why I made the note not to use Dreamweaver or a similar program. And either way, if you correctly applied the file changes then you will not experience the problems you are describing. As I suggested above, if you take the original vBulletin files (functions.php, functions_calendar.php, and global.php if the error still appears after the other two are uploaded) and upload them to your server then the parse errors will disappear. You should then reapply the changes listed in the install file. As long as those are applied correctly then you will not receive any errors like you are mentioning.

Brian
05-21-2004, 12:03 PM
i mean for starters it says to replace in the functions text
find this
if (THIS_SCRIPT == 'online' OR THIS_SCRIPT == 'calendar' OR (THIS_SCRIPT == 'index' AND $vboptions['showevents']))
and replace with this
if (THIS_SCRIPT == 'online' OR THIS_SCRIPT == 'calendar' OR (THIS_SCRIPT == 'adv_index' AND $vboptions['showcalendar']) OR (THIS_SCRIPT == 'index' AND $vboptions['showevents']))

is this pointing to to adv_index.php?

because this is no longer on our forum as we had to remove it because this installation destoryed it
No. This refers to 'THIS_SCRIPT', which is defined in the top of your cmps_index.php file, and is defined as 'adv_index'. That is simply used to identify the file and has nothing to do with what the file is named.

MrWolfman
05-21-2004, 12:12 PM
i think i have fixed it
but for the life of me i dont know how

strange
still got errors on the portol though
http://www.mobilemods.net/forum2/cmps_index.php

Brian
05-21-2004, 12:16 PM
Did you upload the two files included in the zip to your forum/includes folder?

*Edit*
Nevermind, just checked and saw that the two files are there. Did you remove the chdir line in your cmps_index.php file? If not, can you post here what you have for that line?

MrWolfman
05-21-2004, 12:34 PM
dam now i cannot get into admin again
again now

starting to feel like giving up
no joke i have been trying to get it working for nearly 24hrs
spent the time reading etc etfc
but now when one problem goes another arrives

the forum seems to work ok now its the rest

Brian
05-21-2004, 12:38 PM
If you would like to fill out a support ticket via the Members Area on here I'll be glad to log in and see what the problem is.

MrWolfman
05-21-2004, 12:40 PM
at the moment it is now blank and still errors

i have tried it in both the main root dir and the forum directory with various things in and out


it should be this if in the same dir as the forum
chdir('/home/mbruce/public_html/mobilemods/forum2');

or at least thats what what it was on vbadvance when it was in the same dir as the forum

but now it doesnt work
'

Brian
05-21-2004, 12:53 PM
If it's in the same directory as your forum then you can remove or simply comment out the chdir line.

MrWolfman
05-21-2004, 12:54 PM
If you would like to fill out a support ticket via the Members Area on here I'll be glad to log in and see what the problem is.
not half as pleased as me
can u give me half an hr as the website owner has just got to give me the ok
im just the monkey boy

MrWolfman
05-21-2004, 12:56 PM
i have mate
i have tried it with without

i have tried /forum2/ and cominations
after a few hours u can get through them all

Brian
05-21-2004, 12:58 PM
not half as pleased as me
can u give me half an hr as the website owner has just got to give me the ok
im just the monkey boy
No problem. I should be around for a couple of more hours so I'll keep an eye out for the ticket. ;)

MrWolfman
05-21-2004, 01:34 PM
ticket requested
please come back soon and tell me how stupid iv been because something stupid
ill be so happy
and sorry i was snappy
i havent slept for nearly 2 days
everybody rrrrrrrrrrrr

MrWolfman
05-21-2004, 02:23 PM
what can i say im just a happy person now
a knight in shinning armer saved me from my woos

brian you are a top geeza
and as u said it was human error all along

thanks matey

for everyones information
check your coding including things you have changed
you never know what could be lerking around

mholtum
05-21-2004, 02:41 PM
what was the problem?

MrWolfman
05-21-2004, 03:02 PM
the wrong code for the wrong file
that didnt help
and soem charactors that should not have been there

still got a few problems though
i cannot get into admin
and there are a few what seem to be cookie related problems on the portal
side