Code Monkey home page Code Monkey logo

Comments (20)

d1mf avatar d1mf commented on July 26, 2024

screenshot_158
Wordpress need installed to server superdesk pusblisher?

from web-publisher.

takeit avatar takeit commented on July 26, 2024

Hi @d1mf,

please, check Setup Wordpress as a Publisher Output Channel guide.

from web-publisher.

d1mf avatar d1mf commented on July 26, 2024

Hello. Yes, I check. I see tenant not working server( without a superdesk publisher) I send a screenshot
screenshot_159
This server installed WordPress + router.php

from web-publisher.

ahilles107 avatar ahilles107 commented on July 26, 2024

In domain name and subdomain name you need to provide vhost (new one) for current publisher instance - not wordpress instance. Remove this tenant (probably manually from database).

from web-publisher.

d1mf avatar d1mf commented on July 26, 2024

I check. Now I have a new problem. This server superdesk publisher.
screenshot_160

not load theme and api error 500
screenshot_161

2018/08/01 03:06:10 [error] 36053#36053: *19 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Symfony\Component\Config\Definition\Exception\InvalidTypeException: Invalid type for path "nelmio_cors.defaults.allow_origin.0". Expected scalar, but got array. in /var/www/publisher/vendor/symfony/symfony/src/Symfony/Component/Config/Definition/ScalarNode.php:36
Stack trace:
#0 /var/www/publisher/vendor/symfony/symfony/src/Symfony/Component/Config/Definition/BaseNode.php(279): Symfony\Component\Config\Definition\ScalarNode->validateType(Array)
#1 /var/www/publisher/vendor/symfony/symfony/src/Symfony/Component/Config/Definition/PrototypedArrayNode.php(277): Symfony\Component\Config\Definition\BaseNode->normalize(Array)
#2 /var/www/publisher/vendor/symfony/symfony/src/Symfony/Component/Config/Definition/BaseNode.php(282): Symfony\Component\Config\Definition\PrototypedArrayNode->normalizeValue(Array)
#3 /var/www/publisher/vendor/symfony/symfony/src/Symfony/Component/Config/Definition/ArrayNode.php(301): Symfony\Component\Config\Definition\BaseNode->normalize(Array)
#4" while reading response header from upstream, client: 192.168.1.80, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.1.12"

from web-publisher.

ahilles107 avatar ahilles107 commented on July 26, 2024

error is here: Invalid type for path "nelmio_cors.defaults.allow_origin.0". Expected scalar, but got array. in your parameters.yml you neet ot provide string not array for nelmio_cors.defaults.allow_origin

from web-publisher.

d1mf avatar d1mf commented on July 26, 2024

This my full config

parameters:
env(DATABASE_HOST): 127.0.0.1
env(DATABASE_PORT): null
env(DATABASE_NAME): publisher
env(DATABASE_USER): postgres
env(DATABASE_PASSWORD): postgres
env(DATABASE_SERVER_VERSION): 9
mailer_transport: smtp
mailer_host: 127.0.0.1
mailer_user: null
mailer_password: null
env(SYMFONY_SECRET): SuperSecretTokenPleaseChangeIt
swp_updater.version.class: SWP\Bundle\CoreBundle\Version\Version
env(SWP_DOMAIN): 192.168.1.12
cache_servers:
- localhost
doctrine_cache_driver: array
sentry.dsn: false
session_memcached_host: localhost
session_memcached_port: 11211
session_memcached_prefix: sess
session_memcached_expire: 3600
test_env: doctrine
allow_origin_cors: ['*']
superdesk_servers: 192.168.1.6
env(ELASTICA_HOST): localhost
env(ELASTICA_PORT): 9200
env(ELASTICA_INDEX_NAME): swp_index
env(RABBIT_MQ_HOST): 127.0.0.1
env(RABBIT_MQ_PORT): 5672
env(RABBIT_MQ_USER): test
env(RABBIT_MQ_PASSWORD): test
env(WEBSOCKET_PORT): 8080
env(WEBSOCKET_HOST): 127.0.0.1
env(PAYWALL_SERVER_URL): null
env(PAYWALL_SERVER_USERNAME): null
env(PAYWALL_SERVER_PASSWORD): null
env(SUBSCRIPTIONS_CACHE_LIFETIME): 86400
fixtures_type: '%env(FIXTURES_TYPE)%'
env(FIXTURES_TYPE): dev

I not see value nelmio_cors.defaults.allow_origin

Need to add?

from web-publisher.

ahilles107 avatar ahilles107 commented on July 26, 2024

allow_origin_cors: ['*'] should be allow_origin_cors: '*'

from web-publisher.

d1mf avatar d1mf commented on July 26, 2024

the testing server I see a fix. I see message Tenant for host "192.168.1.12" could not be found!( this not critical - testing server). Ok

This message prod(live server)

2018/08/01 11:17:23 [error] 1846#1846: *44 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Doctrine\ORM\NonUniqueResultException: More than one result was found for query although one row or none was expected. in /var/www/publisher/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:770
Stack trace:
#0 /var/www/publisher/src/SWP/Bundle/MultiTenancyBundle/Doctrine/ORM/TenantRepository.php(59): Doctrine\ORM\AbstractQuery->getOneOrNullResult()
#1 /var/www/publisher/src/SWP/Component/MultiTenancy/Resolver/TenantResolver.php(54): SWP\Bundle\MultiTenancyBundle\Doctrine\ORM\TenantRepository->findOneByDomain('88.208.192.142')
#2 /var/www/publisher/app/cache/prod/Container2u1kqzx/TenantResolver_98081b0.php(13): SWP\Component\MultiTenancy\Resolver\TenantResolver->resolve('88.208.192.142')
#3 /var/www/publisher/src/SWP/Bundle/CoreBundle/Context/CachedTenantContext.php(79): TenantResolver_98081b0->resolve('88.208.192.142')
#4 /var/www/publisher/src/SWP/Bundle/CoreBundle/Security/Storage/DynamicDomainSessionStorage.php(41): SWP\Bundle\CoreBundle\Context\CachedTenan" while reading response header from upstream, client: 77.123.36.142, server: , request: "POST /wp-admin/admin-ajax.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "88.208.192.142", referrer: "http://88.208.192.142/wp-admin/"

This file is auto-generated during the composer install

parameters:
env(DATABASE_HOST): localhost
env(DATABASE_PORT): null
env(DATABASE_NAME): publisher
env(DATABASE_USER): postgres
env(DATABASE_PASSWORD): postgres
env(DATABASE_SERVER_VERSION): 9
mailer_transport: smtp
mailer_host: 127.0.0.1
mailer_user: null
mailer_password: null
env(SYMFONY_SECRET): SuperSecretTokenPleaseChangeIt
swp_updater.version.class: SWP\Bundle\CoreBundle\Version\Version
env(SWP_DOMAIN): 88.208.192.142
cache_servers:
- localhost
doctrine_cache_driver: array
sentry.dsn: false
session_memcached_host: localhost
session_memcached_port: 11211
session_memcached_prefix: sess
session_memcached_expire: 3600
test_env: doctrine
allow_origin_cors: '*'
superdesk_servers: 213.171.204.147
env(ELASTICA_HOST): localhost
env(ELASTICA_PORT): 9200
env(ELASTICA_INDEX_NAME): swp_index
env(RABBIT_MQ_HOST): 127.0.0.1
env(RABBIT_MQ_PORT): 5672
env(RABBIT_MQ_USER): test
env(RABBIT_MQ_PASSWORD): test
env(WEBSOCKET_PORT): 8080
env(WEBSOCKET_HOST): localhost
env(PAYWALL_SERVER_URL): null
env(PAYWALL_SERVER_USERNAME): null
env(PAYWALL_SERVER_PASSWORD): null
env(SUBSCRIPTIONS_CACHE_LIFETIME): 86400
fixtures_type: '%env(FIXTURES_TYPE)%'
env(FIXTURES_TYPE): dev

same error 500

from web-publisher.

ahilles107 avatar ahilles107 commented on July 26, 2024

You have two tenants in databse with this same data. Remove one.

Btw. those issues are about publisher issues not configuration problems. Please create them only with informations how to reproduce issue. Pull Requests with code fixes are also welcome.

from web-publisher.

d1mf avatar d1mf commented on July 26, 2024

I understand I just want to get the application working. Very difficult. Thanks for the answer, I'll check it out.

from web-publisher.

d1mf avatar d1mf commented on July 26, 2024

Done. I reinstall DB. Now I see this messages( server superdesk publisher)

Tenant for host "88.208.192.142" could not be found!

from web-publisher.

ahilles107 avatar ahilles107 commented on July 26, 2024

Hey, message is clear. After db reinstall did you created tenant?

from web-publisher.

d1mf avatar d1mf commented on July 26, 2024

Sorry. I wrong this ( I mean wrong ip address)

SYMFONY_ENV=prod php app/console swp:tenant:create 88.208.192.142 Superdesk

I see the theme load.

Next step I want to add WordPress. and API down. I add WordPress using the website(GUI).

Or need using this manual https://www.superdesk.org/news/installing-superdesk-publisher?topic=publisher ( switch superdesk publisher to WordPress?)

from web-publisher.

d1mf avatar d1mf commented on July 26, 2024

I not known what remove two tenants in the database with this same data. what find tenants?

from web-publisher.

ahilles107 avatar ahilles107 commented on July 26, 2024

Output controll and wordpress support is in not released yet version. So it may break. We spotted in last days many ui issues related to output channels, so i woudn't recommend you using it for creating new tenant. If You use latest master (there is open PR with improvements for wordpress adapter) then using api should work.

In general when you have publisher running, then follow this cookbook https://superdesk-publisher.readthedocs.io/en/latest/cookbooks/implementators/wordpress_output_channel.html.

Working with not released publisher features require some technicall knowledge - espcialy databes and php. I can recommend You to wait for next stable release (1.4) - planned for September. Then you will can configure all of it with UI.

from web-publisher.

d1mf avatar d1mf commented on July 26, 2024

Is it possible to configure superdesk publisher + WordPress? This my task. If this needs only terminal, I can.
Or need to wait for new version support WordPress?

from web-publisher.

ahilles107 avatar ahilles107 commented on July 26, 2024

It is still work in progress. Many things works already but we are polishing the rest. Final release should be in September.

from web-publisher.

d1mf avatar d1mf commented on July 26, 2024

Ok. Issue You can close

from web-publisher.

d1mf avatar d1mf commented on July 26, 2024

Close

from web-publisher.

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.