TinyPortal

Development => Support => Installation => Topic started by: ChrisTek on April 06, 2007, 06:38:47 PM

Title: Parse error, Dead Forum
Post by: ChrisTek on April 06, 2007, 06:38:47 PM
I ran through a successful install with .983, SMF 1.1.2, a clean install of SMF with the default theme, and any/all pages on my forum (including the admin panel) give this error:

Parse error: syntax error, unexpected $end in /public_html/smf/Sources/Subs.php on line 3552
Title: Re: Parse error, Dead Forum
Post by: superQ on April 06, 2007, 06:51:59 PM
 May not help, but while you are waiting it probably wouldn't hurt to go to that file and copy the code in the surrounding area [above and below] and maybe put it inside code tags [the # up in the editor] so people in the know can see/fix.Mine says this.

// Chops a string into words and prepares them to be inserted into (or searched from) the database.
function text2words($text, $max_chars = 20, $encrypt = false)
{
global $func, $context;

// Step 1: Remove entities/things we don't consider words:
$words = preg_replace('~([\x0B\0' . ($context['utf8'] ? ($context['server']['complex_preg_chars'] ? '\x{A0}' : pack('C*', 0xC2, 0xA0)) : '\xA0') . '\t\r\s\n(){}\\[\\]<>!@$%^*.,:+=`\~\?/\\\\]|&(amp|lt|gt|quot);)+~' . ($context['utf8'] ? 'u' : ''), ' ', strtr($text, array('<br />' => ' ')));

// Step 2: Entities we left to letters, where applicable, lowercase.
$words = un_htmlspecialchars($func['strtolower']($words));



with 3552 being blank and under this line.

global $func, $context;
Title: Re: Parse error, Dead Forum
Post by: ChrisTek on April 06, 2007, 07:16:15 PM
Well, it certainly is an unexpected end...

// Step 2: Entities we left to letters, where applicable, lowerca

There is nothing below that. So I am assuming my subs.php file is corrupted. I am going to try and upload the subs.php from the manual install, and I will post back here.
Title: Re: Parse error, Dead Forum
Post by: JPDeni on April 06, 2007, 07:22:31 PM
"unexpecte $end" often means that somewhere there's a { without a corresponding } or maybe there's a line without a ; at the end of it.

Yes, it looks like Subs.php didn't completely load.
Title: Re: Parse error, Dead Forum
Post by: ChrisTek on April 06, 2007, 07:23:05 PM
I'm getting tons of errors with corrupted files... The auto-installer I downloaded must have a bug. I guess I will redownload it.

After I fixed up Subs, I got an error for Errors.php (ironically). After fixing that, I just get more error for other files.
Title: Re: Parse error, Dead Forum
Post by: IchBin on April 06, 2007, 10:10:18 PM
Well I wouldn't necessarily call it a bug in the auot installer. it could very well be server configuration. But thats besides the point I suppose. Iwould upload a fresh set of files for your SMF installation.
Title: Re: Parse error, Dead Forum
Post by: ChrisTek on April 06, 2007, 10:32:38 PM
I have reuploaded SMF several times. Actually, I am using Fantasico to install it, it's version 1.1.2.
Title: Re: Parse error, Dead Forum
Post by: superQ on April 06, 2007, 11:26:56 PM
Why don't you talk to your host and see it they can tell you why this is happening. Why would only uou be having so many problems if it wasn't the host. I like to blame them first ;D They may have it set up in some ultra safe mode that will not allow certain stuff to upload or runThat would be the best thing. Tell them what you are trying to do and what happens.

You could also put this in a text editor and save it as phpinfo.php --upload it to your root and run it and see if safe mode is on or off and a few other things that might cause probs. It tells you the server configuration. If your server configuration is not a certain minimum way you will have problems running many things[block code snippets/rss feeds/other things]. It may be better to get another host.

<?php
  phpinfo();
?>

save as--  phpinfo.php then go to www.yoursite.com/phpinfo.php and see whay you get.

even if it don't help it is good to know.

BTW who is your host????
Title: Re: Parse error, Dead Forum
Post by: IchBin on April 07, 2007, 12:01:02 AM
Quote from: ChrisTek on April 06, 2007, 10:32:38 PM
I have re-uploaded SMF several times. Actually, I am using Fantasico to install it, it's version 1.1.2.
So which is it? Your uploading your files? Or you are using Fantastico? If you're files are failing and becoming corrupted then you've got to find a way to upload them so they'll work.
Title: Re: Parse error, Dead Forum
Post by: ChrisTek on April 07, 2007, 12:10:26 AM
I've done both. I uploaded and installed it with your package, and with Fantastico, and neither works with TinyPortal.
Title: Re: Parse error, Dead Forum
Post by: IchBin on April 07, 2007, 03:56:31 AM
Well, if you can get your forum to work you'll have to install TP manually then.
Title: Re: Parse error, Dead Forum
Post by: Shadow on April 07, 2007, 04:20:45 AM
Mod instructions for TP 0.9.8 and SMF 1.1 - 1.1.2
http://www.tinyportal.net/index.php?topic=14195

Manuall install of TP (files, edits of code, database install)
http://www.tinyportal.net/index.php?topic=14230

Here some docs about manually installing of TP
Title: Re: Parse error, Dead Forum
Post by: ChrisTek on April 07, 2007, 05:19:52 AM
Thanks, I guess. :)
Title: Re: Parse error, Dead Forum
Post by: Shadow on April 07, 2007, 05:22:09 AM
Your most welcome. :)

You will found the thing's in the download's on here.