[Mapbender-users] ContextErrorException: Warning: class_exists() expects parameter 1 to be string, array given in ApplicationYAMLMapper.php line 145

Selina Patelas Selina.Patelas at steuernagel-ing.de
Tue Jan 9 22:42:14 PST 2018


 Danke für die schnelle Antwort und das nette Angebot.
 Ich habe eben gerade genau das getan und die Mapbender Dateien durch 
 die neuen (3.0.6.3) ersetzt und siehe da es funktioniert :) Irgendwo 
 hatte sich da was eingeschlichen.
 
 Grüße
 Selina Patelas

 
> -----Ursprüngliche Nachricht-----
> Von: Astrid Emde [mailto:astrid.emde at wheregroup.com]
> Gesendet: Dienstag, 9. Januar 2018 14:50
> An: Selina Patelas
> Betreff: Re: [Mapbender-users] ContextErrorException: Warning:
> class_exists() expects parameter 1 to be string, array given in 
> ApplicationYAMLMapper.php line 145
> 
> Hello,
> 
> could you send your config files and I will have a look.
> 
> Would be better to taka Mapbender 3.0.6.3 the actual version.
> 
> If you speak german, please let me know ;)
> 
> Astrid Emde
> 
> Am 2018-01-09 09:04, schrieb Selina Patelas:
>> DEAR MAPBENDER USERS,
>> 
>> I AM TRYING TO BUILD UP A WEB SOLUTION FOR OUR „PLANAUSKUNFT“.
>> 
>> MAPBENDER3 SEEMS TO BE THE PERFECT TOOL. I WOULD LIKE TO USE THE 
>> ALREADY IMPLEMENTED:
>> 
>>  -          DIGITIZER
>> 
>>  -          SEARCH ROUTER
>> 
>>  -          SELF REGISTRATION
>> 
>>  -
>> 
>> THEREFORE I INSTALLED MAPBENDER3  (3.0.5.3), XAMPP (7.2.0) WITH PHP 
>> 5.6.24,
>> 
>> AS WELL AS POSTGRESQL (PGADMIN 4) AND QGIS AT A WINDOWS 7 (64BIT) 
>> TEST PC.
>> 
>> SO FAR I FOLLOWED THE STEPS FROM
>> HTTPS://DOC.MAPBENDER3.ORG/DE/BOOK/INSTALLATION/INSTALLATION_WINDOWS.
>> H
>> TML
>> [1]
>> 
>> BEFORE I EMPTYED THE CACHE I COULD USE THE FRONTEND TO DESING THE UI 
>> FOR THE SEARCH ROUTER AND THE DIGITZER,
>> 
>> BUT I DID NOT MANAGE TO CONNECT THEM TO MY DATABASES SO FAR.
>> 
>> AFTER I ADDED SOME CHANGES TO THE CONFIG.YML AND PARAMETER.YML 
>> ACCORDING TO THE INSTRUCTIONS FOR BUILDING UP A DATABASECONNECTION,
>> 
>> THE SELF REGISTRATION IS ACITVATED AND THE LOGIN WORKS FINE, BUT 
>> AFTER THAT, FOLLOWING ERROR OCCOURS USING …/APP.PHP OR …/APP_DEV.PHP:
>> 
>> _ContextErrorException: Warning: class_exists() expects parameter 1 
>> to be string, array given _
>> 
>> _in
>> C:\mapbender3\mapbender\src\Mapbender\CoreBundle\Component\Applicatio
>> n
>> YAMLMapper.php
>> line 145_
>> 
>> _ _
>> 
>> THE CHANGES IN CONFIG.YML AND PARAMETER.YML LOOK LIKE THIS:
>> 
>> (I COMMENTED THE ADDITIONAL DATABASES FOR SEARCH ROUTER AND DIGITZIER 
>> OUT SO THAT ONLY THE DEFAULT DATABASE CREATED BY THE SYMFONY 
>> INSTALLATION PART
>> 
>> IS ACTIVATED TO MINIMIZE THE SOURCE OF ERRORS BUT THE ERROR STILL
>> EXISTS) I EMPTYED THE CACHE SEVERAL TIMES AFTER ADDING THE CHANGES.
>> 
>> imports:
>> 
>>     - { resource: parameters.yml }
>> 
>>     - { resource: security.yml }
>> 
>> framework:
>> 
>>     #esi:             ~
>> 
>>     translator:      { fallback: %fallback_locale% }
>> 
>>     secret:          %secret%
>> 
>>     router:
>> 
>>         resource: "%kernel.root_dir%/config/routing.yml"
>> 
>>         strict_requirements: %kernel.debug%
>> 
>>     form:            true
>> 
>>     csrf_protection: true
>> 
>>     validation:      { enable_annotations: true }
>> 
>>     templating:      { engines: ['twig'] } #assets_version:
>> SomeVersionScheme
>> 
>>     default_locale:  %locale%
>> 
>>     session:
>> 
>>         cookie_httponly: true
>> 
>>         cookie_secure: %cookie_secure%
>> 
>>         cookie_lifetime: %cookie_lifetime%
>> 
>> # Twig Configuration
>> 
>> twig:
>> 
>>     debug:            %kernel.debug%
>> 
>>     strict_variables: %kernel.debug%
>> 
>>     globals:
>> 
>>         fom:    %fom%
>> 
>>     form:
>> 
>>         resources:
>> 
>>             - 'FOMCoreBundle:Form:fields.html.twig'
>> 
>> # Assetic Configuration
>> 
>> assetic:
>> 
>>     debug: %kernel.debug%
>> 
>>     use_controller: true
>> 
>>     filters:
>> 
>>         cssrewrite: ~
>> 
>>         sass: ~
>> 
>> # Doctrine Configuration
>> 
>> doctrine:
>> 
>>     dbal:
>> 
>>         default_connection: default
>> 
>>         connections:
>> 
>>         #Datenbankverbindung "default"
>> 
>>             default:
>> 
>>                 driver:   %database_driver%
>> 
>>                 host:     %database_host%
>> 
>>                 port:     %database_port%
>> 
>>                 dbname:   %database_name%
>> 
>>                 path:     %database_path%
>> 
>>                 user:     %database_user%
>> 
>>                 password: %database_password%
>> 
>>                 charset:  UTF8
>> 
>>                 logging: %kernel.debug%
>> 
>>                 profiling: %kernel.debug%
>> 
>> #       #Datenbankverbindung "search_router"
>> 
>> #           search_router:
>> 
>> #               driver:   %database2_driver%
>> 
>> #               host:     %database2_host%
>> 
>> #               port:     %database2_port%
>> 
>> #               dbname:   %database2_name%
>> 
>> #               path:     %database2_path%
>> 
>> #               user:     %database2_user%
>> 
>> #               password: %database2_password%
>> 
>> #               charset:  UTF8
>> 
>> #               logging: %kernel.debug%
>> 
>> #               profiling: %kernel.debug%
>> 
>> #       #Datenbankverbindung "digitizer"
>> 
>> #           digitizer:
>> 
>> #               driver:   %database3_driver%
>> 
>> #               host:     %database3_host%
>> 
>> #               port:     %database3_port%
>> 
>> #               dbname:   %database3_name%
>> 
>> #               path:     %database3_path%
>> 
>> #               user:     %database3_user%
>> 
>> #               password: %database3_password%
>> 
>> #               charset:  UTF8
>> 
>> #               logging: %kernel.debug%
>> 
>> #               profiling: %kernel.debug%
>> 
>> #
>> 
>>     orm:
>> 
>>         auto_generate_proxy_classes: %kernel.debug%
>> 
>>         auto_mapping: true
>> 
>> # Swiftmailer Configuration
>> 
>> swiftmailer:
>> 
>>     transport: %mailer_transport%
>> 
>>     host:      %mailer_host%
>> 
>>     username:  %mailer_user%
>> 
>>     password:  %mailer_password%
>> 
>>     spool:     { type: memory }
>> 
>> # FOM Manager Configuration
>> 
>> fom_manager:
>> 
>>     route_prefix: /manager
>> 
>> # FOM User Configuration
>> 
>> fom_user:
>> 
>>     selfregister: true
>> 
>>     reset_password: true
>> 
>>     max_registration_time: 1
>> 
>>     max_reset_time: 1
>> 
>>     mail_from_address: Planauskunft at xxx.de
>> 
>>     mail_from_name: xxx_Planauskunft
>> 
>>     profile_entity: FOM\UserBundle\Entity\BasicProfile
>> 
>>     profile_formtype: FOM\UserBundle\Form\Type\BasicProfileType
>> 
>>     profile_template: FOMUserBundle:User:basic_profile.html.twig
>> 
>>     self_registration_groups:
>> 
>>         - Self Registered
>> 
>>         - Demo Group
>> 
>>     # Allow to create user log table on the fly if the table doesn't 
>> exits.
>> 
>>     # Default: true
>> 
>>     auto_create_log_table: false
>> 
>>     # Time between to check login tries
>> 
>>     login_check_log_time: "-5 minutes"
>> 
>>     # Login attemps before delay starts
>> 
>>     login_attempts_before_delay: 3
>> 
>>     # Login delay after all attemps are failed
>> 
>>     login_delay_after_fail: 5 # Seconds
>> 
>> # OWSProxy Configuration
>> 
>> ows_proxy3_core:
>> 
>>     logging: %ows_proxy3_logging%
>> 
>>     obfuscate_client_ip: %ows_proxy3_obfuscate_client_ip%
>> 
>>     proxy:
>> 
>>         host: %ows_proxy3_host%
>> 
>>         port: %ows_proxy3_port%
>> 
>>         connecttimeout: %ows_proxy3_connecttimeout%
>> 
>>         timeout: %ows_proxy3_timeout%
>> 
>>         user: %ows_proxy3_user%
>> 
>>         password: %ows_proxy3_password%
>> 
>>         checkssl: true
>> 
>>         noproxy: %ows_proxy3_noproxy%
>> 
>> # Mapbender Configuration
>> 
>> mapbender_core: ~
>> 
>> ---------------------------------------------------------------------
>> -
>> ----------
>> 
>> 
>> parameters:
>> 
>>     #Datenbankverbindung "default"
>> 
>>     database_driver:   pdo_pgsql
>> 
>>     database_host:     localhost
>> 
>>     database_port:     5432
>> 
>>     database_name:     mapbender3
>> 
>>     database_path:     ~
>> 
>>     database_user:     postgres
>> 
>>     database_password: xxx
>> 
>> #    #Datenbankverbindung "Search_Router"
>> 
>> #    database2_driver:   pdo_pgsql
>> 
>> #    database2_host:     localhost
>> 
>> #    database2_port:     5432
>> 
>> #    database2_name:     search_router
>> 
>> #    database2_path:     ~
>> 
>> #    database2_user:     postgres
>> 
>> #    database2_password: xxx
>> 
>> #
>> 
>> #    #Datenbankverbindung "Digitizer"
>> 
>> #    database3_driver:   pdo_pgsql
>> 
>> #    database3_host:     localhost
>> 
>> #    database3_port:     5432
>> 
>> #    database3_name:     digitizer
>> 
>> #    database3_path:     ~
>> 
>> #    database3_user:     postgres
>> 
>> #    database3_password: xxx
>> 
>>     mailer_transport:  smtp
>> 
>>     mailer_host:       localhost
>> 
>>     mailer_user:       ~
>> 
>>     mailer_password:   ~
>> 
>>     # locale en, de, it, es, ru, nl, pt are available
>> 
>>     fallback_locale:   en
>> 
>>     locale:            en
>> 
>>     secret:            ThisTokenIsNotSoSecretChangeIt
>> 
>>     fom:
>> 
>>         server_name:   Mapbender3
>> 
>>         server_version: 3.0.5.3
>> 
>>         server_logo:   bundles/mapbendercore/image/logo_mb3.png
>> 
>>     # framework :
>> http://symfony.com/doc/2.1/reference/configuration/framework.html#coo
>> k
>> ie-lifetime
>> [2]
>> 
>>     cookie_secure: false
>> 
>>     cookie_lifetime: 3600
>> 
>> # OWSProxy Configuration
>> 
>>     ows_proxy3_logging: false
>> 
>>     ows_proxy3_obfuscate_client_ip: true
>> 
>>     ows_proxy3_host: ~
>> 
>>     ows_proxy3_port: ~
>> 
>>     ows_proxy3_connecttimeout: 60
>> 
>>     ows_proxy3_timeout: 90
>> 
>>     ows_proxy3_user: ~
>> 
>>     ows_proxy3_password: ~
>> 
>>     ows_proxy3_noproxy: ~
>> 
>> I  WOULD BE VERY PLEASED TO HEAR FROM ANYBODY THAT COULD HELP ME WITH 
>> THIS. J
>> 
>> PLEASE FEEL FREE TO LET ME KNOW IF YOU NEED ANY MORE INFORMATION ON 
>> THIS.
>> 
>> BEST REGARDS
>> 
>> SELINA PATELAS
>> 
>> 
>> 
>> Links:
>> ------
>> [1]
>> https://doc.mapbender3.org/de/book/installation/installation_windows.
>> h
>> tml
>> [2]
>> http://symfony.com/doc/2.1/reference/configuration/framework.html#coo
>> k ie-lifetime _______________________________________________
>> Mapbender_users mailing list
>> Mapbender_users at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/mapbender_users
> 
> --
> Mit freundlichen Grüßen
> 
> Astrid Emde
> GIS-Consultant
> 
> -----------------------------------
> Aufwind durch Wissen!
> Qualifizierte Open-Source-Schulungen
> bei der www.foss-academy.com
> -----------------------------------
> 
>   Astrid Emde
>   WhereGroup GmbH & Co.KG
>   Eifelstraße 7
>   53119 Bonn
>   Germany
> 
>   Fon: +49(0)228 90 90 38 - 22
>   Fax: +49(0)228 90 90 38 - 11
> 
>   astrid.emde at wheregroup.com
>   www.wheregroup.com
> 
>   Folgen Sie der WhereGroup auf twitter:
> http://twitter.com/WhereGroup_com
> 
> Amtsgericht Bonn, HRA 6788
> -------------------------------
> Komplementärin:
> WhereGroup Verwaltungs GmbH
> vertreten durch:
> Olaf Knopp, Peter Stamm
> -------------------------------

--
Mit freundlichen Grüßen

Astrid Emde
GIS-Consultant

-----------------------------------
Aufwind durch Wissen!
Qualifizierte Open-Source-Schulungen
bei der www.foss-academy.com
-----------------------------------

  Astrid Emde
  WhereGroup GmbH & Co.KG
  Eifelstraße 7
  53119 Bonn
  Germany

  Fon: +49(0)228 90 90 38 - 22
  Fax: +49(0)228 90 90 38 - 11

  astrid.emde at wheregroup.com
  www.wheregroup.com

  Folgen Sie der WhereGroup auf twitter: 
http://twitter.com/WhereGroup_com

Amtsgericht Bonn, HRA 6788
-------------------------------
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
-------------------------------


More information about the Mapbender_users mailing list