Can't complete Xenforo Install Localhost

Status
Not open for further replies.

Stormraven

Trusted Member
Oct 24, 2010
1,836
0
150
36
Wales, UK
www.prowebforums.com
I'm currently having major issues installing Xenforo on my localhost machine (Using MAMP) :( basically this is what's happening. When installing, I kept on getting this error:

This action is available via POST only. Please press the back button and try again.

I opened a support ticket and this is what Mike said:

Hi,

I'm taking a guess that this issue might be caused by PHP crashing when it tries to generate random data. This is done by calling to OpenSSL when possible. In library/XenFor:wave:Application.php, look for this line:

if (function_exists('openssl_random_pseudo_bytes') && substr(PHP_OS, 0, 3) != 'WIN')

change it to:

if (false)

I did exactly that, and I'm still having issues, I can get to the section where you set up the main administrator and then after that it takes ages and goes to a blank page (because of the mod Mike asked me to do) if I refresh I get the same error again.

I've tried different browsers etc, but nothing has worked, I've done search after search and for the lift of me I just can't get to the bottom of it, and I'm just wondering if someone has got any more ideas.
 

Floris

I'm just me :) Hi.
Staff member
Jan 1, 2001
60,248
1,473
930
48
Netherlands
mrfloris.com
You sure all the files are uploaded, and that you're doing /install/ and not upgrade? That the dirs are properly chmodded, and the MAMP setup is not too outdated?
 

CurveGotti

OMG Member
Oct 6, 2010
264
0
75
904
Also did you check the error logs for any hidden clues? Do you know exactly which step that causes things to stop...?
 

Mikey

:mikey:
Staff member
Jan 26, 2008
17,835
691
510
34
Disunited Queendom
mikeylicio.us
It's possible that maybe PHP is set up incorrectly to not allow $_POST ?

Try this script (copy and put it into test.php and upload it) on your localhost only.

PHP:
<?php
if ($_POST['formdata']) {
	$cleaninput = htmlspecialchars($_POST['formdata'], ENT_QUOTES);
	echo 'You typed: <b>'.$cleaninput.'</b>';
	echo  '<form action="'.$_SERVER['PHP_SELF'].'" method="post">
	<input name="formdata" type="text" id="formdata" value="'.$cleaninput.'" />
	<input type="submit" />
	</form>';
} else {
	echo  '<form action="'.$_SERVER['PHP_SELF'].'" method="post">
	<input name="formdata" type="text" id="formdata" placeholder="Type here!" />
	<input type="submit" />
	</form>';
}
?>

It's a long shot, and I don't even know if POST can be disabled by a PHP configuration variable (but maybe?), but try it.

You know POST works if you type something into the box of the script and then hit submit, it should return the text you just typed.

2011-07-10-04h25_48.png


(note, this script is independent of xenforo)
 

Stormraven

Trusted Member
Oct 24, 2010
1,836
0
150
36
Wales, UK
www.prowebforums.com
I've managed to sort the issue. I reverted back to PHP 5.2.17 instead of PHP 5.3.6 which I was on before and it fixed the issue.

Just wanted to update you all just incase other members came across the issue in future. Thanks to all of you who helped me :)
 
  • Like
Reactions: 3 people

Steven Moore

OMG Member
Oct 22, 2010
1,084
0
115
43
Jefferson City, Missouri
Sorry about not replying, had to prep for finals, friend came in from out of town, etc. There is an issue currently with PHP 5.3.6 that is causing execution time to be exceeded, PHP files not properly executing code. So glad you reverted back to an old version.
 
  • Like
Reactions: 1 person

CurveGotti

OMG Member
Oct 6, 2010
264
0
75
904
Sorry about not replying, had to prep for finals, friend came in from out of town, etc. There is an issue currently with PHP 5.3.6 that is causing execution time to be exceeded, PHP files not properly executing code. So glad you reverted back to an old version.

Thanks for sharing I'll be sure to avoid updating until that is corrected.
 
Status
Not open for further replies.