Support » Plugin: WP MVC » [Plugin: WP MVC] code generation utility wpmvc throwing error

Viewing 3 replies - 1 through 3 (of 3 total)
  • Are you sure register_argc_argv is on?
    Did you try to print_r($argv) at the top of core/wpmvc.php to make sure of it?

    I tried that and here is what prints before the error messages:

    Array
    (
    [0] => ./core/wpmvc.php
    [1] => generate
    [2] => plugin
    [3] => TestApp
    )

    Added this to wpmvc.php file and problem solved.

    $_SERVER = array(
    “HTTP_HOST” => “http://mysite.com”,
    “SERVER_NAME” => “http://mysite.com”,
    “REQUEST_URI” => “/”,
    “REQUEST_METHOD” => “GET”
    );

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP MVC] code generation utility wpmvc throwing error’ is closed to new replies.