Support » Plugin: WP MVC » Can’t use wpmvc

• Resolved erisal

(@erisal)

Hi,
I’ve a WordPress local project with wp-mvc actived.
I use wamp server on Windows and phpstorm as IDE.
When I try to use >php wpmvc command, I obtain this message :

mvc_core_path=”$(dirname$0)/core/”
# Allow for a custom path to the PHP executable to be set in $WPMVC_PHP if [ -n “$WPMVC_PHP” ]; then
eval “${WPMVC_PHP} -q${mvc_core_path}wpmvc.php $@” else php -q “${mvc_core_path}wpmvc.php” “\$@”
fi

I don’t understand how to solve this issue in your doc.
Can you help me, please ?

Best Regards
Eric.

Viewing 6 replies - 1 through 6 (of 6 total)
• shest

(@shest)

Hi,
Maybe you can try the wpmvc.bat ?
“Using the utility on a Windows machine
If you are using a Windows machine, you can run the DOS version of this utility by replacing ./wpmvc with wpmvc.bat in the commands in the following sections. You’ll need to cd into the wp-mvc directory first, though:
cd path\to\plugins\wp-mvc”
Source: http://wpmvc.org/documentation/creating_plugins/generating_code.html

erisal

(@erisal)

Hi,
I’ve already do it and all that’s in the documentation.
But thanks for your reply.

dongreco

(@dongreco)

Hi,

can you call >php -v
?
If you dont get current php version and further infos, it seems your PHP path is not globaly(system variables) known. Or there is a other reason wy php can not be executed the way you use it.

erisal

(@erisal)

Yes I can call >php -v :

PHP 7.2.10 (cli) (built: Sep 13 2018 00:48:27) ( ZTS MSVC15 (Visual C++ 2017) x64 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

Plugin Author Robert Peake

(@robertpeake)

I’m sorry to say Windows installations aren’t very well supported these days. However, if you would like to contribute an improvement for Windows servers to the codebase, that is always welcome: https://github.com/tombenner/wp-mvc

san0712

(@san43510)

@erisal Check if mysql is running. Or else, you’ll see a html output which contains ‘Database Error’

Viewing 6 replies - 1 through 6 (of 6 total)
• You must be logged in to reply to this topic.