REST (oauthadmin/list)

Author Message

Håvard Bergersen

Thursday 28 July 2011 7:21:53 am

When trying to access this view in admin i get this error message:
could not find driver in[...]/handler.php on line 88

Anyone else had this problem?

The function that breaks looks like this:

 public function __construct( $dbParams, $dsn )
    {
        $user          = null;
        $pass          = null;
        $driverOptions = null;

        foreach ( $dbParams as $key => $val )
        {
            switch ( $key )
            {
                case 'user':
                case 'username':
                    $user = $val;
                    break;

                case 'pass':
                case 'password':
                    $pass = $val;
                    break;

                case 'driver-opts':
                    $driverOptions = $val;
                    break;
            }
            
        }

      // THIS IS THE LINE THAT BREAKS
        parent::__construct( $dsn, $user, $pass, $driverOptions );

        $this->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );
        $this->setAttribute( PDO::ATTR_CASE, PDO::CASE_LOWER );
    }

Gaetano Giunta

Thursday 28 July 2011 8:22:23 am

You are most likely missing the pdo driver in your php.

(Please do not ask me why the devs decided to go with ezcdb and pdo instead of using the plain ezdb connector...)

Principal Consultant International Business
Member of the Community Project Board

Håvard Bergersen

Thursday 28 July 2011 8:27:36 am

Ahh,, ok.. I will get my serverAdmins to fix this and try again. :)

Thanks so much for the reply..

Jérôme Vieilledent

Thursday 28 July 2011 8:54:10 am

"

(Please do not ask me why the devs decided to go with ezcdb and pdo instead of using the plain ezdb connector...)

"

Because it's "nextgen" code ;-)

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 02:05:09
Script start
Timing: Jan 18 2025 02:05:09
Module start 'layout'
Timing: Jan 18 2025 02:05:09
Module start 'content'
Timing: Jan 18 2025 02:05:10
Module end 'content'
Timing: Jan 18 2025 02:05:10
Script end

Main resources:

Total runtime0.8522 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 588.9297152.6094
Module start 'layout' 0.00460.0027 741.539139.4219
Module start 'content' 0.00730.8432 780.9609603.9219
Module end 'content' 0.85050.0017 1,384.882812.1875
Script end 0.8522  1,397.0703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.3503160.0002
Check MTime0.00120.1402160.0001
Mysql Total
Database connection0.00070.084710.0007
Mysqli_queries0.790892.7936620.0128
Looping result0.00070.0830600.0000
Template Total0.817195.920.4086
Template load0.00180.208120.0009
Template processing0.815395.669020.4077
Template load and register function0.00010.011910.0001
states
state_id_array0.00140.163010.0014
state_identifier_array0.00190.218120.0009
Override
Cache load0.00150.1768230.0001
Sytem overhead
Fetch class attribute can translate value0.00110.129430.0004
Fetch class attribute name0.00180.214170.0003
XML
Image XML parsing0.00210.247830.0007
class_abstraction
Instantiating content class attribute0.00000.001780.0000
General
dbfile0.00100.1215290.0000
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 9

Time used to render debug report: 0.0001 secs