Git Product home page Git Product logo

Comments (10)

egeloen avatar egeloen commented on July 28, 2024

Can you copy/paste the stacktrace? With the current informations, I can't point out what's the problem :s

from ivory-google-map.

Addoubali avatar Addoubali commented on July 28, 2024

Sure,
Stack trace
[1] Symfony\Component\Debug\Exception\ContextErrorException: Notice: Array to string conversion in C:\wamp\www\teamz\vendor\doctrine\dbal\lib\Doctrine\DBAL\Statement.php line 103
at n/a
in C:\wamp\www\teamz\vendor\doctrine\dbal\lib\Doctrine\DBAL\Statement.php line 103

at Symfony\Component\Debug\ErrorHandler->handle('8', 'Array to string conversion', 'C:\wamp\www\teamz\vendor\doctrine\dbal\lib\Doctrine\DBAL\Statement.php', '103', array('name' => '1', 'value' => array(), 'type' => object(StringType), 'bindingType' => '2'))
    in  line 

at PDOStatement->bindValue('1', array(), '2')
    in C:\wamp\www\teamz\vendor\doctrine\dbal\lib\Doctrine\DBAL\Statement.php line 103

at Doctrine\DBAL\Statement->bindValue('1', array(), 'string')
    in C:\wamp\www\teamz\vendor\doctrine\orm\lib\Doctrine\ORM\Persisters\BasicEntityPersister.php line 273

at Doctrine\ORM\Persisters\BasicEntityPersister->executeInserts()
    in C:\wamp\www\teamz\vendor\doctrine\orm\lib\Doctrine\ORM\UnitOfWork.php line 929

at Doctrine\ORM\UnitOfWork->executeInserts(object(ClassMetadata))
    in C:\wamp\www\teamz\vendor\doctrine\orm\lib\Doctrine\ORM\UnitOfWork.php line 318

at Doctrine\ORM\UnitOfWork->commit(null)
    in C:\wamp\www\teamz\vendor\doctrine\orm\lib\Doctrine\ORM\EntityManager.php line 355

at Doctrine\ORM\EntityManager->flush()
    in C:\wamp\www\teamz\src\Teamz\CoreBundle\Controller\TerrainsController.php line 53

at Teamz\CoreBundle\Controller\TerrainsController->ajouterAction()
    in  line 

at call_user_func_array(array(object(TerrainsController), 'ajouterAction'), array())
    in C:\wamp\www\teamz\app\bootstrap.php.cache line 2815

at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1')
    in C:\wamp\www\teamz\app\bootstrap.php.cache line 2789

at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true)
    in C:\wamp\www\teamz\app\bootstrap.php.cache line 2918

at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true)
    in C:\wamp\www\teamz\app\bootstrap.php.cache line 2220

at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
    in C:\wamp\www\teamz\web\app_dev.php line 29

from ivory-google-map.

egeloen avatar egeloen commented on July 28, 2024

Thx! Before debugging can you give the exact version of symfony & the bundle you're using in your project?

from ivory-google-map.

egeloen avatar egeloen commented on July 28, 2024

In fact, the last release is affected by a bug in the places autocomplete feature (see egeloen/IvoryGoogleMapBundle#84) which make it unsuable... It has been fixed but only on the master branch so, can you try with the last dev branch?

from ivory-google-map.

Addoubali avatar Addoubali commented on July 28, 2024

Here is my new version of composer.json file :

"require": {
//...
"egeloen/google-map": "dev-master",
"willdurand/geocoder": "",
"kriswallsmith/buzz": "
"
//....
}

As I launch the composer install command, it doesn't add the bundle class name in the AppKernel.php file as it used to. Is it a normal behaviour ? (I haven't fully understood the purpose of the autoloader... ).
Thx.

from ivory-google-map.

egeloen avatar egeloen commented on July 28, 2024

Everything is autoloaded automatically by composer, but you need to register the bundle yourself. Does it solve your issue?

from ivory-google-map.

Addoubali avatar Addoubali commented on July 28, 2024

The problem is when I want to register the bundle in the AppKernel file with this instruction :
//..
new Ivory\GoogleMapBundle\IvoryGoogleMapBundle(),
//..

My IDE doesn't recognize such namespace. Can you please tell me what is the correct instruction to put.

from ivory-google-map.

egeloen avatar egeloen commented on July 28, 2024

This is because you don't require the egeloen/google-map-bundle:

"require": {
    //...
    "egeloen/google-map-bundle": "dev-master",
    "egeloen/google-map": "dev-master",
    "willdurand/geocoder": "*",
    "kriswallsmith/buzz": "*"
}

from ivory-google-map.

Addoubali avatar Addoubali commented on July 28, 2024

Is it a mandatory requirement for the bundle to work ? I followed the installation instruction and it seems to be unecessary.

Nevermind, I reinstalled it with the "dev-master" version and it seems to work perfectly. Thx a lot for your work ;).

from ivory-google-map.

egeloen avatar egeloen commented on July 28, 2024

Nope, basically you just need to put egeloen/google-map-bundle but if you're using the last release, the places autocomplete form type is buggy and you should use the master branch since I release a new version.

from ivory-google-map.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.