• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 all works apart from...

Paul

Well-known member
#1
Hi all,

Help!! Have just migrated my forum onto a new server... and everything seems to work OTHER THAN the "new posts" button at the top of the forum itself.
It displays the following when clicked on :
Code:
<?php

$startTime = microtime(true);
$fileDir = dirname(__FILE__);

require($fileDir . '/library/XenForo/Autoloader.php');
XenForo_Autoloader::getInstance()->setupAutoloader($fileDir . '/library');

XenForo_Application::initialize($fileDir . '/library', $fileDir);
XenForo_Application::set('page_start_time', $startTime);

$fc = new XenForo_FrontController(new XenForo_Dependencies_Public());
$fc->run();
As text on a page, and thats it... it's almost like it's not reading the PHP properly... however everything else seems to work perfectly!!! May well be a file corrupted, however i havent got a clue as to which one!! There's no more to it - even the end of the php file seems missing as it doesnt close correctly...

Please help - it's the only problem i have before i can re-open!!

Many thanks
Paul
 
Last edited:

Mike

XenForo developer
Staff member
#2
If it's displaying that, then it looks like PHP isn't being run. Unfortunately, I couldn't easily guess why.
 

Paul

Well-known member
#3
Thanks Mike. It's strange as all the other pages load fine, meaning that PHP must be running... just this one button.

I'll do some more digging later :)