I'm upgrading from ZF2 to ZF3 and this goes quite well so far except the following issue when I want to load my application:
ERROR Zend\View\Renderer\PhpRenderer::render: Unable to render template "error"; resolver could not resolve to a file
#0 /home/myproject/vendor/zendframework/zend-view/src/View.php(207): Zend\View\Renderer\PhpRenderer->render()
#1 /home/myproject/vendor/zendframework/zend-view/src/View.php(236): Zend\View\View->render(Object(Zend\View\Model\ViewModel))
#2 /home/myproject/vendor/zendframework/zend-view/src/View.php(200): Zend\View\View->renderChildren(Object(Zend\View\Model\ViewModel))
#3 /home/myproject/vendor/zendframework/zend-mvc/src/View/Http/DefaultRenderingStrategy.php(105): Zend\View\View->render(Object(Zend\View\Model\ViewModel))
#4 /home/myproject/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\View\Http\DefaultRenderingStrategy->render(Object(Zend\Mvc\MvcEvent))
#5 /home/myproject/vendor/zendframework/zend-eventmanager/src/EventManager.php(171): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent))
#6 /home/myproject/vendor/zendframework/zend-mvc/src/View/Http/DefaultRenderingStrategy.php(123): Zend\EventManager\EventManager->triggerEvent(Object(Zend\Mvc\MvcEvent))
#7 /home/myproject/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\View\Http\DefaultRenderingStrategy->render(Object(Zend\Mvc\MvcEvent))
#8 /home/myproject/vendor/zendframework/zend-eventmanager/src/EventManager.php(171): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent))
#9 /home/myproject/vendor/zendframework/zend-mvc/src/Application.php(367): Zend\EventManager\EventManager->triggerEvent(Object(Zend\Mvc\MvcEvent))
#10 /home/myproject/vendor/zendframework/zend-mvc/src/Application.php(326): Zend\Mvc\Application->completeRequest(Object(Zend\Mvc\MvcEvent))
#11 /home/myproject/public/index.php(52): Zend\Mvc\Application->run()
#12 {main}
I thought the issue was I didn't had Zend\View loaded in my modules but it did load using composer autoload, when I add it again to my modules I get that it cannot be initilized, this might be because it already has.
Back to my issue, getConfig() is changed like described here:
https://docs.zendframework.com/tutorials/migration/to-v3/application/
As I have ofcourse looked around and even the only topic here didn't help me so far.
Related
I am trying to use VikBooking on my localhost (XAMPP). After installing and activating the plugin, this error keeps popping up anytime I want to configure or import sample data.
Fatal error: Uncaught Error: Class "VBORemindersHelper" not found in
C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\admin\helpers\widgets\reminders.php:420
Stack trace: #0
C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\admin\helpers\admin_widgets.php(336):
VikBookingAdminWidgetReminders->preload() #1
C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\admin\layouts\sidepanel\multitasking.php(32):
VikBookingHelperAdminWidgets->getWidgetNames(true) #2
C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\libraries\adapter\layout\file.php(135):
include('C:\xampp\htdocs...') #3
C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\libraries\adapter\layout\helper.php(69):
JLayoutFile->render(Array) #4
C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\admin\helpers\helper.php(222):
JLayoutHelper::render('sidepanel.multi...', Array) #5
C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\admin\controller.php(5443):
VikBookingHelper::printHeader('1') #6
C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\libraries\adapter\mvc\controller.php(323): VikBookingController->prices() #7
C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\libraries\system\body.php(55):
JController->execute('prices') #8
C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\vikbooking.php(196):
VikBookingBody::process() #9
C:\xampp\htdocs\hotel\wp-includes\class-wp-hook.php(307):
{closure}('') #10
C:\xampp\htdocs\hotel\wp-includes\class-wp-hook.php(331):
WP_Hook->apply_filters(NULL, Array) #11
C:\xampp\htdocs\hotel\wp-includes\plugin.php(474):
WP_Hook->do_action(Array) #12
C:\xampp\htdocs\hotel\wp-settings.php(587): do_action('init') #13
C:\xampp\htdocs\hotel\wp-config.php(96):
require_once('C:\xampp\htdocs...') #14
C:\xampp\htdocs\hotel\wp-load.php(50):
require_once('C:\xampp\htdocs...') #15
C:\xampp\htdocs\hotel\wp-admin\admin.php(34):
require_once('C:\xampp\htdocs...') #16 {main} thrown in
C:\xampp\htdocs\hotel\wp-content\plugins\vikbooking\admin\helpers\widgets\reminders.php
on line 420
That used to be a conflict with Windows servers and the new spl autoload register functions introduced with the 1.5.x series of Vik Booking for WordPress. Due to an unescaped backslash (Windows directory separator is a backslash rather than a slash like on Linux/Unix servers) in a regex, the spl autoloader was unable to require the proper class file for one admin widget. Just update the plugin to its latest version and that error will disappear.
In any case, you can contact the tech VikWP team by using the official website. You will get a prompt answer.
I've just used composer to get Maatwebsite Laravel-Excel. I am about to use it but I am brand new to installing/using packages. So far I've only used what is shipped with Laravel.
I'm reading the documentation and am following the steps (I've done the first three steps) but I am confused by this line;
The class is binded to the ioC as excel
$excel = App::make('excel');
I don't really know what most of that means. I have read up a little on ioC and then Dependency Injection (also new to me). But I still don't know - is this part of the docs telling me to do something?? I ran php artisan on the command line (for another purpose) and I got this back;
[2015-04-23 13:42:09] local.ERROR: exception 'BadMethodCallException' with message 'Call to undefined method [package]' in /vagrant/source/laravel-excel/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php:226
Stack trace:
#0 /vagrant/source/laravel-excel/vendor/maatwebsite/excel/src/Maatwebsite/Excel/ExcelServiceProvider.php(45): Illuminate\Support\ServiceProvider->__call('package', Array)
#1 /vagrant/source/laravel-excel/vendor/maatwebsite/excel/src/Maatwebsite/Excel/ExcelServiceProvider.php(45): Maatwebsite\Excel\ExcelServiceProvider->package('maatwebsite/exc...')
#2 [internal function]: Maatwebsite\Excel\ExcelServiceProvider->boot()
#3 /vagrant/source/laravel-excel/vendor/laravel/framework/src/Illuminate/Container/Container.php(523): call_user_func_array(Array, Array)
#4 /vagrant/source/laravel-excel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(703): Illuminate\Container\Container->call(Array)
#5 /vagrant/source/laravel-excel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(685): Illuminate\Foundation\Application->bootProvider(Object(Maatwebsite\Excel\ExcelServiceProvider))
#6 [internal function]: Illuminate\Foundation\Application->Illuminate\Foundation\{closure}(Object(Maatwebsite\Excel\ExcelServiceProvider), 19)
#7 /vagrant/source/laravel-excel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(686): array_walk(Array, Object(Closure))
#8 /vagrant/source/laravel-excel/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php(15): Illuminate\Foundation\Application->boot()
#9 /vagrant/source/laravel-excel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(181): Illuminate\Foundation\Bootstrap\BootProviders->bootstrap(Object(Illuminate\Foundation\Application))
#10 /vagrant/source/laravel-excel/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(195): Illuminate\Foundation\Application->bootstrapWith(Array)
#11 /vagrant/source/laravel-excel/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(92): Illuminate\Foundation\Console\Kernel->bootstrap()
#12 /vagrant/source/laravel-excel/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 {main}
php artisan ran sucessfully when I took out the maatwebsite references in config/app.php - so there must be more to do here but I don't know what.
Looks like the documentation is listing the wrong version. The 1.x branch is meant for Laravel 4.x. The GitHub page provides a better guide for Laravel 5 users. Try changing the version to 2.* in your composer.json and re-run composer update. Add the correct references back to your app.php you should be able to run php artisan without errors.
The App::make('excel') command should also work after that.
I update from Magento 1.6.2 to 1.8.1 and now I get this on my page:
Warning: session_module_name(): Cannot find named PHP session module (memcache) in /app/code/core/Mage/Core/Model/Session/Abstract/Varien.php on line 73
#0 [internal function]: mageCoreErrorHandler(2, 'session_module_...', '/var/www/vhosts...', 73, Array)
#1 /app/code/core/Mage/Core/Model/Session/Abstract/Varien.php(73): session_module_name('memcache')
#2 /app/code/core/Mage/Core/Model/Session/Abstract/Varien.php(168): Mage_Core_Model_Session_Abstract_Varien->start('adminhtml')
#3 /app/code/core/Mage/Core/Model/Session/Abstract.php(84): Mage_Core_Model_Session_Abstract_Varien->init('core', 'adminhtml')
#4 /app/code/core/Mage/Core/Model/Session.php(42): Mage_Core_Model_Session_Abstract->init('core', 'adminhtml')
#5 /app/code/core/Mage/Core/Model/Config.php(1353): Mage_Core_Model_Session->__construct(Array)
#6 /app/Mage.php(463): Mage_Core_Model_Config->getModelInstance('core/session', Array)
#7 /app/Mage.php(477): Mage::getModel('core/session', Array)
#8 /app/code/core/Mage/Core/Controller/Varien/Action.php(493): Mage::getSingleton('core/session', Array)
#9 /app/code/core/Mage/Adminhtml/Controller/Action.php(160): Mage_Core_Controller_Varien_Action->preDispatch()
#10 /app/code/core/Mage/Core/Controller/Varien/Action.php(407): Mage_Adminhtml_Controller_Action->preDispatch()
#11 /app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('index')
#12 /app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#13 /app/code/local/Mage/Core/Model/App.php(349): Mage_Core_Controller_Varien_Front->dispatch()
#14 /app/Mage.php(684): Mage_Core_Model_App->run(Array)
#15 index.php(87): Mage::run('', 'store')
#16 {main}
I have checked everything I could find on the net, but can't seem to solve this one?
I don't know what session module it is looking for? PHP? memcache?
I have been locked out for 3 days now!!!
It looks like your app/etc/local.xml file is configured to use the PHP memcache session storage handler. When Magento reads this configuration value in and tries to set the session handler with the session_module_name function it finds the version of PHP you're using doesn't have the memcache session hander installed and/or enabled.
You'll need to disable this configuration value in your app/etc/local.xml file and use the standard file/database session storage method, or you'll need to install/enable the session handler on the server you've installed Magento on.
I'm Using Mangento Version : 1.7.0.2
When i tried to install with the sample data which magneto, it gives me the following error. Does any have faced similar kind of an issue.
Error in file: "C:\xampp\htdocs\magento\app\code\core\Mage\Sales\sql\sales_setup
\mysql4-upgrade-0.9.16-0.9.17.php" - Can't retrieve entity config:
sales/quote_shipping_rate
Trace:
#0 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(645):
Mage::exception('Mage_Core', 'Error in file: ...')
#1 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(437):
Mage_Core_Model_Resource_Setup->_modifyResourceDb('upgrade', '0.9.16', '1.6.0.7')
#2 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(320):
Mage_Core_Model_Resource_Setup->_upgradeResourceDb('0.9.16', '1.6.0.7')
#3 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(235):
Mage_Core_Model_Resource_Setup->applyUpdates()
#4 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\App.php(417):
Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\App.php(343):
Mage_Core_Model_App->_initModules()
#6 C:\xampp\htdocs\magento\app\Mage.php(683): Mage_Core_Model_App->run(Array)
#7 C:\xampp\htdocs\magento\index.php(87): Mage::run('', 'store')
#8 {main}
I have found the answer for this problem. The Magento version which i was using was 1.7.0.2 and sample data used was magento-sample-data.1.1.2.zip which was not compatible with this version, hence i changed sample data to 1.6.1.zip.
After using this i could able to install the magento.
My issue was i did not update /app/etc/config.xml with the new file and it was lacking info on the core resource model. Make sure the config.xml fiel is the one that comes with the new version of magento.
I have Magento ver. 1.7.0.2 installed, with several extensions. When installing a new theme, there are a few extensions included in that theme. (Ves Hitec with "magento_easy_tabs-1.1", "Mpycho_Jquery_Lightboxes-1.2.0", "Venustheme_ProductScroll-1.1.0")
It seems "Venustheme_ProductScroll-1.1.0" is causing the problem. When hit Ves_extension>productscroll>configuration, I'll get an "There has been an error processing your request" error (other menuoptions ok).On frontend home page I get "internal server error" - product pages ok.
I have searched for a almost 2 weeks, including trying to get in touch with the vendor/developer with no luck!!
I think this is some conflicts, and not so hard to solve, please lead me in the right direction.
Here is the error:
a:5:{i:0;s:105:"Invalid config field backend model: venustheme_productscroll/system_config_backend_productscroll_checkQty";i:1;s:2024:"#0 /usr/local/pem/vhosts/102089/webspace/httpdocs/magento/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php(328): Mage::throwException('Invalid config ...')
#1/usr/local/pem/vhosts/102089/webspace/httpdocs/magento/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php(229): Mage_Adminhtml_Block_System_Config_Form->initFields(Object(Varien_Data_Form_Element_Fieldset), Object(Mage_Core_Model_Config_Element), Object(Mage_Core_Model_Config_Element))
#2/usr/local/pem/vhosts/102089/webspace/httpdocs/magento/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php(164): Mage_Adminhtml_Block_System_Config_Form->_initGroup(Object(Varien_Data_Form), Object(Mage_Core_Model_Config_Element), Object(Mage_Core_Model_Config_Element))
#3 /usr/local/pem/vhosts/102089/webspace/httpdocs/magento/app/code/core/Mage/Adminhtml/Block/System/Config/Edit.php(92): Mage_Adminhtml_Block_System_Config_Form->initForm()
#4 /usr/local/pem/vhosts/102089/webspace/httpdocs/magento/app/code/core/Mage/Adminhtml/controllers/System/ConfigController.php(107): Mage_Adminhtml_Block_System_Config_Edit->initForm()
#5 /usr/local/pem/vhosts/102089/webspace/httpdocs/magento/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Adminhtml_System_ConfigController->editAction()
#6 /usr/local/pem/vhosts/102089/webspace/httpdocs/magento/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('edit')
#7 /usr/local/pem/vhosts/102089/webspace/httpdocs/magento/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#8 /usr/local/pem/vhosts/102089/webspace/httpdocs/magento/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#9 /usr/local/pem/vhosts/102089/webspace/httpdocs/magento/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#10 /usr/local/pem/vhosts/102089/webspace/httpdocs/magento/index.php(104): Mage::run('', 'store')
#11 {main}";s:3:"url";s:120:"/magento/index.php/admin/admin/system_config/edit/section/venustheme_productscroll/key/0ab4cfadfe0b55f2cca35f94d7f388ed/";s:11:"script_name";s:18:"/magento/index.php";s:4:"skin";s:5:"admin";} here