Forum Replies Created

Viewing 15 replies - 1 through 15 (of 74 total)
  • Thread Starter cwolff

    (@cwolff)

    Thank you bcworkz….

    Yes exactly. Do you know of any code samples or examples of creating custom route/endpoints to get this type of data?

    How would I approach creating a custom route/endpoint to get all of the content in the
    <nav id=”site-navigation” class=”main-navigation” role=”navigation”></nav> element?

    Thread Starter cwolff

    (@cwolff)

    Thank you again bcworkz,

    Is it possible to register a route/endpoint to make my WP menuing/navigation consumable via wp_nav_menu()?

    Thread Starter cwolff

    (@cwolff)

    I think my issue is that the html outside of the page content (as in elements that are in the theme) are not returned in the “pages” method: https://mysite/wp-json/wp/v2/pages/

    How would I get the contents of an element that is in a WP template code?

    • This reply was modified 1 year, 6 months ago by cwolff.
    Thread Starter cwolff

    (@cwolff)

    Thank you bcworks…

    How do I reference a div with an id=remote-content from theContent variable above?

    var theContent = data;

    Something like: theContent.content.#remote-content.rendered;

    Thread Starter cwolff

    (@cwolff)

    Thanks Jake,

    The code in our Model_Install.php is different than that in the documentation.

    		/* See https://gravitypdf.com/documentation/v5/gfpdf_tmp_location/ for more details about this filter */
    		$this->data->template_tmp_location = apply_filters( 'gfpdf_tmp_location', $this->data->template_location . 'tmp/', $working_folder, $upload_dir_url ); /* encouraged to move this to a directory not accessible via the web */

    Maybe I am not understanding. Do I need to add the filter code from the documentation to my functions.php?

    Thank you for this plugin, by the way, we use it extensively.

    Thread Starter cwolff

    (@cwolff)

    Thanks Eli,

    I am able to connect now with no problem. There was probably a network issue on my side.

    Thanks for this plugin.

    Chris

    Thread Starter cwolff

    (@cwolff)

    Thank you wfdave.

    As suggested, giving the user “DROP” fixed the issue.

    Thread Starter cwolff

    (@cwolff)

    How can I at least disable the module so that I can log in with a WP account, not from AD?

    I have tried re-naming the NextADI plugin directory and restarting with no success?

    Thanks,
    Chris

    Thread Starter cwolff

    (@cwolff)

    I now have this working as desired. I simply used jQuery .ajax function, which parses and renders just as I needed.

    The following code grabs the content of a remote page and renders it on my site’s page:

                <script>
                $( document ).ready(function() {
                $.ajax({
                   url: 'http://www.my-url/wp-json/wp/v2/pages/34/',
                   error: function() {
                      $('#info').html('<p>An error has occurred</p>');
                   },
                   dataType: 'json',
                   async: false,
                   type: 'GET',  
                   success: function(data) {
                     var theContent = data;
                     document.getElementById("remote-content").innerHTML = theContent.content.rendered; 
                   }
                });
                });
                </script>
    
                <span id="remote-content"></span>

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    • This reply was modified 3 years, 4 months ago by bdbrown.
    Thread Starter cwolff

    (@cwolff)

    
    ### WordPress Environment ###
    
    Home URL: http://nedvangomusic.com
    Site URL: http://nedvangomusic.com
    WC Version: 3.1.2
    Log Directory Writable: ✔
    WP Version: 4.8.2
    WP Multisite: –
    WP Memory Limit: 400 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_US
    
    ### Server Environment ###
    
    Server Info: Apache/2.2.22
    PHP Version: 5.6.21
    PHP Post Max Size: 400 MB
    PHP Time Limit: 120
    PHP Max Input Vars: 1000
    cURL Version: 7.26.0
    OpenSSL/1.0.1t
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.32
    Max Upload Size: 400 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 3.1.2
    WC Database Prefix: wp_nvgm
    woocommerce_sessions: ✔
    woocommerce_api_keys: ✔
    woocommerce_attribute_taxonomies: ✔
    woocommerce_downloadable_product_permissions: ✔
    woocommerce_order_items: ✔
    woocommerce_order_itemmeta: ✔
    woocommerce_tax_rates: ✔
    woocommerce_tax_rate_locations: ✔
    woocommerce_shipping_zones: ✔
    woocommerce_shipping_zone_locations: ✔
    woocommerce_shipping_zone_methods: ✔
    woocommerce_payment_tokens: ✔
    woocommerce_payment_tokenmeta: ✔
    MaxMind GeoIP Database: ✔
    
    ### Security ###
    
    Secure connection (HTTPS): ❌Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates.
    Hide errors from visitors: ✔
    
    ### Active Plugins (12) ###
    
    iThemes Security: by iThemes – 6.6.1
    Black Studio TinyMCE Widget: by Black Studio – 2.5.1
    Display Widgets: by Strategy11 – 2.05
    Instagram Feed: by Smash Balloon – 1.5
    Max Mega Menu: by Tom Hemsley – 2.3.8
    Photo Gallery: by Photo Gallery Team – 1.3.54
    Simple Custom Post Order: by Colorlib – 2.3.2
    Theme My Login: by Jeff Farthing – 6.4.9
    UpdraftPlus - Backup/Restore: by UpdraftPlus.Com
    DavidAnderson – 1.13.11
    
    WooCommerce: by Automattic – 3.1.2
    Wordfence Security: by Wordfence – 6.3.19
    WP Super Cache: by Automattic – 1.5.5
    
    ### Settings ###
    
    API Enabled: ✔
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    ### WC Pages ###
    
    Shop base: #19 - /shop/
    Cart: #20 - /cart/
    Checkout: #21 - /checkout/
    My account: #22 - /my-account/
    
    ### Theme ###
    
    Name: Ned Van Go
    Version: 1.0.0
    Author URL: http://31st.com
    Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    WooCommerce Support: ❌ Not declared
    
    ### Templates ###
    
    Archive Template: Your theme has a woocommerce.php file
    you will not be able to override the woocommerce/archive-product.php custom template since woocommerce.php has priority over archive-product.php. This is intended to prevent display issues.
    
    Overrides: nvg/woocommerce/content-single-product.php
    nvg/woocommerce/global/breadcrumb.php
    nvg/woocommerce/global/form-login.php
    nvg/woocommerce/global/quantity-input.php
    nvg/woocommerce/global/sidebar.php
    nvg/woocommerce/global/wrapper-end.php
    nvg/woocommerce/global/wrapper-start.php
    nvg/woocommerce/loop/add-to-cart.php
    nvg/woocommerce/loop/loop-end.php
    nvg/woocommerce/loop/loop-start.php
    nvg/woocommerce/loop/no-products-found.php
    nvg/woocommerce/loop/orderby.php
    nvg/woocommerce/loop/pagination.php
    nvg/woocommerce/loop/price.php
    nvg/woocommerce/loop/rating.php
    nvg/woocommerce/loop/result-count.php
    nvg/woocommerce/loop/sale-flash.php
    
    

    Same issue on our sites. Not using remote storage.

    [12-Sep-2017 11:48:53 UTC] UpdraftPlus: no such storage class: UpdraftPlus_BackupModule_
    [12-Sep-2017 11:48:53 UTC] PHP Warning: include_once(E:\officeofconservatorshipmanagement\officeofconservatorshipmanagement-cms\wp-content\plugins\updraftplus/methods/.php): failed to open stream: No such file or directory in E:\officeofconservatorshipmanagement\officeofconservatorshipmanagement-cms\wp-content\plugins\updraftplus\class-updraftplus.php on line 3658
    [12-Sep-2017 11:48:53 UTC] PHP Warning: include_once(): Failed opening ‘E:\officeofconservatorshipmanagement\officeofconservatorshipmanagement-cms\wp-content\plugins\updraftplus/methods/.php’ for inclusion (include_path=’.;C:\php\pear’) in E:\officeofconservatorshipmanagement\officeofconservatorshipmanagement-cms\wp-content\plugins\updraftplus\class-updraftplus.php on line 3658
    [12-Sep-2017 11:48:53 UTC] UpdraftPlus: no such storage class: UpdraftPlus_BackupModule_

    Thread Starter cwolff

    (@cwolff)

    I can get this working only by setting the “Email Address” field on the Email Setup screen to match the address used to set up my OAUTH account at Google API console.

    However, emails are now not being sent from the “From Email Configuration” that I have set to override.

    Thread Starter cwolff

    (@cwolff)

    I have fixed the email from address issue, but completed order emails are still going to customer’s spam folders.

    Anyone have suggestions as to how to fix this?

    Thread Starter cwolff

    (@cwolff)

    I have discovered that the Order Complete emails are going to user’s spam folder.

    I believe this is because the emails are being sent from the WordPress Admin email account, which is the incorrect domain/different from the actual site.

    How do I change this? I do not see an option under Woocomm > Settings > Email.

    I did change the recipient email for new orders to the correct email address, but this did not change the send from email on completed orders, it is still set to the WP Admin email account.

    Thread Starter cwolff

    (@cwolff)

    Thank you.

    I was somehow able to resolve this issue by re-installing the SSL certificate for the host. Not sure why this worked.

Viewing 15 replies - 1 through 15 (of 74 total)