Git Product home page Git Product logo

Comments (7)

jerome-barbato avatar jerome-barbato commented on May 30, 2024

Hello @celtic34fr It should be fixed in the upcoming 2.0, could you try it ? https://github.com/wearemetabolism/wordpress-bundle/tree/2.0.x

from wordpress-bundle.

celtic34fr avatar celtic34fr commented on May 30, 2024

I'll try to install 2.0.x dev version with :

composer require metabolism/wordpress-bundle ^2.0.x

after installating all packages it's return :

Executing script cache:clear [KO] [KO] Script cache:clear returned with error code 255 !! !! Fatal error: During class fetch: Uncaught ReflectionException: Class "Metabolism\WordpressBundle\Traits\ContextTrait" not found while loading "App\Service\Context". in H:\wamp64\www\wordpress-bundle\vendor\symfony\error-handler\DebugClassLoader.php:284 .....

I' don't find Class "Metabolism\WordpressBundle\Traits\ContextTrait" as in the previousd Version ????

from wordpress-bundle.

celtic34fr avatar celtic34fr commented on May 30, 2024

after add manualy Class Metabolism\WordpressBundle\Traits\ContextTrait, i try to execute :

symfony console cache:clear

it's return :
` // Clearing the cache for the dev environment with debug true

In routing.php line 38:

Call to a member function get() on null

cache:clear [--no-warmup] [--no-optional-warmers]`

????

and when i try to access to web site :

[ErrorException](http://wordpress-bundle/#trace-box-1) HTTP 500 Internal Server Error User Warning: $request must be renamed in "H:\wamp64\www\wordpress-bundle/public/index.php" : $httpRequest = Request::createFromGlobals(); ....

from wordpress-bundle.

celtic34fr avatar celtic34fr commented on May 30, 2024

last remark : the administration area is accessible , but i've yhje same error when i want save ou public a page :
La mise à jour a échoué. La réponse n’est pas une réponse JSON valide.

I've the error on article creation too, but on page 'PAges' and 'Articles', in tht e top i've this message :
There is no controller defined : Create one'

when i click on the link :
'


( ! ) Warning: copy(H:\wamp64\www\wordpress-bundle\vendor\metabolism\wordpress-bundle\src\Plugin/../../samples/controller/BlogController.php): Failed to open stream: No such file or directory in H:\wamp64\www\wordpress-bundle\vendor\metabolism\wordpress-bundle\src\Plugin\NoticePlugin.php on line 36

1 | 0.0003 | 367496 | {main}( ) | ...\edit.php:0
2 | 0.3108 | 10076648 | require_once( 'H:\wamp64\www\wordpress-bundle\public\edition\wp-admin\admin-header.php ) | ...\edit.php:397
3 | 0.3364 | 10182312 | do_action( $hook_name = 'admin_notices' ) | ...\admin-header.php:303
4 | 0.3364 | 10182688 | WP_Hook->do_action( $args = [0 => ''] ) | ...\plugin.php:474
5 | 0.3364 | 10182688 | WP_Hook->apply_filters( $value = '', $args = [0 => ''] ) | ...\class-wp-hook.php:331
6 | 0.3368 | 10183848 | Metabolism\WordpressBundle\Plugin\NoticePlugin->adminNotices( '' ) | ...\class-wp-hook.php:307
7 | 0.3370 | 10184040 | copy( $from = 'H:\wamp64\www\wordpress-bundle\vendor\metabolism\wordpress-bundle\src\Plugin/../../samples/controller/BlogController.php', $to = 'H:\wamp64\www\wordpress-bundle/src/Controller/BlogController.php' ) | ...\NoticePlugin.php:36

		<div class="tablenav bottom">

			<div class="alignleft actions bulkactions">
		<label for="bulk-action-selector-bottom" class="screen-reader-text">Sélectionnez l’action groupée</label></div></div>
1 élément

	<form method="get">
	
	</form>
( ! ) Warning: [copy](http://www.php.net/function.copy)(H:\wamp64\www\wordpress-bundle\vendor\metabolism\wordpress-bundle\src\Plugin/../../samples/controller/BlogController.php): Failed to open stream: No such file or directory in H:\wamp64\www\wordpress-bundle\vendor\metabolism\wordpress-bundle\src\Plugin\NoticePlugin.php on line 36 Call Stack # Time Memory Function Location 1 0.0003 367496 {main}( ) ...\edit.php:0 2 0.3108 10076648 require_once( 'H:\wamp64\www\wordpress-bundle\public\edition\wp-admin\admin-header.php ) ...\edit.php:397 3 0.3364 10182312 do_action( $hook_name = 'admin_notices' ) ...\admin-header.php:303 4 0.3364 10182688 WP_Hook->do_action( $args = [0 => ''] ) ...\plugin.php:474 5 0.3364 10182688 WP_Hook->apply_filters( $value = '', $args = [0 => ''] ) ...\class-wp-hook.php:331 6 0.3368 10183848 Metabolism\WordpressBundle\Plugin\NoticePlugin->adminNotices( '' ) ...\class-wp-hook.php:307 7 0.3370 10184040 [copy](http://www.php.net/function.copy)( $from = 'H:\\wamp64\\www\\wordpress-bundle\\vendor\\metabolism\\wordpress-bundle\\src\\Plugin/../../samples/controller/BlogController.php', $to = 'H:\\wamp64\\www\\wordpress-bundle/src/Controller/BlogController.php' ) ...\NoticePlugin.php:36

( ! ) Warning: copy(H:\wamp64\www\wordpress-bundle\vendor\metabolism\wordpress-bundle\src\Plugin/../../samples/template/generic.html.twig): Failed to open stream: No such file or directory in H:\wamp64\www\wordpress-bundle\vendor\metabolism\wordpress-bundle\src\Plugin\NoticePlugin.php on line 37
Call Stack

Time Memory Function Location

1 0.0003 367496 {main}( ) ...\edit.php:0
2 0.3108 10076648 require_once( 'H:\wamp64\www\wordpress-bundle\public\edition\wp-admin\admin-header.php ) ...\edit.php:397
3 0.3364 10182312 do_action( $hook_name = 'admin_notices' ) ...\admin-header.php:303
4 0.3364 10182688 WP_Hook->do_action( $args = [0 => ''] ) ...\plugin.php:474
5 0.3364 10182688 WP_Hook->apply_filters( $value = '', $args = [0 => ''] ) ...\class-wp-hook.php:331
6 0.3368 10183848 Metabolism\WordpressBundle\Plugin\NoticePlugin->adminNotices( '' ) ...\class-wp-hook.php:307
7 0.3395 10186408 copy( $from = 'H:\wamp64\www\wordpress-bundle\vendor\metabolism\wordpress-bundle\src\Plugin/../../samples/template/generic.html.twig', $to = 'H:\wamp64\www\wordpress-bundle/templates/generic.html.twig' ) ...\NoticePlugin.php:37
Articles Ajouter

There is no controller defined : Create one
Filtrer la liste des articles

[Tous (1)](http://wordpress-bundle/edition/wp-admin/edit.php?post_type=post) | [Publié (1)](http://wordpress-bundle/edition/wp-admin/edit.php?post_status=publish&post_type=post) 

Rechercher des articles:
Sélectionnez l’action groupée
Filtrer par date
Filtrer par catégorie
1 élément

Liste des articles
Tout sélectionner

Titre
Auteur/autrice Catégories Étiquettes
Commentaires

Date
Sélectionner Bonjour tout le monde !

Bonjour tout le monde !
Modifier |
| Corbeille | Voir
wps_admin Non classé —Aucune étiquette
1(1 commentaire)
Publié
21/02/2022 à 8h08
Tout sélectionner

Titre
Auteur/autrice Catégories Étiquettes
Commentaires

Date
Sélectionnez l’action groupée
1 élément'

from wordpress-bundle.

jerome-barbato avatar jerome-barbato commented on May 30, 2024

Hello @celtic34fr thank you for your long report and your time, I have fixed numbers of bugs related to your issue.
It should work fine now. Could you confirm ?

from wordpress-bundle.

celtic34fr avatar celtic34fr commented on May 30, 2024

some problems :

  • first i execute : composer update, and wher it try to clear the cache :
  • Executing script cache:clear [KO] [KO] Script cache:clear returned with error code 1 !! !! In wp-db.php line 1753: !! !! Warning: mysqli_real_connect(): (HY000/2002): Aucune connexion n’a pu être établie car l’ordinateur cible l’a expressément refusée !! !! !! Script @auto-scripts was called via post-update-cmd

and when i try tp get home page of website :
`
User Warning: $request must be renamed in "H:\wamp64\www\wordpress-bundle/public/index.php" : $httpRequest = Request::createFromGlobals();

Exception Stack Trace 

ErrorException
in H:\wamp64\www\wordpress-bundle\vendor\metabolism\wordpress-bundle\src\WordpressBundle.php (line 110)

            return;
        global $request;
        if( is_object($request) && get_class($request) == 'Symfony\Component\HttpFoundation\Request' )
            trigger_error('$request must be renamed in "'.$this->public_dir.'/index.php" : $httpRequest = Request::createFromGlobals();', E_USER_WARNING);
        if (!defined('WP_DEBUG_LOG'))
            define('WP_DEBUG_LOG', realpath($this->log_dir . '/wp-errors.log'));
        $composer = $this->root_dir.'/composer.json';

`

I don't go futher, because i'm finishing the website for my customer, and i don't have time to investigate on this errors.


quelques problèmes :

  • d'abord j'exécute : composer update, et quand il essaie de vider le cache :
    Executing script cache:clear [KO] [KO] Script cache:clear returned with error code 1 !! !! In wp-db.php line 1753: !! !! Warning: mysqli_real_connect(): (HY000/2002): Aucune connexion n’a pu être établie car l’ordinateur cible l’a expressément refusée !! !! !! Script @auto-scripts was called via post-update-cmd

et quand j'essaie d'obtenir la page d'accueil du site Web:

`
User Warning: $request must be renamed in "H:\wamp64\www\wordpress-bundle/public/index.php" : $httpRequest = Request::createFromGlobals();

Exception Stack Trace 

ErrorException
in H:\wamp64\www\wordpress-bundle\vendor\metabolism\wordpress-bundle\src\WordpressBundle.php (line 110)

            return;
        global $request;
        if( is_object($request) && get_class($request) == 'Symfony\Component\HttpFoundation\Request' )
            trigger_error('$request must be renamed in "'.$this->public_dir.'/index.php" : $httpRequest = Request::createFromGlobals();', E_USER_WARNING);
        if (!defined('WP_DEBUG_LOG'))
            define('WP_DEBUG_LOG', realpath($this->log_dir . '/wp-errors.log'));
        $composer = $this->root_dir.'/composer.json';

`
Je ne vais pas plus loin, car je suis en train de terminer le site Web de mon client et je n'ai pas le temps d'enquêter sur ces erreurs.

Gilbert ARMENGAUD
Celtic34fr
Béziers - Occitanie - France

from wordpress-bundle.

jerome-barbato avatar jerome-barbato commented on May 30, 2024

Bonjour @celtic34fr avec la release de la 2.2, est ce que vous avez la possibilité de verifier que tout est ok maintenant ?
Merci d'avance !

from wordpress-bundle.

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.