Can't complete Xenforo Install Localhost

Status
Not open for further replies.

Stormraven

Trusted Member
Joined
Oct 24, 2010
Messages
1,836
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
Joined
Jan 1, 2001
Messages
60,189
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?
 

Steven Moore

OMG Member
Joined
Oct 22, 2010
Messages
1,084
What is the address your using for your install XenForo on your localhost? What version of OS are you currently running?

Sorry if I'm behind, just noticed this thread.
 

CurveGotti

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

Floris

I'm just me :) Hi.
Staff member
Joined
Jan 1, 2001
Messages
60,189
xf_error_log table will disclose any registered errors.
 

Mikey

:mikey:
Staff member
Joined
Jan 26, 2008
Messages
17,835
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
Joined
Oct 24, 2010
Messages
1,836
Thanks for this Mikey. I will give it a try tomorrow and let you know how I get on :) Thanks once again.
 

Stormraven

Trusted Member
Joined
Oct 24, 2010
Messages
1,836
Yep, it's returning the text I typed :( Thanks for taking the time though mikey :) If I figure it out, I'll post back here, but in the meantime, anyone other ideas? :(
 

Stormraven

Trusted Member
Joined
Oct 24, 2010
Messages
1,836
Sorry Steven, missed your post. http://localhost/xenforo etc. I'm using the latest version of Mac OS too.

I've now got a different error:

Fatal error: Maximum execution time of 120 seconds exceeded in /Users/iestyn/Sites/xenfor:wave:library/Zend/Validate/Hostname.php on line 591
 

Stormraven

Trusted Member
Joined
Oct 24, 2010
Messages
1,836
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 :)
 

Steven Moore

OMG Member
Joined
Oct 22, 2010
Messages
1,084
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.
 

CurveGotti

OMG Member
Joined
Oct 6, 2010
Messages
264
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.
Top