[Resolved] 3.0.0 alpha 1 Install Notification

Home Forums Support [Resolved] 3.0.0 alpha 1 Install Notification

Home Forums Support 3.0.0 alpha 1 Install Notification

Viewing 15 posts - 1 through 15 (of 31 total)
  • Author
    Posts
  • #1428492
    Ian

    Just used Easy Theme and Plugin Upgrades to install GP 3.0.0 alpha 1 into a new site. Got these but not sure if it’s a plugin conflict. Reporting it as per Tom’s post.

    Warning: mysqli_real_escape_string() expects parameter 2 to be string, array given in /var/www/domain.com/htdocs/wp-includes/wp-db.php on line 1158

    Warning: mysqli_real_escape_string() expects parameter 2 to be string, array given in /var/www/domain.com/htdocs/wp-includes/wp-db.php on line 1158

    Any ideas?

    #1428494
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Where are these warnings showing up? Did they only show up once, or are they persistent?

    Thanks for reporting!

    #1428495
    Ian

    Only once during activating 3.0.0 alpha 1. And nothing in the nginx logs.

    How can I start testing hooking icons into the menu?

    What other cool things do you suggest I try that is shiny and new? lol

    #1428597
    Tom
    Lead Developer
    Lead Developer

    Was this a fresh install or updating from 2.4.2?

    We’ll be adding docs for the new hooks in the next few days. Adding icons is super easy now:

    add_action( 'generate_menu_bar_items', function() {
        ?>
            <span class="menu-bar-item">
                <a href="#">Icon here</a>
            </span>
        <?php
    } );
    #1428610
    Ian

    This was an update from a previous most current version, cannot guarantee if it was 2.4.2 but if that was the latest version, then yes.

    Dummy moment. After I add that snippet to functions.php, what’s the next step?

    #1428612
    Tom
    Lead Developer
    Lead Developer

    Interesting, I wonder if it was server related. What plugins are active on the site?

    That snippet should make a “Link” item in your navigation as is – then you can just adjust it as needed.

    #1428649
    Ian

    Hey Tom,

    I went and added auth info in my original post. Feel free to poke around as the site is under dev right now. Currently has 18 plugins and using a GP child theme. Don’t see any new items in the menu after adding the functions code. What am I missing? TIA!

    #1429689
    Tom
    Lead Developer
    Lead Developer

    That’s strange, I’m not seeing anything in GP that would trigger those specific warnings. Did anything change on the site after the update?

    The new hook only works when using the flexbox version of the theme – do you have that enabled already?

    #1429793
    Ian

    I don’t see any signs of the warnings anymore. Maybe it’s just something specific to this dev site.

    After flipping the switch from Float to Flexbox, I see the menu item. Now is there a tutorial on how to replace the text with an icon or add icon to the text item?

    #1429897
    Tom
    Lead Developer
    Lead Developer

    Sounds good – if you have any other sites to upgrade, especially on that server, I’d definitely like to know if it happens again.

    You can add any kind of HTML into that hook. So you could add font icons, SVG icons, plain text, images etc..

    So if I wanted to add some inline SVG social icons:

    add_action( 'generate_menu_bar_items', function() {
        ?>
            <span class="menu-bar-item">
                <a href="URL TO FACEBOOK"><svg aria-hidden="true" height="1em" width="1em" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"></path></svg></a>
                <a href="URL TO LINKEDIN"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" width="1em" height="1em" aria-hidden="true"><path d="M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z" fill="currentColor"></path></svg></a>
            </span>
        <?php
    } );
    #1430299
    Ian

    Thanks Tom. Got the menu icons sorted.

    Noticed 1 more issue. There seems to be some padding (top of page block element) that is caused by:

    .inside-header.grid-container {
    }

    When I add padding: 0;, it gets fixed. If you log in, you will see a spacing under the header image.

    Any ideas what may be causing this? Looks like the space only exists when Structure = Flexbox. When Structure = Float, there is no extra padding. It’s just a block element with GB Container and regular image block.

    And just for you, I will load 2.4.2 with a child theme and do an in-place upgrade to 3.0.0 and see if that error comes back. Same server but this is an even newer build. Has almost no plugins. Will do this tomorrow and report back.

    #1431006
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    That’s happening because you have an empty site header element with padding, which will cause space.

    You should be able to just disable the site header using a Layout Element, or turn your header block element into a “Site Header” type, which will replace the default site header element.

    Thank you! Appreciate you testing it 🙂

    #1431141
    Ian

    ok, here is the procedure I took on a vanilla build running 1 active plugin (Seepdrod Coming Soon).

    1. Installed GP 2.4.2.
    2. Installed GP child theme as downloaded from the link on this KB: https://docs.generatepress.com/article/using-child-theme/
    3. Installed and activated Easy Theme and Plugin Upgrades
    4. Enabled Secure WP Debug log
    5. Uploaded GP 3.0.0 Alpha 1
    6. No error on update
    7. Installed and activate WP Rollback
    8. Rollback GP to 2.4.2
    9. Install and activated gp-premium-1.11.0-alpha.3.zip
    10. Installed GP 3.0.0 Alpha 1
    11. No error!
    12. Rolled back to GP 2.4.2
    13. Enabled all GPP options
    14. Installed GP 3.0.0 Alpha 1
    15. No errors!

    So good news, no error on this new install. Hope that was helpful.

    Somewhere along the line, I see Query Monitor has been installed. Was this bundled with any GP product that I installed? Interesting.

    #1431148
    Ian

    By the way, I was wanting to check out the new cleaner styles. Maybe I ran through an upgrade so it kept the 2.4.2 layout. How do I make the style look like the ones as described here: https://generatepress.com/generatepress-3-0-a-new-era/

    #1431150
    Leo
    Staff
    Customer Support

    The new style would only apply to fresh installs.

Viewing 15 posts - 1 through 15 (of 31 total)
  • You must be logged in to reply to this topic.