Comments (6)
I got the same error: Fatal error: Uncaught exception 'Exception' with message 'Serialization of 'Closure' is not allowed' in ZendDeveloperTools/Collector/DbCollector.php:141 Stack trace: #0 ZendDeveloperTools/Collector/DbCollector.php(141): serialize(Object(BjyProfiler\Db\Profiler\Profiler))
from bjyprofiler.
Does this problem occur prior to commit 08edcfb?
from bjyprofiler.
Hard to say it's been a long time since I updated it last time.
from bjyprofiler.
I think that problem happened after you have updated package ZendDeveloperTools
from bjyprofiler.
@ihordev Maybe. That's why I said I'm not certain whom this bug belongs to. I hope @bjyoungblood will figure out that.
from bjyprofiler.
I get same error message, but only when user tries to login (user data is written to session). It seems that one must not use a closure in the configuration setup.
So I use the (already existing) ProfilingAdapterFactory instead in my setup:
<?php
$dbParams = array(
'database' => 'changeme',
'username' => 'changeme',
'password' => 'changeme',
'hostname' => 'localhost',
// buffer_results - only for mysqli buffered queries, skip for others
'options' => array('buffer_results' => true)
);
return array(
// Default DB setup
'db' => array(
'driver' => 'Pdo',
'dsn' => 'mysql:dbname='.$dbParams['database'].';host='.$dbParams['hostname'].';charset=utf8',
'database' => $dbParams['database'],
'hostname' => $dbParams['hostname'],
'user' => $dbParams['username'],
'password' => $dbParams['password'],
),
// Setup for BjyProfiler
'service_manager' => array(
'factories' => array(
'Zend\Db\Adapter\Adapter' => 'BjyProfiler\Db\Adapter\ProfilingAdapterFactory',
),
),
);
from bjyprofiler.
Related Issues (20)
- feature for abstract factories HOT 1
- UTF8 encoding using PDO HOT 1
- Cannot create a custom adapter into Module.php
- Logging profiler does not print QUERY_MODE_EXECUTE queries
- Multiple Db configuration HOT 1
- Incompatible with ZF 2.3 HOT 7
- Multiple Database Configuration HOT 2
- Module (bjyoungblood/bjy-profiler) could not be initialized HOT 2
- Add driver_options to the default config autoload
- doctrine support HOT 1
- HTML in config smashes the Toolbar HOT 1
- [ZF2] MasterSlaveFeature (TableGateway) breaks the db-profiler
- ZF2 + Doctrine 2 + BjyProfiler + SQLite3
- Profiler::profilerStart() fails when given string parameter
- New release
- Installation with new ZendSkeletonApplication installs all components HOT 2
- ZF3, ProfilingAdapterFactory does not implement __invoke HOT 3
- How to configure profiler with zend-db Pdo_Pgsql driver? HOT 4
- Issue with zend framework 3 HOT 5
- ZF3 - The supplied or instantiated driver object does not implement Zend\Db\Adapter\Driver\DriverInterface
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bjyprofiler.