amphibee / wpgb-extended Goto Github PK
View Code? Open in Web Editor NEWRegister WP Grid Builder with object oriented PHP.
License: MIT License
Register WP Grid Builder with object oriented PHP.
License: MIT License
Hi!
Since the last update (v2.0.5), with the new panel, I encounter an error when I save my facet:
"Class 'WP_Grid_Builder\Admin\Export' not found"
This error does not block the save operation.
The problem is located here: htdocs/content/mu-plugins/wpgb-extended/src/Providers/ItemSync.php
WPGB extended doesn't check if WP Grid Builder is enabled before syncing, which can cause a website crash :
PHP Fatal error: Uncaught Error: Class 'WP_Grid_Builder\Includes\Database' not found in /var/www/releases/87432561bf329a5059014949a57117451a2c7c8f/web/app/mu-plugins/wpgb-extended/src/Models/Facet.php:22
Stack trace:
#0 [internal function]: AmphiBee\WpgbExtended\Models\Facet::getBySlug()
#1 /var/www/releases/87432561bf329a5059014949a57117451a2c7c8f/web/app/mu-plugins/wpgb-extended/src/Providers/ItemSync.php(83): call_user_func()
#2 /var/www/releases/87432561bf329a5059014949a57117451a2c7c8f/web/app/mu-plugins/wpgb-extended/src/Providers/ItemSync.php(74): AmphiBee\WpgbExtended\Providers\ItemSync->getItem()
#3 /var/www/releases/87432561bf329a5059014949a57117451a2c7c8f/web/app/mu-plugins/wpgb-extended/src/Core/Hooks/SyncManager.php(18): AmphiBee\WpgbExtended\Providers\ItemSync->importOrUpdate()
#4 [internal function]: AmphiBee\WpgbExtended\Core\Hooks\SyncManager->execute()
#5 /var/www/releases/87432561bf329a5059014949a57117451a2c7c8f/web/app/mu-plugins/wpgb-extended/vendor/amphibee/hookable/src/Hook.php(69): call_user_func_array( in /var/www/releases/87432561bf329a5059014949a57117451a2c7c8f/web/app/mu-plugins/wpgb-extended/src/Models/Facet.php on line 22
Fatal error: Uncaught Error: Class 'WP_Grid_Builder\Includes\Database' not found in /var/www/releases/87432561bf329a5059014949a57117451a2c7c8f/web/app/mu-plugins/wpgb-extended/src/Models/Facet.php:22
Stack trace:
#0 [internal function]: AmphiBee\WpgbExtended\Models\Facet::getBySlug()
#1 /var/www/releases/87432561bf329a5059014949a57117451a2c7c8f/web/app/mu-plugins/wpgb-extended/src/Providers/ItemSync.php(83): call_user_func()
#2 /var/www/releases/87432561bf329a5059014949a57117451a2c7c8f/web/app/mu-plugins/wpgb-extended/src/Providers/ItemSync.php(74): AmphiBee\WpgbExtended\Providers\ItemSync->getItem()
#3 /var/www/releases/87432561bf329a5059014949a57117451a2c7c8f/web/app/mu-plugins/wpgb-extended/src/Core/Hooks/SyncManager.php(18): AmphiBee\WpgbExtended\Providers\ItemSync->importOrUpdate()
#4 [internal function]: AmphiBee\WpgbExtended\Core\Hooks\SyncManager->execute()
#5 /var/www/releases/87432561bf329a5059014949a57117451a2c7c8f/web/app/mu-plugins/wpgb-extended/vendor/amphibee/hookable/src/Hook.php(69): call_user_func_array( in /var/www/releases/87432561bf329a5059014949a57117451a2c7c8f/web/app/mu-plugins/wpgb-extended/src/Models/Facet.php on line 22
Why not remove the "register" parameter! It could be done automatically :)
Template::make('post-list')
->register();
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
composer.json
php ^7.4 || ^8.0
amphibee/hookable v1.0.0
phpunit/phpunit 10.0.16
squizlabs/php_codesniffer 3.7.1
Current HTML markup of a facet wrapper is :
<div class="wpgb-facet wpgb-facet-ID" data-facet="ID" data-grid="GRID">
It would be nice to have
<div class="wpgb-facet wpgb-facet-ID FACET_SLUG" data-facet="ID" data-grid="GRID">
Allow setClass to accept string instead of array only
Using a static variable in the class to store previously found slugs could avoid unnecessary DB queries.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.