impresspages / ImpressPages

ImpressPages is php framework with admin panel. Build functional website in one hour.
http://www.impresspages.org
Other
501 stars 179 forks source link

Problem to load Plugins #832

Open boing6000 opened 7 years ago

boing6000 commented 7 years ago

In localhost using this new structure works fine. When using in production in the host environment throws exceptions when try to load Plugin\name\AdminController or Plugin\name\widget\name\Controller PHP Fatal error: Uncaught exception 'Ip\Exception' with message 'Requested controller doesn't exist. in /home/ulabonbp/vendor/impresspages/impresspages/Ip/Application.php:246

In the controller of widget i render a form created in the generateHtml function in widget controller

PHP Stack trace:

  1. {main}() /home/ulabonbp/public_html/index.php:0
  2. Ip\Application->run() /home/ulabonbp/public_html/index.php:20
  3. Ip\Application->handleRequest() /home/ulabonbp/vendor/impresspages/impresspages/Ip/Application.php:410
  4. Ip\Application->_handleOnlyRequest() /home/ulabonbp/vendor/impresspages/impresspages/Ip/Application.php:304
  5. ipEvent() /home/ulabonbp/vendor/impresspages/impresspages/Ip/Application.php:283
  6. Ip\Dispatcher->event() /home/ulabonbp/vendor/impresspages/impresspages/Ip/Functions.php:343
  7. Ip\Internal\Dispatcher\EventDispatcher->handle() /home/ulabonbp/vendor/impresspages/impresspages/Ip/Dispatcher.php:125
  8. call_user_func:{/home/ulabonbp/vendor/impresspages/impresspages/Ip/Internal/Dispatcher/EventDispatcher.php:38}() /home/ulabonbp/vendor/impresspages/impresspages/Ip/Internal/Dispatcher/EventDispatcher.php:38
  9. Ip\Internal\Admin\Event::ipBeforeController() /home/ulabonbp/vendor/impresspages/impresspages/Ip/Internal/Dispatcher/EventDispatcher.php:38
  10. Ip\Internal\Content\Helper::initManagement() /home/ulabonbp/vendor/impresspages/impresspages/Ip/Internal/Admin/Event.php:120
  11. Ip\WidgetController->adminHtmlSnippet() /home/ulabonbp/vendor/impresspages/impresspages/Ip/Internal/Content/Helper.php:34
  12. Ip\View->render() /home/ulabonbp/vendor/impresspages/impresspages/Ip/WidgetController.php:280
  13. require() /home/ulabonbp/vendor/impresspages/impresspages/Ip/View.php:118
jankus commented 7 years ago

If your localhost is based on Windows and server on unix then it could be missed capital letter. Windows don't care about it while unix is case sensitive. Plugins, widgets, theme must start from a capital letter and should be configured accordingly.

boing6000 commented 7 years ago

I was removed all the plugins and just this plugin the error continues: "impresspages/plugin-google-analytics": "*"