Helpful Information
 
 
Category: vBadvanced CMPS
Small prob?

(Sorry, posted this in the main vbulletin.org forum before I saw this one)


I'm having a problem with this.

When I point the browser at the installation script, I get :

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/mydomain/public_html/includes/functions.php on line 1910

I'm v3.0.4.

Have I done something obviously wrong?

I get the same error when I go to:

http://www.mydomain.com/admincontrol to log in to the management console

(Yes, I have changed 'admincp' to 'admincontrol' - is there something else I need to change in the script because of this??)

I thought I'd followed everything to the letter - any help gratefully received - thanks.

In your functions.php you should check out line 1900-1920. There is something missing. Most common things that are missing or added are commas or semi-colons. Just double check your installation instructions and check to see if everything is right in your ./includes/functions.php file.

Get a fresh, un-hacked version of your functions.php file and re-apply the changes using a simple text editor. Do not use Dreamweaver or any similar programs as they have been known to cause problems.

Thanks for your replies.

I've spent the best part of the last 2 hours going through everything in painstaking detail, took everything back to original settings etc (had kept a copy of original files) then went back through the procedure again and re-edited it all.

Went to run install script from browser...

Same problem : line 1910 in functions.php

This line doesnt even get edited!!!! How can there be a problem?

If anyone can shed any more light on this I would really appreciate it.
Thanks.

EDIT:One thing though - when I browse to my home page (forums and CMPS in same directory) there's just a list of the files as if the domain has nothing on it at all - you can just browse through the directories.

Also - one of the mods in the readme file - where you replace the script below:

function construct_calendar_output($today, $usertoday, $calendarinfo, $fullcalendar = 0, $weekrange = '')
{
global $birthdaycache, $eventcache, $bbuserinfo, $vbphrase, $stylevar, $show, $offset, $colspan, $days, $months, $show;


on my version (3.0.4) the $show; variable at the end isnt there when I start to edit the file in the first place.

Well, I look pretty stupid now...

I had been editing my templates in Dreamweaver MX2004... didnt see your bit about not using that.

Edited them in Notepad instead...

Installed fine... :confused:

Thanks for your help everyone. :classic: I have a further problem but i'll post it at vbadvanced.

I have heard that about Dreamweaver a few times and I find that interesting. I did have problems with it in the older versions of DW, but when I started using Macromedia Studio MX 2004 with DW version 7.1 I haven't had a single issue. I do all my hacks for CMPS and VB in it. I have yet to have a single issue.

I use UltraEdit, never had a problem. :)

In your /forum/includes/functions_calendar.php file:

function construct_calendar_output($today, $usertoday, $calendarinfo, $fullcalendar = 0, $weekrange = '')
{
global $birthdaycache, $eventcache, $bbuserinfo, $vbphrase, $stylevar, $show, $offset, $colspan, $days, $months, $show;


In my actualy file I never saw $show at the end of the line, but I did the edit anyway, could it be the problem I am getting the same error.

never mind it worked, it was the editor.... weird, never had this issue, by the way I was also using the dreamweaver.










privacy (GDPR)