-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue installing the example plugin #157
Comments
Can you please provide the error that you receive? |
@ken-bem here is the error i am recieving. Parse error: syntax error, unexpected '.' in C:\path\to\project\wp-content\plugins\example-plugin\vendor\illuminate\database\Capsule\Manager.php on line 199 |
You may need to check if there is any incompatibility with other plugins you have installed, I had an issue with Herbert + Gravity Forms + WP Rest. Needed to put GF in non conflict mode. |
Actually i was just testing it out, so i tried installing it on a completely fresh copy of wordpress without any plugin or themes. |
@omer414 I think you've forgot to run composer
|
@jasonagnew thankyou jasonagnew for the quick response. Well this is my first time using herbert, but i have a bit of experience with laravel and composer.
Thats it, right? |
Not a problem
|
@jasonagnew ok this is exactly what i have been doing, but still getting the same error. On the last step instead of symbolic link i am just pasting it in the plugins directory. Here is the error i am recieving on plugin activation
Have you tried it on the latest wordpress version? |
Naw its not that. It's pulling in code that requires php 5.6. You could open the {
"name": "getherbert/herbert-plugin",
"description": "Herbert plugin",
"license": "MIT",
"require": {
"getherbert/framework": "~0.9",
"illuminate/http": "5.1"
},
"config": {
"preferred-install": "dist"
},
"minimum-stability": "dev",
"autoload": {
"psr-4": {
"ApiPosts\\": "app/"
}
}
} Then run composer again. |
This is becoming boring the composer stuff. |
@onigetoc what do you mean? |
@ken-bem You can't use composer or command line on a shared server. |
Well, true, but you can overcome this by setting your IDE that every time you save it uploads the changes to the hosting via FTP. I use Intellij and my PHP files are transferred as soon as i save. |
Hi @ken-bem |
No i rarely run it on my computer, i have a partition on a shared hosting server where i put all my plugins and i test them on the live site, also helps prevent the usual works on my machine but not on the live page |
Hey,
I am having some issues installing the example plugin. So here is the steps i follow.
Step 1: while inside wp-content/plugins
git clone https://github.com/getherbert/example-plugin.git
Step 2: cd into the new directory then i do composer install, which downloads all the packages.
Then i try to activate the plugin, but i still cant activate the plugin from the plugin page. Is there something i am doing wrong??
The text was updated successfully, but these errors were encountered: