Comments (7)
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.
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.
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.
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>
<form method="get">
</form>
( ! ) 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.
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.
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.
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)
- Set root domain url to wp homepage HOT 2
- ArticleAction - for blog page HOT 2
- Gutenberg Question HOT 3
- "Error: Cannot declare class Metabolism.." When i try to load frontend HOT 3
- Erreurs sur la gestion des thèmes - Errors on the management of themes HOT 6
- Logo, title, slogan: escaped chain that must not be HOT 1
- User Deprecated: Method "Symfony\Component\HttpKernel\Bundle\BundleInterface::getPath()" might add "string" HOT 1
- Composer 2 support HOT 1
- Help about AdminAction HOT 2
- Hooks and /edition/wp-login.php HOT 6
- Configuration of the wp-admin path / preventing multiple reads from composer.json HOT 2
- flush_rewrite_rules() is called on every page load HOT 1
- Modifying routing / exposing Permastruct class HOT 2
- Catch-all controller action for custom post types HOT 1
- Redirect `wp-admin` to Wordpress admin HOT 2
- Add support for `DISALLOW_FILE_MODS` to prevent plugin updates HOT 1
- Add support for WP_ENVIRONMENT_TYPE HOT 2
- License question and issue HOT 2
- Twig templates as theme templates HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wordpress-bundle.