TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 362
  • Total: 362

Parse error, Dead Forum

Started by ChrisTek, April 06, 2007, 06:38:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ChrisTek

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

superQ

 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;

ChrisTek

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.

JPDeni

"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.

ChrisTek

#4
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.

IchBin

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.

ChrisTek

I have reuploaded SMF several times. Actually, I am using Fantasico to install it, it's version 1.1.2.

superQ

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????

IchBin

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.

ChrisTek

I've done both. I uploaded and installed it with your package, and with Fantastico, and neither works with TinyPortal.

This website is proudly hosted on Crocweb Cloud Website Hosting.