I'm using LopiPusherBundle for Getting following error while clearing the cache in symfony 2.7.26
[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
Unrecognized options "scheme, cluster, url" under "lopi_pusher"
# app/config/config.yml
lopi_pusher:
scheme: http
host: api.pusherapp.com
port: 80
cluster: ap2
timeout: 30
debug: false
app_id: <app_id>
key: <key>
secret: <secret>
url: <scheme>://<key>:<secret>#<host>[:<port>]/apps/<app-id>
auth_service_id: my_channel_authenticator
Your installed version is smaller than 1.3 and these options are not available.
You can see this here https://github.com/laupiFrpar/LopiPusherBundle/blob/1.2.9/DependencyInjection/Configuration.php
Check your composer.json and make sure the correct version is there
You can just use
"laupifrpar/pusher-bundle": "*"
Dont forget to update your dependency after modifying composer.json using
composer update "laupifrpar/pusher-bundle"
Related
I got a warning: 'WARNING [cache] Failed to save key', after trying to update the doctrine configuration. this error appears when i run bin/console.
I tried updating the doctrine configuration to get rid of the deprecation warning I got.
Previously my doctrine configuration was like this:
orm:
entity_managers:
default:
metadata_cache_driver: apcu
with this configuration there are no errors or warnings that I get. there is only a deprecation notice.
then I try to update the configuration to be like this:
orm:
entity_managers:
default:
metadata_cache_driver:
type: pool
pool: doctrine.apcu_cache_pool
framework:
cache:
pools:
doctrine.apcu_cache_pool:
adapter: cache.adapter.apcu
and i got 'WARNING [cache] Failed to save key' when try run bin/console.
I know the problem is because I haven't enabled apc.enabled_cli in my php.ini.
but what I'm asking is why in my initial configuration the warning didn't appear even though apc.enabled_cli = 0
Thank you !
I want to use Spinnaker with JFrog Artifactory.
I've followed both documentation
https://www.spinnaker.io/guides/user/pipeline/triggers-with-artifactsrewrite/artifactory/
http://theblasfrompas.blogspot.com/2019/06/deploy-artifacts-from-jfrog-artifactory.html
hal config
repository:
artifactory:
enabled: true
searches:
- name: spring-artifactory
permissions: {}
baseUrl: https://xxx.jfrog.io/artifactory
repo: libs-snapshot-local
groupId: com.example
repoType: maven
username: usernamexxx
password: passwordxxx
maven:
enabled: true
accounts:
- name: spring-artifactory-maven
repositoryUrl: https://xxx.jfrog.io/artifactory/libs-snapshot-local/
Once deployed when I add an automated trigger, type Artifactory I immediatly get in red the following error
Error fetching artifactory names: 500 Internal Server Error
http://192.168.39.83:30808/artifactory/names 500 status: 500, error:
"Internal Server Error", message: "No value present"}
Spinnaker is running on minikube, I changed storage, hypervisor, version, ...
Please advise.
Thanks.
I change local-artifactory to local-artifactory and it worked.
I can now retrieve the builds in artifactory.
It's my first time I'm trying to use SolrBundle in my symfony project istalled on xampp. Always when I try to use solr:index:populate I receive error mentioned in title of the post. What am I doing wrong? Many thanks for help in advance. Below my configuration
config.yml
fs_solr:
endpoints:
core0:
host: host
port: 8983
path: /solr/core0
core: corename
timeout: 5
I work with symfony project and i want to generate documentation for my REST Web Service with swagger 2,so i installed swagger-bundle
and i configurid it.but when i tri to generate the json api documenation with this command
app/console -e=dev swagger:dump
i got this error.
You must call one of in() or append() methods before iterating over a
Finder.
this is my config file
swagger:
version: '2.0'
info:
title: 'My API'
version: '1.0.0'
description: 'My API Description'
host: '127.0.0.1'
base_path: '/v2'
schemes:
- http
produces:
- application/json
consumes:
- application/json
annotations:
bundles:
- BOBundleBundle
any help please.
check if you put the settings in the correct config file (app/config/config_dev.yml)
Attempts to use a sqlite file database in the app/cache/tests directory fail. This is determined by clearing the dev MySQl database and populating the test environment database via the console. Test database being populated was confirmed by an external Sqlite Manager. [Tests performed without the sqlite configuration pass.]
codeception.yml:
actor: Tester
paths:
tests: tests
log: tests/_output
data: tests/_data
support: tests/_support
envs: tests/_envs
settings:
bootstrap: _bootstrap.php
colors: false
memory_limit: 1024M
extensions:
enabled:
- Codeception\Extension\RunFailed
modules:
config:
- Db:
dsn: 'sqlite:./app/cache/test/test.sqlite'
user: ''
password: ''
dump: tests/_data/test.sql
populate: true
cleanup: false
reconnect: true
Edit:
In an Ubuntu VM, adding the Symfony2 configuration to acceptance.yml allows for partial success - the test uses the Sqlite db but does not rewrite from the specified dump (test.sql). In Windows adding the Symfony configuration makes no difference.
acceptance.yml:
class_name: AcceptanceTester
modules:
enabled:
- PhpBrowser:
url: http://vol
- \Helper\Acceptance
# adding these lines enables Ubuntu to use sqlite db
- Symfony2:
app_path: ./app
environment: test
You haven't enabled Db module in acceptance.yml
modules:
enabled:
- Db
- PhpBrowser:
url: http://vol
- \Helper\Acceptance
Also don't add PhpBrowser and Symfony2 at the same time,
only one can be used.