michaeluno / admin-page-framework

Facilitates WordPress plugin and theme development.
http://admin-page-framework.michaeluno.jp/
Other
339 stars 71 forks source link

Problem v3 #54

Closed patrickf0 closed 10 years ago

patrickf0 commented 10 years ago

Hi there,

I just wanted to test your 3.0.0b branch. I uploaded it in my fresh wordpress installation, but when I want to activate it, browser says: no data received?

What´s wrong?

michaeluno commented 10 years ago

I don't know.

I could install it on a local test server without any problem. However, I tried it with a remote server and when I activated it, indeed it gave the 500 Internal Server Error page. The server log says

[error] [client ...] Premature end of script headers: /home/.../www/wptest/wordpress/wp-admin/plugins.php

michaeluno commented 10 years ago

Okay, maybe it could be a PHP version compatibility issue. When I changed the PHP version to 5.4.3 from 5.2.4 on the local environment, the following error started occurring.

Fatal error: Maximum function nesting level of '100' reached, aborting! in ...\wp_test\wp-includes\plugin.php on line 85

I'll see if I can fix this. Thanks for the report.

patrickf0 commented 10 years ago

Well when I change the PHP Version to 5.2.17. instead of 5.5.3 I get a blank page.

michaeluno commented 10 years ago

It should be working by now.

I was using the following method to call the parent class constructor.

$aArgs = func_get_args();
call_user_func_array( array( $this, "parent::__construct" ), $aArgs );

It was working in PHP v5.2.4 but not in v5.4.3.

As for your version v5.2.17, I'm not sure. Please try the updated one. It should work now.

patrickf0 commented 10 years ago

Its working even in 5.5.3 as far as I can tell ;)

michaeluno commented 10 years ago

Phew, thanks!