doctrine orm:schema-tool:create - Class Bug does not exist - doctrine

Hi this is my first time doing doctrin22 but i cant get it to work,
here is my code
index.php
<?php
if (getenv('APPLICATION_ENV')) {
define('APPLICATION_ENV', getenv('APPLICATION_ENV'));
} else {
define('APPLICATION_ENV', 'production');
}
require_once 'Doctrine/Common/ClassLoader.php';
$classLoader = new \Doctrine\Common\ClassLoader('Doctrine');
$classLoader->register();
$config = new Doctrine\ORM\Configuration(); // (2)
// Proxy Configuration (3)
$config->setProxyDir(__DIR__.'/lib/MyProject/Proxies');
$config->setProxyNamespace('MyProject\Proxies');
$config->setAutoGenerateProxyClasses((APPLICATION_ENV == "development"));
// Mapping Configuration (4)
$driverImpl = new Doctrine\ORM\Mapping\Driver\XmlDriver(__DIR__."/config/mappings/xml");
$config->setMetadataDriverImpl($driverImpl);
// Caching Configuration (5)
if (APPLICATION_ENV == "development") {
$cache = new \Doctrine\Common\Cache\ArrayCache();
} else {
$cache = new \Doctrine\Common\Cache\ApcCache();
}
$config->setMetadataCacheImpl($cache);
$config->setQueryCacheImpl($cache);
// database configuration parameters (6)
$conn = array(
'driver' => 'pdo_sqlite',
'path' => __DIR__ . '/db.sqlite',
);
// obtaining the entity manager (7)
$evm = new Doctrine\Common\EventManager();
$entityManager = \Doctrine\ORM\EntityManager::create($conn, $config, $evm);
?>
cli-config.php
<?php
require_once 'index.php';
$helperSet = new \Symfony\Component\Console\Helper\HelperSet(array(
'em' => new \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper($entityManager)
));
?>
and my folder structure
myproject/index.php
myproject/cli-config.php
myproject/config/mappings/xml/Bug.dcm.xml
myproject/config/mappings/xml/Product.dcm.xml
myproject/config/mappings/xml/User.dcm.xml
when i run
myproject/doctrine orm:schema-tool:create --dump-sql
i get the following
doctrine orm:schema-tool:create --dump-sql
PHP Warning: class_parents(): Class Bug does not exist and could not be loaded in /usr/local/zend/share/pear/Doctrine/Common/Persistence/Mapping/RuntimeReflectionService.php on line 40
PHP Stack trace:
PHP 1. {main}() /usr/local/zend/bin/doctrine:0
PHP 2. include() /usr/local/zend/bin/doctrine:4
PHP 3. Doctrine\ORM\Tools\Console\ConsoleRunner::run() /usr/local/zend/bin/doctrine.php:50
PHP 4. Symfony\Component\Console\Application->run() /usr/local/zend/share/pear/Doctrine/ORM/Tools/Console/ConsoleRunner.php:39
PHP 5. Symfony\Component\Console\Application->doRun() /usr/local/zend/share/pear/Symfony/Component/Console/Application.php:118
PHP 6. Symfony\Component\Console\Command\Command->run() /usr/local/zend/share/pear/Symfony/Component/Console/Application.php:194
PHP 7. Doctrine\ORM\Tools\Console\Command\SchemaTool\AbstractCommand->execute() /usr/local/zend/share/pear/Symfony/Component/Console/Command/Command.php:224
PHP 8. Doctrine\ORM\Mapping\ClassMetadataFactory->getAllMetadata() /usr/local/zend/share/pear/Doctrine/ORM/Tools/Console/Command/SchemaTool/AbstractCommand.php:53
PHP 9. Doctrine\ORM\Mapping\ClassMetadataFactory->getMetadataFor() /usr/local/zend/share/pear/Doctrine/ORM/Mapping/ClassMetadataFactory.php:131
PHP 10. Doctrine\ORM\Mapping\ClassMetadataFactory->loadMetadata() /usr/local/zend/share/pear/Doctrine/ORM/Mapping/ClassMetadataFactory.php:178
PHP 11. Doctrine\ORM\Mapping\ClassMetadataFactory->getParentClasses() /usr/local/zend/share/pear/Doctrine/ORM/Mapping/ClassMetadataFactory.php:254
PHP 12. Doctrine\Common\Persistence\Mapping\RuntimeReflectionService->getParentClasses() /usr/local/zend/share/pear/Doctrine/ORM/Mapping/ClassMetadataFactory.php:231
PHP 13. class_parents() /usr/local/zend/share/pear/Doctrine/Common/Persistence/Mapping/RuntimeReflectionService.php:40
Warning: class_parents(): Class Bug does not exist and could not be loaded in /usr/local/zend/share/pear/Doctrine/Common/Persistence/Mapping/RuntimeReflectionService.php on line 40
Call Stack:
0.0001 625400 1. {main}() /usr/local/zend/bin/doctrine:0
0.0002 639440 2. include('/usr/local/zend/bin/doctrine.php') /usr/local/zend/bin/doctrine:4
0.0086 4245576 3. Doctrine\ORM\Tools\Console\ConsoleRunner::run() /usr/local/zend/bin/doctrine.php:50
0.0151 6311808 4. Symfony\Component\Console\Application->run() /usr/local/zend/share/pear/Doctrine/ORM/Tools/Console/ConsoleRunner.php:39
0.0164 6761376 5. Symfony\Component\Console\Application->doRun() /usr/local/zend/share/pear/Symfony/Component/Console/Application.php:118
0.0169 6761544 6. Symfony\Component\Console\Command\Command->run() /usr/local/zend/share/pear/Symfony/Component/Console/Application.php:194
0.0171 6761920 7. Doctrine\ORM\Tools\Console\Command\SchemaTool\AbstractCommand->execute() /usr/local/zend/share/pear/Symfony/Component/Console/Command/Command.php:224
0.0171 6761920 8. Doctrine\ORM\Mapping\ClassMetadataFactory->getAllMetadata() /usr/local/zend/share/pear/Doctrine/ORM/Tools/Console/Command/SchemaTool/AbstractCommand.php:53
0.0172 6764016 9. Doctrine\ORM\Mapping\ClassMetadataFactory->getMetadataFor() /usr/local/zend/share/pear/Doctrine/ORM/Mapping/ClassMetadataFactory.php:131
0.0172 6764064 10. Doctrine\ORM\Mapping\ClassMetadataFactory->loadMetadata() /usr/local/zend/share/pear/Doctrine/ORM/Mapping/ClassMetadataFactory.php:178
0.0172 6764280 11. Doctrine\ORM\Mapping\ClassMetadataFactory->getParentClasses() /usr/local/zend/share/pear/Doctrine/ORM/Mapping/ClassMetadataFactory.php:254
0.0173 6799712 12. Doctrine\Common\Persistence\Mapping\RuntimeReflectionService->getParentClasses() /usr/local/zend/share/pear/Doctrine/ORM/Mapping/ClassMetadataFactory.php:231
0.0173 6799760 13. class_parents() /usr/local/zend/share/pear/Doctrine/Common/Persistence/Mapping/RuntimeReflectionService.php:40
PHP Warning: array_reverse() expects parameter 1 to be array, boolean given in /usr/local/zend/share/pear/Doctrine/ORM/Mapping/ClassMetadataFactory.php on line 231
PHP Stack trace:
PHP 1. {main}() /usr/local/zend/bin/doctrine:0
PHP 2. include() /usr/local/zend/bin/doctrine:4
PHP 3. Doctrine\ORM\Tools\Console\ConsoleRunner::run() /usr/local/zend/bin/doctrine.php:50
PHP 4. Symfony\Component\Console\Application->run() /usr/local/zend/share/pear/Doctrine/ORM/Tools/Console/ConsoleRunner.php:39
PHP 5. Symfony\Component\Console\Application->doRun() /usr/local/zend/share/pear/Symfony/Component/Console/Application.php:118
PHP 6. Symfony\Component\Console\Command\Command->run() /usr/local/zend/share/pear/Symfony/Component/Console/Application.php:194
PHP 7. Doctrine\ORM\Tools\Console\Command\SchemaTool\AbstractCommand->execute() /usr/local/zend/share/pear/Symfony/Component/Console/Command/Command.php:224
PHP 8. Doctrine\ORM\Mapping\ClassMetadataFactory->getAllMetadata() /usr/local/zend/share/pear/Doctrine/ORM/Tools/Console/Command/SchemaTool/AbstractCommand.php:53
PHP 9. Doctrine\ORM\Mapping\ClassMetadataFactory->getMetadataFor() /usr/local/zend/share/pear/Doctrine/ORM/Mapping/ClassMetadataFactory.php:131
PHP 10. Doctrine\ORM\Mapping\ClassMetadataFactory->loadMetadata() /usr/local/zend/share/pear/Doctrine/ORM/Mapping/ClassMetadataFactory.php:178
PHP 11. Doctrine\ORM\Mapping\ClassMetadataFactory->getParentClasses() /usr/local/zend/share/pear/Doctrine/ORM/Mapping/ClassMetadataFactory.php:254
PHP 12. array_reverse() /usr/local/zend/share/pear/Doctrine/ORM/Mapping/ClassMetadataFactory.php:231
Warning: array_reverse() expects parameter 1 to be array, boolean given in /usr/local/zend/share/pear/Doctrine/ORM/Mapping/ClassMetadataFactory.php on line 231
Call Stack:
0.0001 625400 1. {main}() /usr/local/zend/bin/doctrine:0
0.0002 639440 2. include('/usr/local/zend/bin/doctrine.php') /usr/local/zend/bin/doctrine:4
0.0086 4245576 3. Doctrine\ORM\Tools\Console\ConsoleRunner::run() /usr/local/zend/bin/doctrine.php:50
0.0151 6311808 4. Symfony\Component\Console\Application->run() /usr/local/zend/share/pear/Doctrine/ORM/Tools/Console/ConsoleRunner.php:39
0.0164 6761376 5. Symfony\Component\Console\Application->doRun() /usr/local/zend/share/pear/Symfony/Component/Console/Application.php:118
0.0169 6761544 6. Symfony\Component\Console\Command\Command->run() /usr/local/zend/share/pear/Symfony/Component/Console/Application.php:194
0.0171 6761920 7. Doctrine\ORM\Tools\Console\Command\SchemaTool\AbstractCommand->execute() /usr/local/zend/share/pear/Symfony/Component/Console/Command/Command.php:224
0.0171 6761920 8. Doctrine\ORM\Mapping\ClassMetadataFactory->getAllMetadata() /usr/local/zend/share/pear/Doctrine/ORM/Tools/Console/Command/SchemaTool/AbstractCommand.php:53
0.0172 6764016 9. Doctrine\ORM\Mapping\ClassMetadataFactory->getMetadataFor() /usr/local/zend/share/pear/Doctrine/ORM/Mapping/ClassMetadataFactory.php:131
0.0172 6764064 10. Doctrine\ORM\Mapping\ClassMetadataFactory->loadMetadata() /usr/local/zend/share/pear/Doctrine/ORM/Mapping/ClassMetadataFactory.php:178
0.0172 6764280 11. Doctrine\ORM\Mapping\ClassMetadataFactory->getParentClasses() /usr/local/zend/share/pear/Doctrine/ORM/Mapping/ClassMetadataFactory.php:254
0.0176 6799840 12. array_reverse() /usr/local/zend/share/pear/Doctrine/ORM/Mapping/ClassMetadataFactory.php:231
PHP Warning: Invalid argument supplied for foreach() in /usr/local/zend/share/pear/Doctrine/ORM/Mapping/ClassMetadataFactory.php on line 231
PHP Stack trace:
PHP 1. {main}() /usr/local/zend/bin/doctrine:0
PHP 2. include() /usr/local/zend/bin/doctrine:4
PHP 3. Doctrine\ORM\Tools\Console\ConsoleRunner::run() /usr/local/zend/bin/doctrine.php:50
PHP 4. Symfony\Component\Console\Application->run() /usr/local/zend/share/pear/Doctrine/ORM/Tools/Console/ConsoleRunner.php:39
PHP 5. Symfony\Component\Console\Application->doRun() /usr/local/zend/share/pear/Symfony/Component/Console/Application.php:118
PHP 6. Symfony\Component\Console\Command\Command->run() /usr/local/zend/share/pear/Symfony/Component/Console/Application.php:194
PHP 7. Doctrine\ORM\Tools\Console\Command\SchemaTool\AbstractCommand->execute() /usr/local/zend/share/pear/Symfony/Component/Console/Command/Command.php:224
PHP 8. Doctrine\ORM\Mapping\ClassMetadataFactory->getAllMetadata() /usr/local/zend/share/pear/Doctrine/ORM/Tools/Console/Command/SchemaTool/AbstractCommand.php:53
PHP 9. Doctrine\ORM\Mapping\ClassMetadataFactory->getMetadataFor() /usr/local/zend/share/pear/Doctrine/ORM/Mapping/ClassMetadataFactory.php:131
PHP 10. Doctrine\ORM\Mapping\ClassMetadataFactory->loadMetadata() /usr/local/zend/share/pear/Doctrine/ORM/Mapping/ClassMetadataFactory.php:178
PHP 11. Doctrine\ORM\Mapping\ClassMetadataFactory->getParentClasses() /usr/local/zend/share/pear/Doctrine/ORM/Mapping/ClassMetadataFactory.php:254
Warning: Invalid argument supplied for foreach() in /usr/local/zend/share/pear/Doctrine/ORM/Mapping/ClassMetadataFactory.php on line 231
Call Stack:
0.0001 625400 1. {main}() /usr/local/zend/bin/doctrine:0
0.0002 639440 2. include('/usr/local/zend/bin/doctrine.php') /usr/local/zend/bin/doctrine:4
0.0086 4245576 3. Doctrine\ORM\Tools\Console\ConsoleRunner::run() /usr/local/zend/bin/doctrine.php:50
0.0151 6311808 4. Symfony\Component\Console\Application->run() /usr/local/zend/share/pear/Doctrine/ORM/Tools/Console/ConsoleRunner.php:39
0.0164 6761376 5. Symfony\Component\Console\Application->doRun() /usr/local/zend/share/pear/Symfony/Component/Console/Application.php:118
0.0169 6761544 6. Symfony\Component\Console\Command\Command->run() /usr/local/zend/share/pear/Symfony/Component/Console/Application.php:194
0.0171 6761920 7. Doctrine\ORM\Tools\Console\Command\SchemaTool\AbstractCommand->execute() /usr/local/zend/share/pear/Symfony/Component/Console/Command/Command.php:224
0.0171 6761920 8. Doctrine\ORM\Mapping\ClassMetadataFactory->getAllMetadata() /usr/local/zend/share/pear/Doctrine/ORM/Tools/Console/Command/SchemaTool/AbstractCommand.php:53
0.0172 6764016 9. Doctrine\ORM\Mapping\ClassMetadataFactory->getMetadataFor() /usr/local/zend/share/pear/Doctrine/ORM/Mapping/ClassMetadataFactory.php:131
0.0172 6764064 10. Doctrine\ORM\Mapping\ClassMetadataFactory->loadMetadata() /usr/local/zend/share/pear/Doctrine/ORM/Mapping/ClassMetadataFactory.php:178
0.0172 6764280 11. Doctrine\ORM\Mapping\ClassMetadataFactory->getParentClasses() /usr/local/zend/share/pear/Doctrine/ORM/Mapping/ClassMetadataFactory.php:254
[ReflectionException]
Class Bug does not exist
orm:schema-tool:create [--dump-sql]

Since you didn't post your Bug.dcm.xml file I can't see if you declared your class right. But looking at your xml file name you forgot to add a namespace to your Bug class. If you give your Bug class the namespace Foo your filename should be Foo.Bug.dcm.xml.
One other thing you need to do is adding the choosen namespace to your doctrine classloader. Just like you did with the Doctrine namespace. I case you use the namespace Foo it will look like this:
$classLoader = new \Doctrine\Common\ClassLoader('Foo', <<PATH_TO_FOO>>);
$classLoader->register();
Replace <> to the path where your namespace starts.
If this does not fix your problem post your Bug.dcm.xml.

Related

All queries with 'ON CLUSTER' clause timed out with error message 'There is no a local address in host list'

We're building up a ClickHouse cluster (version 20.1.8.41) on 7 nodes, using a "circular replica" pattern (i.e. 7 shards * 2 replicas on different nodes), with an extra ZooKeeper cluster.
The /etc/hosts files are all correctly configured, and the cluster started succcessfully.
However, when we're executing distributed DDL queries, they all hanged and eventually timed out, e.g.:
:) create database ods on cluster sht_ck_cluster_1;
CREATE DATABASE ods ON CLUSTER sht_ck_cluster_1
→ Progress: 0.00 rows, 0.00 B (0.00 rows/s., 0.00 B/s.) Received exception from server (version 20.1.8):
Code: 159. DB::Exception: Received from localhost:9002. DB::Exception: Watching task /clickhouse/task_queue/ddl/query-0000000007 is executing longer than distributed_ddl_task_timeout (=180) seconds. There are 14 unfinished hosts (0 of them are currently active), they are going to execute the query in background.
0 rows in set. Elapsed: 180.589 sec.
The clickhouse-server.log on the client node gives information below:
2020.04.23 00:33:33.327414 [ 32 ] {c3c49bd3-333d-4fca-aa2f-2520f5c0cb9f} <Error> executeQuery: Code: 159, e.displayText() = DB::Exception: Watching task /clickhouse/task_queue/ddl/query-0000000007 is executing longer than distributed_ddl_task_timeout (=180) seconds. There are 14 unfinished hosts (0 of them are currently active), they are going to execute the query in background (version 20.1.8.41) (from 127.0.0.1:42198) (in query: CREATE DATABASE ods ON CLUSTER sht_ck_cluster_1), Stack trace (when copying this message, always include the lines below):
0. 0xb2087bc Poco::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) in /usr/bin/clickhouse
1. 0x4d8e3c9 DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) in /usr/bin/clickhouse
2. 0x84846b9 DB::DDLQueryStatusInputStream::readImpl() in /usr/bin/clickhouse
3. 0x8345e3f DB::IBlockInputStream::read() in /usr/bin/clickhouse
4. 0x833d541 DB::AsynchronousBlockInputStream::calculate() in /usr/bin/clickhouse
5. 0x833e113 ? in /usr/bin/clickhouse
6. 0x4dc8b7a ThreadPoolImpl<ThreadFromGlobalPool>::worker(std::__1::__list_iterator<ThreadFromGlobalPool, void*>) in /usr/bin/clickhouse
7. 0x4dc9790 ThreadFromGlobalPool::ThreadFromGlobalPool<void ThreadPoolImpl<ThreadFromGlobalPool>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(void&&, void ThreadPoolImpl<ThreadFromGlobalPool>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()&&...)::'lambda'()::operator()() const in /usr/bin/clickhouse
8. 0x4dc7eca ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) in /usr/bin/clickhouse
9. 0x4dc69dc ? in /usr/bin/clickhouse
10. 0x7e25 start_thread in /usr/lib64/libpthread-2.17.so
11. 0xfebad clone in /usr/lib64/libc-2.17.so
What seems weird is that the clickhouse-server.log on the other nodes says:
2020.04.23 00:30:32.744984 [ 23 ] {} <Debug> DDLWorker: Processing tasks
2020.04.23 00:30:32.744992 [ 24 ] {} <Debug> DDLWorker: Cleaning queue
2020.04.23 00:30:32.746629 [ 23 ] {} <Debug> DDLWorker: Will not execute task query-0000000007: There is no a local address in host list
2020.04.23 00:30:32.746641 [ 23 ] {} <Debug> DDLWorker: Waiting a watch
I'm completely confused about this message. I've tried restarting the cluster, disabling DNS cache, and setting the parameter explicitly, but nothing worked.
What else should I do? Many thanks.
Regards
On cluster does not work "circular replica"

Cannot uninstall Magento data migration tool (component type not set)

First question here, so let me know if I am doing something wrong.
I have a Magento 2.1.4 installation and I am trying to uninstall magento/data-migration-tool by going into Setup --> Component Manager. Every attempt fails. Console log gives the following details.
[2017-04-26 01:05:02 CDT] Job "maintenance_mode {"enable":true}" has been started
[2017-04-26 01:05:02 CDT] Magento maintenance mode is enabled.
[2017-04-26 01:05:02 CDT] Job "maintenance_mode {"enable":true}" has successfully completed
[2017-04-26 06:24:02 UTC] Job "setup:cache:disable []" has started
Changed cache status:
config: 1 -> 0
layout: 1 -> 0
block_html: 1 -> 0
collections: 1 -> 0
reflection: 1 -> 0
db_ddl: 1 -> 0
eav: 1 -> 0
customer_notification: 1 -> 0
full_page: 1 -> 0
config_integration: 1 -> 0
config_integration_api: 1 -> 0
translate: 1 -> 0
config_webservice: 1 -> 0
[2017-04-26 06:24:02 UTC] Job "setup:cache:disable []" has been successfully completed
[2017-04-26 06:24:02 UTC] Job "setup:component:uninstall {"components":[{"name":"magento/data-migration-tool"}],"dataOption":false}" has started
[2017-04-26 06:24:02 UTC] An error occurred while executing job "setup:component:uninstall {"components":[{"name":"magento/data-migration-tool"}],"dataOption":false}": Component type not set
[2017-04-26 06:24:02 UTC] Job "setup:cache:enable ["config layout block_html collections reflection db_ddl eav customer_notification full_page config_integration config_integration_api translate config_webservice"]" has started
Changed cache status:
config: 0 -> 1
layout: 0 -> 1
block_html: 0 -> 1
collections: 0 -> 1
reflection: 0 -> 1
db_ddl: 0 -> 1
eav: 0 -> 1
customer_notification: 0 -> 1
full_page: 0 -> 1
config_integration: 0 -> 1
config_integration_api: 0 -> 1
translate: 0 -> 1
config_webservice: 0 -> 1
Cleaned cache types:
config
layout
block_html
collections
reflection
db_ddl
eav
customer_notification
full_page
config_integration
config_integration_api
translate
config_webservice
[2017-04-26 06:24:03 UTC] Job "setup:cache:enable ["config layout block_html collections reflection db_ddl eav customer_notification full_page config_integration config_integration_api translate config_webservice"]" has been successfully completed
You can uninstall a module through composer if it was installed using composer. If yes then use this command:
php bin/magento module:uninstall -r <Vendor>_<Module>
-r flag removes module data. then issue:
php bin/magento setup:upgrade
If module was not installed through composer:
remove the module directory app/code//
drop module database tables (if it created any)
remove entry from core_config_data and setup_module tables
Run command
php bin/magento setup:upgrade

Parse error: Invalid numeric literal application\config\constants.php on line 43

Parse error: Invalid numeric literal in C:\xampp\htdocs\aecollegealumni.com\application\config\constants.php on line 43
in constant file i have define('std',021)
and showing above error. i am using xammp server 3.2.2, php 7.1.1 and apache 2.4
can you please help me
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\aecollegealumni.com\system\database\drivers\mysql\mysql_driver.php:74 Stack trace: #0 C:\xampp\htdocs\aecollegealumni.com\system\database\DB_driver.php(231): CI_DB_mysql_driver->db_connect() #1 C:\xampp\htdocs\aecollegealumni.com\system\database\DB.php(297): CI_DB_driver->initialize() #2 C:\xampp\htdocs\aecollegealumni.com\application\core\MY_Loader.php(43): DB(Array, NULL) #3 C:\xampp\htdocs\aecollegealumni.com\system\core\Loader.php(2343): MY_Loader->database() #4 C:\xampp\htdocs\aecollegealumni.com\system\core\Loader.php(305): CI_Loader->_ci_autoloader() #5 C:\xampp\htdocs\aecollegealumni.com\application\third_party\MX\Loader.php(123): CI_Loader->initialize() #6 C:\xampp\htdocs\aecollegealumni.com\system\core\Controller.php(103): MX_Loader->initialize() #7 C:\xampp\htdocs\aecollegealumni.com\application\controllers\home.php(6): CI_Controller->__construct() #8 C:\xampp\htdocs\aecollegealumni.com\system\core\CodeIgniter.php(617): H in C:\xampp\htdocs\aecollegealumni.com\system\database\drivers\mysql\mysql_driver.php on line 74
Change
$db['default']['dbdriver'] = 'mysql';
to
$db['default']['dbdriver'] = 'mysqli';

New theme is not working in Respond 6 cms

I copied a out of the box "material" theme and created my new theme based on the same.
it gets displayed in list when I am trying to create a new website. but when I select a theme and click on "Create" site it gives me an error.
Lumene error log looks like below:
[2016-10-22 06:44:57] lumen.ERROR: exception 'ErrorException' with message 'Undefined variable: main_content' in C:\xampp\htdocs\respond\app\app\Respond\Models\Page.php:652
I already created a html tag main in my page and also one div which having role="main" but it seems I am still missing something.
can someone guide me for looking at correct issue.
Stacktrace is here :
[2016-10-22 06:47:31] lumen.ERROR: exception 'ErrorException' with message 'Undefined variable: main_content' in C:\xampp\htdocs\respond\app\app\Respond\Models\Page.php:652
Stack trace:
0 C:\xampp\htdocs\respond\app\app\Respond\Models\Page.php(652): Laravel\Lumen\Application->Laravel\Lumen\Concerns\{closure}(8, 'Undefined varia...', 'C:\\xampp\\htdocs...', 652, Array)
1 C:\xampp\htdocs\respond\app\app\Respond\Models\Page.php(507): App\Respond\Models\Page::refreshJSON(Object(App\Respond\Models\User), Object(App\Respond\Models\Site))
2 C:\xampp\htdocs\respond\app\app\Respond\Libraries\Publish.php(167): App\Respond\Models\Page::listAll(Object(App\Respond\Models\User), Object(App\Respond\Models\Site))
3 C:\xampp\htdocs\respond\app\app\Respond\Models\Site.php(162): App\Respond\Libraries\Publish::publishPlugins(Object(App\Respond\Models\User), Object(App\Respond\Models\Site))
4 C:\xampp\htdocs\respond\app\app\Http\Controllers\SiteController.php(44): App\Respond\Models\Site::create('manual9', '/template', 'mygalaxy.shaile...', 'shailesh')
5 [internal function]: App\Http\Controllers\SiteController->create(Object(Illuminate\Http\Request))
6 C:\xampp\htdocs\respond\app\vendor\illuminate\container\Container.php(507): call_user_func_array(Array, Array)
7 C:\xampp\htdocs\respond\app\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(593): Illuminate\Container\Container->call(Array, Array)
8 C:\xampp\htdocs\respond\app\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(560): Laravel\Lumen\Application->callControllerCallable(Array, Array)
9 C:\xampp\htdocs\respond\app\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(533): Laravel\Lumen\Application->callLumenController(Object(App\Http\Controllers\SiteController), 'create', Array)
10 C:\xampp\htdocs\respond\app\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(501): Laravel\Lumen\Application->callControllerAction(Array)
11 C:\xampp\htdocs\respond\app\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(486): Laravel\Lumen\Application->callActionOnArrayBasedRoute(Array)
12 C:\xampp\htdocs\respond\app\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(383): Laravel\Lumen\Application->handleFoundRoute(Array)
13 C:\xampp\htdocs\respond\app\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(636): Laravel\Lumen\Application->Laravel\Lumen\Concerns\{closure}()
14 C:\xampp\htdocs\respond\app\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(389): Laravel\Lumen\Application->sendThroughPipeline(Array, Object(Closure))
15 C:\xampp\htdocs\respond\app\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(334): Laravel\Lumen\Application->dispatch(NULL)
16 C:\xampp\htdocs\respond\app\public\index.php(28): Laravel\Lumen\Application->run()
17 {main}

Typing "guard" gives an exception

I'm trying to learn Guard using Jeffrey Way's book, but having issues when I do guard. Although I followed the guides without making any mistake.
C:\Users\Imaqtpie\Desktop\LaravelTestingDecoded\chapter3>guard
18:41:48 - INFO - Guard is using TerminalTitle to send notifications.
18:41:48 - INFO - Running all tests
PHP Fatal error: Call to undefined method PHPUnit_Framework_TestResult::allCompletlyImplemented() in C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems\guard-phpunit-0.1.4\lib\guard\phpunit\formatters\PHPUnit-Progress\PHPUnit\Extensions\Progress\ResultPrinter.php on line 250
PHP Stack trace:
PHP 1. {main}() C:\Users\Imaqtpie\Desktop\LaravelTestingDecoded\chapter3\vendor\phpunit\phpunit\composer\bin\phpunit:0
PHP 2. PHPUnit_TextUI_Command::main() C:\Users\Imaqtpie\Desktop\LaravelTestingDecoded\chapter3\vendor\phpunit\phpunit\composer\bin\phpunit:63
PHP 3. PHPUnit_TextUI_Command->run() C:\Users\Imaqtpie\Desktop\LaravelTestingDecoded\chapter3\vendor\phpunit\phpunit\PHPUnit\TextUI\Command.php:129
PHP 4. PHPUnit_TextUI_TestRunner->doRun() C:\Users\Imaqtpie\Desktop\LaravelTestingDecoded\chapter3\vendor\phpunit\phpunit\PHPUnit\TextUI\Command.php:176
PHP 5. PHPUnit_Extensions_Progress_ResultPrinter->printResult() C:\Users\Imaqtpie\Desktop\LaravelTestingDecoded\chapter3\vendor\phpunit\phpunit\PHPUnit\TextUI\TestRunner.php:355
PHP 6. PHPUnit_Extensions_Progress_ResultPrinter->printFooter() C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems\guard-phpunit-0.1.4\lib\guard\phpunit\formatters\PHPUnit-Progress\PHPUnit\Extensions\Progress\ResultPrinter.php:72
18:41:48 - INFO - .
> [#E489C62F50B0]
> [#E489C62F50B0] Finished in 52 ms
> [#E489C62F50B0]
> [#E489C62F50B0] Fatal error: Call to undefined method PHPUnit_Framework_TestResult::allCompletlyImplemented() in C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems\guard-phpunit-0.1.4\lib\guard\phpunit\formatters\PHPUnit-Progress\PHPUnit\Extensions\Progress\ResultPrinter.php on line 250
> [#E489C62F50B0]
> [#E489C62F50B0] Call Stack:
> [#E489C62F50B0] 0.0007 235072 1. {main}() C:\Users\Imaqtpie\Desktop\LaravelTestingDecoded\chapter3\vendor\phpunit\phpunit\composer\bin\phpunit:0
> [#E489C62F50B0] 0.0044 556064 2. PHPUnit_TextUI_Command::main() C:\Users\Imaqtpie\Desktop\LaravelTestingDecoded\chapter3\vendor\phpunit\phpunit\composer\bin\phpunit:63
> [#E489C62F50B0] 0.0044 561304 3. PHPUnit_TextUI_Command->run() C:\Users\Imaqtpie\Desktop\LaravelTestingDecoded\chapter3\vendor\phpunit\phpunit\PHPUnit\TextUI\Command.php:129
> [#E489C62F50B0] 0.0359 2805856 4. PHPUnit_TextUI_TestRunner->doRun() C:\Users\Imaqtpie\Desktop\LaravelTestingDecoded\chapter3\vendor\phpunit\phpunit\PHPUnit\TextUI\Command.php:176
> [#E489C62F50B0] 0.0521 3267312 5. PHPUnit_Extensions_Progress_ResultPrinter->printResult() C:\Users\Imaqtpie\Desktop\LaravelTestingDecoded\chapter3\vendor\phpunit\phpunit\PHPUnit\TextUI\TestRunner.php:355
> [#E489C62F50B0] 0.0521 3267632 6. PHPUnit_Extensions_Progress_ResultPrinter->printFooter() C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems\guard-phpunit-0.1.4\lib\guard\phpunit\formatters\PHPUnit-Progress\PHPUnit\Extensions\Progress\ResultPrinter.php:72
18:41:48 - INFO - Guard is now watching at 'C:/Users/Imaqtpie/Desktop/LaravelTestingDecoded/chapter3'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- wdm (LoadError)
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/listen-1.3.0/lib/listen/adapter.rb:207:in `load_dependent_adapter'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/listen-1.3.0/lib/listen/adapters/windows.rb:33:in `load_dependent_adapter'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/listen-1.3.0/lib/listen/adapter.rb:198:in `usable?'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/listen-1.3.0/lib/listen/adapters/windows.rb:25:in `usable?'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/listen-1.3.0/lib/listen/adapter.rb:190:in `usable_and_works?'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/listen-1.3.0/lib/listen/adapter.rb:57:in `block in select_and_initialize'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/listen-1.3.0/lib/listen/adapter.rb:55:in `each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/listen-1.3.0/lib/listen/adapter.rb:55:in `select_and_initialize'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/listen-1.3.0/lib/listen/listener.rb:290:in `initialize_adapter'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/listen-1.3.0/lib/listen/listener.rb:282:in `setup'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/listen-1.3.0/lib/listen/listener.rb:52:in `start'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/guard-1.8.2/lib/guard.rb:213:in `block in start'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/guard-1.8.2/lib/guard.rb:387:in `block in within_preserved_state'
from <internal:prelude>:10:in `synchronize'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/guard-1.8.2/lib/guard.rb:384:in `within_preserved_state'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/guard-1.8.2/lib/guard.rb:209:in `start'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/guard-1.8.2/lib/guard/cli.rb:110:in `start'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/guard-1.8.2/bin/guard:6:in `<top (required)>'
from C:/RailsInstaller/Ruby1.9.3/bin/guard:23:in `load'
from C:/RailsInstaller/Ruby1.9.3/bin/guard:23:in `<main>'
I have tried editing my PATH to point correct PHPUnit, it's still the same.
What's wrong?
Also, should I learn Guard or move Grunt? I'm a PHP dev.
I've found the solution.
The problem was a typing mistake in Ruby1.9.3\lib\ruby\gems\1.9.1\gems\guard-phpunit-0.1.4\lib\guard\phpunit\formatters\PHPUnit-Progress\PHPUnit\Extensions\Progress\ResultPrinter.php which affects 3.7.* versions.
You have to find allCompletlyImplemented() method and rename it to allCompletelyImplemented() on line 250 and 256.

Resources