Forum Replies Created
-
AuthorPosts
-
AJ Tatum
ParticipantI haven't tried it and not planning to at the moment as I don't have time right now to handle any "what if" scenarios LOL.
June 25, 2023 at 10:33 AM in reply to: ✅Fatal single quote error in Meta Box 5.7.3 and AIO 1.21.2 #42355AJ Tatum
ParticipantYea, it seems like Meta Box really dropped the ball on testing this version thoroughly.
AJ Tatum
ParticipantIndeed it does. It seems that this version wasn't very well tested before being released. I simply reverted the upgrade as it would take me a long time to try and fix all the MB Views...
AJ Tatum
ParticipantOh, and for further information, those views have a type "Action" and hook into one of my themes action hooks.
AJ Tatum
ParticipantI too got an error as soon as I upgraded to the latest version and luckily was able to revert with Updraft Plus. This is the error that get's generated in the WordPress log:
[24-Jun-2023 13:14:31 UTC] PHP Fatal error: Uncaught eLightUp\Twig\Error\SyntaxError: Unexpected character "#" in "jarvis-news-before-article-content" at line 30. in /sites/ajtatumdigital.com/html/wp-content/plugins/meta-box-aio/vendor/elightup/twig/Twig/Lexer.php:363 Stack trace: #0 /sites/ajtatumdigital.com/html/wp-content/plugins/meta-box-aio/vendor/elightup/twig/Twig/Lexer.php(290): eLightUp\Twig\Lexer->lexExpression() #1 /sites/ajtatumdigital.com/html/wp-content/plugins/meta-box-aio/vendor/elightup/twig/Twig/Lexer.php(184): eLightUp\Twig\Lexer->lexVar() #2 /sites/ajtatumdigital.com/html/wp-content/plugins/meta-box-aio/vendor/elightup/twig/Twig/Environment.php(469): eLightUp\Twig\Lexer->tokenize() #3 /sites/ajtatumdigital.com/html/wp-content/plugins/meta-box-aio/vendor/elightup/twig/Twig/Environment.php(516): eLightUp\Twig\Environment->tokenize() #4 /sites/ajtatumdigital.com/html/wp-content/plugins/meta-box-aio/vendor/elightup/twig/Twig/Environment.php(348): eLightUp\Twig\Environment->compileSource() #5 /sites/ajtatumdigital.com/html/wp-content/plugins/meta-box-aio/vendor/elightup/twig/Twig/Environment.php(309): eLightUp\Twig\Environment->loadTemplate() #6 /sites/ajtatumdigital.com/html/wp-content/plugins/meta-box-aio/vendor/elightup/twig/Twig/Environment.php(277): eLightUp\Twig\Environment->load() #7 /sites/ajtatumdigital.com/html/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-views/src/Renderer.php(72): eLightUp\Twig\Environment->render() #8 /sites/ajtatumdigital.com/html/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-views/src/ActionLoader.php(55): MBViews\Renderer->render() #9 /sites/ajtatumdigital.com/html/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-views/src/ActionLoader.php(46): MBViews\ActionLoader->render_view() #10 /sites/ajtatumdigital.com/html/wp-includes/class-wp-hook.php(308): MBViews\ActionLoader->MBViews\{closure}() #11 /sites/ajtatumdigital.com/html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #12 /sites/ajtatumdigital.com/html/wp-includes/plugin.php(517): WP_Hook->do_action() #13 /sites/ajtatumdigital.com/html/wp-content/themes/kadence/template-parts/content/entry_header.php(29): do_action() #14 /sites/ajtatumdigital.com/html/wp-includes/template.php(785): require('...') #15 /sites/ajtatumdigital.com/html/wp-includes/template.php(718): load_template() #16 /sites/ajtatumdigital.com/html/wp-includes/general-template.php(204): locate_template() #17 /sites/ajtatumdigital.com/html/wp-content/themes/kadence/template-parts/content/single-entry.php(22): get_template_part() #18 /sites/ajtatumdigital.com/html/wp-includes/template.php(785): require('...') #19 /sites/ajtatumdigital.com/html/wp-includes/template.php(718): load_template() #20 /sites/ajtatumdigital.com/html/wp-includes/general-template.php(204): locate_template() #21 /sites/ajtatumdigital.com/html/wp-content/themes/kadence/inc/template-functions/single-functions.php(27): get_template_part() #22 /sites/ajtatumdigital.com/html/wp-includes/class-wp-hook.php(308): Kadence\single_content() #23 /sites/ajtatumdigital.com/html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #24 /sites/ajtatumdigital.com/html/wp-includes/plugin.php(517): WP_Hook->do_action() #25 /sites/ajtatumdigital.com/html/wp-content/themes/kadence/template-parts/content/single.php(34): do_action() #26 /sites/ajtatumdigital.com/html/wp-includes/template.php(785): require('...') #27 /sites/ajtatumdigital.com/html/wp-includes/template.php(718): load_template() #28 /sites/ajtatumdigital.com/html/wp-includes/general-template.php(204): locate_template() #29 /sites/ajtatumdigital.com/html/wp-content/themes/kadence/inc/template-functions/single-functions.php(20): get_template_part() #30 /sites/ajtatumdigital.com/html/wp-includes/class-wp-hook.php(308): Kadence\single_markup() #31 /sites/ajtatumdigital.com/html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #32 /sites/ajtatumdigital.com/html/wp-includes/plugin.php(517): WP_Hook->do_action() #33 /sites/ajtatumdigital.com/html/wp-content/themes/kadence/single.php(20): do_action() #34 /sites/ajtatumdigital.com/html/wp-includes/template-loader.php(106): include('...') #35 /sites/ajtatumdigital.com/html/wp-blog-header.php(19): require_once('...') #36 /sites/ajtatumdigital.com/html/index.php(18): require('...') #37 {main} thrown in /sites/ajtatumdigital.com/html/wp-content/plugins/meta-box-aio/vendor/elightup/twig/Twig/Lexer.php on line 363The same error is thrown for the view "novashare-before-content".
For "jarvis-news-before-article-content"
I have the following:
{% set post_category = mb.get_the_terms(post.ID, 'article_category')|first %} {% set post_source = mb.get_the_terms(post.ID, 'article_source')|first %} <div class="entry-taxonomies"> <span class="category-links term-links category-style-pill"> <a href="https://ajtatumdigital.com/articles/category/{{ post_category.slug }}/" rel="category tag" title="{{ post_category.name }}" itemprop="articleSection"> <span class="jarvis-news-fa-dark-icon"> <i class="fa-duotone fa-tags fa-lg"></i> </span> {{ post_category.name }} </a> </span> <span class="category-links term-links category-style-pill"> <a href="https://ajtatumdigital.com/articles/source/{{ post_source.slug }}/" rel="category tag" title="{{ post_source.name }}" itemprop="creditText"> <span class="jarvis-news-fa-dark-icon"> <i class="fa-duotone fa-browsers fa-lg"></i> </span> {{ post_source.name }} </a> </span> </div> <aside class="ajtd-novashare"> {{ mb.do_shortcode('[novashare_inline_content]') }} </aside>And for "novashare-before-content" I have:
</div> {% set post_contains_affiliate_links = post.contains_affiliate_links %} {% if post_contains_affiliate_links == 1 %} <aside id="disclaimer-text"> <p class="has-text-align-center"><strong>Affiliate Disclaimer:</strong> This site contains affiliate links. If you make a purchase through our site, we may earn a commission at no extra cost to you. <strong><a title="Disclaimer" href="https://ajtatumdigital.com/legal/disclaimer/" target="_blank" rel="noopener">Learn more.</a></strong></p> </aside> {% endif %} <aside class="ajtd-novashare"> {{ mb.do_shortcode('[novashare_inline_content]') }} </aside>Everything works fine with version 5.7.2, but as soon as I upgrade to 5.7.3, pretty much all of Metabox Views throw errors.
December 17, 2022 at 1:23 AM in reply to: ✅Advanced Location: Unable to get custom function to work #39881AJ Tatum
ParticipantLOL, it wasn't until I posted this that I realized I made a stupid mistake and had the logic '$is_podcast = true' when it should have been ==. That fixed it.
November 29, 2022 at 1:56 AM in reply to: ✅PHP 8 Error after activating "MB Custom Post Types & Custom Taxonomies" #39375AJ Tatum
ParticipantYou pointed me in the right direction! For some reason, when I looked at the PHP code for Articles it looked much different than Podcast and other CPTs, so I removed properties that didn't exist in other CPTs and added properties that weren't in Articles. I updated it via the database as when I tried to change it from the editor, it wouldn't take effect. I don't know how but it had properties that were probably causing issues, most notably was this one:
'permalink_epmask' => EP_PERMALINK
Not sure how it got messed up, but all seems to be working now. I went into Rank Math and was successfully able to update the settings with Meta Box activated and no error occured.
Thanks!
November 29, 2022 at 1:10 AM in reply to: ✅PHP 8 Error after activating "MB Custom Post Types & Custom Taxonomies" #39374AJ Tatum
ParticipantRemoved Firewall Restrictions but also created a WireGuard profile just in case and send it to you via contact form.
November 29, 2022 at 1:05 AM in reply to: ✅PHP 8 Error after activating "MB Custom Post Types & Custom Taxonomies" #39373AJ Tatum
ParticipantI have some country restrictions and whatnot. Had the same issue with Rank Math. I will remove the restrictions, but it may be easier if you VPN in. I'll send you a WireGuard configuration via contact form in case removing the firewall rules don't work.
November 28, 2022 at 8:58 PM in reply to: ✅PHP 8 Error after activating "MB Custom Post Types & Custom Taxonomies" #39367AJ Tatum
ParticipantThis is Rank Math's response. Can you confirm? Does the latest version work with PHP 8?
Hello,
Looking at the error it seems that the Metabox plugin still is not fully compatible with PHP8 and higher.
In this version of PHP, the mixed operands don’t throw a warning like they used to in PHP7.4 and as such plugin developers need to make sure this doesn’t happen with their plugins.
What is rather strange is the fact that this is happening on a default WordPress class so it seems that the code from Metabox is triggering the following to be converted to a string: EP_PAGES and EP_PERMALINK.
Those are called in a function that generates rewrite rules from a permalink structure so what you mention in the Metabox forums about the CPTs not being accessible as well seems to validate this information.
Unfortunately, this seems a case of the compatibility with PHP8 failing in one of the Metabox plugins and they would need to update their code to make sure the rewrite rules don’t trigger this error.
Don’t hesitate to get in touch if you have any other questions.
November 28, 2022 at 4:38 AM in reply to: ✅PHP 8 Error after activating "MB Custom Post Types & Custom Taxonomies" #39362AJ Tatum
ParticipantI've gotta say... I honestly like Meta Box, but your support is an atrocious. Seriously, for a plugin priced at your price point it should be better, especially when it's completely breaking a website. I've dealt with the poor support and learned that I need to just figure it out on my own, but if the reason why it's not working is because of the version and I'm not able to take advantage of the current pricing, I'm definitely going to weigh other options because this is honestly a joke. I'm sorry.
November 27, 2022 at 10:56 PM in reply to: ✅PHP 8 Error after activating "MB Custom Post Types & Custom Taxonomies" #39361AJ Tatum
ParticipantSo, what's going on? I haven't heard anything and I have Rank Math looking into it as well and they're being much more responsive, despite them having a much less expensive plugin.
November 26, 2022 at 11:51 AM in reply to: ✅PHP 8 Error after activating "MB Custom Post Types & Custom Taxonomies" #39341AJ Tatum
ParticipantSent
November 26, 2022 at 1:28 AM in reply to: ✅PHP 8 Error after activating "MB Custom Post Types & Custom Taxonomies" #39334AJ Tatum
ParticipantThere's definitely a conflict between Meta Box and Rank Math. As soon as Meta Box is enabled, whenever I try to save any settings in Rank Math I get the error I posted above. So, I had to disable all of Meta Box.
November 25, 2022 at 11:33 PM in reply to: ✅PHP 8 Error after activating "MB Custom Post Types & Custom Taxonomies" #39331AJ Tatum
ParticipantOk, so I'm able to access a CPT such as https://ajtatumdigital.com/podcast/marketing/5-simple-activecampaign-tips/ but when I try to access https://ajtatumdigital.com/podcast/ I get a 404 error rather than the archives page. I have tried deactivating Permalink Manager Pro to see if that was a potential conflict, but it didn't make any difference. I am able to access https://ajtatumdigital.com/?post_type=podcast though and that should be the same page as https://ajtatumdigital.com/podcast/
-
AuthorPosts