vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBadvanced CMPS (https://vborg.vbsupport.ru/forumdisplay.php?f=101)
-   -   Small prob? (https://vborg.vbsupport.ru/showthread.php?t=73824)

valentine 01-05-2005 12:46 PM

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.

WhSox21 01-05-2005 01:12 PM

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.

Tigga 01-05-2005 02:12 PM

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.

valentine 01-05-2005 07:09 PM

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.

valentine 01-06-2005 06:12 AM

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.

mholtum 01-12-2005 04:27 AM

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.

WhiteOx2 01-12-2005 06:34 PM

I use UltraEdit, never had a problem. :)

syedakm 01-13-2005 11:35 PM

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.

syedakm 01-13-2005 11:37 PM

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


All times are GMT. The time now is 06:14 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00972 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete