basilicom / pimcore-plugin-participation

Pimcore framework to help building raffles and subscriptions
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Installation problem #1

Open Yivan opened 7 years ago

Yivan commented 7 years ago

Hello, I just try to install the plugin, but I get some error. I install it via composer, activate the plugin, but when i click install in the extension panel, I get error in the response request:

<br />
<b>Strict Standards</b>:  Non-static method Participation\Plugin::createDocuments() should not be called
 statically in <b>www\plugins\Participation\lib\Participation\Plugin.php</b
> on line <b>76</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Participation\Plugin::createDocumentTypes() should not be
 called statically in <b>www\plugins\Participation\lib\Participation\Plugin
.php</b> on line <b>77</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Participation\Plugin::createEmailDocuments() should not be
 called statically in <b>www\plugins\Participation\lib\Participation\Plugin
.php</b> on line <b>78</b><br />
{"message":"Error: Unable to create email document page [\/participation-confirmation]: ParentID and
 ID is identical, an element can't be the parent of itself.","reload":false,"status":{"installed":false
},"success":true}

Test was done on the last stable Pimcore (4.4.1, build 4008), Windows server. Thanks.

Yivan commented 7 years ago

Ok I fixed all the error by adding static keyword to the function: private static function createDocuments() private static function createDocumentTypes() private static function createEmailDocuments() private static function createConfigFile()

And by changing in plugin.php, line 246 (https://github.com/basilicom/pimcore-plugin-participation/blob/master/lib/Participation/Plugin.php#L246): Page::getByPath(dirname(self::DOCUMENT_EMAIL_CONFIRMATION_PATH)) By: Page::getByPath(str_replace("\\", "/", dirname(self::DOCUMENT_EMAIL_CONFIRMATION_PATH)))

After this, install work ok, and all necessary things are created.

If you could add those change to the plugin so next user on Windows and with Strict level won't have any problem this would be great. Thanks a lot!

christophluehr commented 7 years ago

hi!

your feedback is highly appreciated, I'll definitely take a look at it tomorrow!

Kind regards, Chris

Am 22.11.2016 7:27 Nachm. schrieb "Yivan" notifications@github.com:

Ok I fixed all the error by adding static keyword to the function: private static function createDocuments() private static function createDocumentTypes() private static function createEmailDocuments() private static function createConfigFile()

And by changing in plugin.php, line 246 (https://github.com/basilicom/ pimcore-plugin-participation/blob/master/lib/Participation/Plugin.php#L246): Page::getByPath(dirname(self::DOCUMENT_EMAIL_CONFIRMATION_PATH)) By: Page::getByPath(str_replace("\", "/", dirname(self::DOCUMENTEMAIL CONFIRMATION_PATH)))

After this, install work ok, and all necessary things are created.

If you could add those change to the plugin so next user on Windows and with Strict level won't have any problem this would be great. Thanks a lot!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/basilicom/pimcore-plugin-participation/issues/1#issuecomment-262323622, or mute the thread https://github.com/notifications/unsubscribe-auth/ABSipGwh6_LEfY0T8xmR9hZSt1PfqEUvks5rAzQIgaJpZM4K5wyb .