Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Problem with Fresh Install
patsjv
✭
I am unzipping and uploading Vanilla 1.1.5 and trying to start a fresh install. However I get the following error message:
Parse error: parse error, unexpected '=', expecting ')' in /home/content/p/i/t/pitiviti/html/eldp/forum/library/Framework/Framework.Class.IntegrityChecker.php on line 74
Any ideas?
Parse error: parse error, unexpected '=', expecting ')' in /home/content/p/i/t/pitiviti/html/eldp/forum/library/Framework/Framework.Class.IntegrityChecker.php on line 74
Any ideas?
0
This discussion has been closed.
Comments
var $Delimiter = ','; /** * Constructor * * @param string $Source * @param string $Root * @param ReportMd5 $Reporter * @return IntegrityChecker */ function IntegrityChecker($Root = null, &$Reporter = null) {
maybe try to remove the spaces like:
function IntegrityChecker($Root=null, &$Reporter=null) {
<?php include_once 'Framework.Class.DirectoryScanner.php'; /** * Integrity Checker. * * Beta version! the protocol may change. * * examples: * <code> * // check signature of files in ./; ./appg/md5.csv is hold the signature to compare to * $Checker = new IntegrityChecker('./'); * $Checker->Check('./appg/md5.csv'); * * // To build the sgnatures: * $Checker = new IntegrityChecker('./'); * $Checker->Save('./appg/md5.csv'); *
* @package Framework
*/
class IntegrityChecker extends DirectoryScanner {
/**
* Path to the file containing the list of filed and their signature
* @var string
*/
var $Source;
/**
* Reference signature loaded from the source file
* @var array
*/
var $Ref = array();
/**
* List of files for which the signature doesn't match
* @var array
*/
var $Errors = array();
/**
* csv field delimiter for the signature list
* @var string
*/
var $Delimiter = ',';
/**
* Constructor
*
* @param string $Source
* @param string $Root
* @param ReportMd5 $Reporter
* @return IntegrityChecker
*/
function IntegrityChecker($Root = null, &$Reporter = null) {
if (!$Reporter) {
$Reporter = new ReportMd5($Root);
}
$this->DirectoryScanner($Reporter);
}
function IntegrityChecker($Root='', &$Reporter='') {
Which version of php are you using?
Vanilla Installation Wizard (Step 1 of 3) We came across some problems while checking your permissions... Some files seems to be missing or corrupted: themes/settings_role_edit.php might be corrupted. library/Framework/Framework.Functions.php might be corrupted. themes/discussion.php might be corrupted. themes/head.php might be corrupted. ajax/updatecheck.php might be corrupted. library/Framework/Framework.Class.DirectoryScanner.php might be corrupted. setup/upgrader.php might be corrupted. ajax/sortroles.php might be corrupted. themes/settings_applicants_form.php might be corrupted. themes/settings_role_list.php might be corrupted. library/Framework/Framework.Class.IntegrityChecker.php might be corrupted. setup/style.css might be corrupted. themes/vanilla/styles/default/src/vanilla.css might be corrupted. setup/installer.php might be corrupted. library/Framework/Framework.Class.Uploader.php might be corrupted. setup/index.php might be corrupted. library/People/People.Control.ApplicantsForm.php might be corrupted. library/People/People.Class.User.php might be corrupted. library/Framework/Framework.Class.SqlBuilder.php might be corrupted. ajax/sortcategories.php might be corrupted. themes/notices.php might be corrupted. library/People/People.Control.SignInForm.php might be corrupted. readme.html might be corrupted. appg/init_vanilla.php might be corrupted. appg/init_people.php might be corrupted. appg/version.php might be corrupted. conf/readme.txt might be corrupted. themes/settings_category_list.php might be corrupted. themes/settings_category_edit.php might be corrupted.
And for the parsing error, I can reproduce the problem with 4.4.8. it might be a bug with php 4.4.8 because it's working with php 4.4.7.
Best way to do it - install vanilla in a separate subdomain and upgrade this to PHP 5
<?php class A { function A(&$b=null) {} } $a = new A();
we will upload a new package ASAP without the integrity checker.