Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter sukeybooth

    (@sukeybooth)

    Thanks Lisa, will do

    Thread Starter sukeybooth

    (@sukeybooth)

    PS. I am hosted on IONOS, and I still have access to that dashboard, and the database management menu (from where I did the fat-fingered stupid deed) but can’t see any restore options

    The UpdraftPlus backup files are recent (today) and of the full website, so there’s one .gz folder of the db, and 25 others of all the uploads, themes, plugins, etc.

    Thread Starter sukeybooth

    (@sukeybooth)

    My host won’t increase the “PHP Max Input Vars” so I’m a bit stuck.

    Thread Starter sukeybooth

    (@sukeybooth)

    The SQL has now been updated to 5.7 and the fault is still there.

    I’m still awaiting host to update “PHP Max Input Vars” but I think we are grasping at straws with that option: this action can’t complete even when I’m only trying to delete 2 products at the same time. If the code is that inefficient to need more than 1000 vars to delete 2 products, then there’s surely something wrong??

    I really think this is the WooCommerce plugin.

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://conclave-brighton.co.uk
    Site address (URL): https://conclave-brighton.co.uk
    WC Version: 6.5.1
    REST API Version: ✔ 6.5.1
    WC Blocks Version: ✔ 7.4.3
    Action Scheduler Version: ✔ 3.4.0
    Log Directory Writable: ✔
    WP Version: 6.0
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_GB
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 8.0.19
    PHP Post Max Size: 6 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 1000
    cURL Version: 7.64.0
    OpenSSL/1.1.1n
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.38-log
    Max Upload Size: 64 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 6.5.1
    WC Database Prefix: ClhmG
    Total Database Size: 406.61MB
    Database Data Size: 288.62MB
    Database Index Size: 117.99MB
    ClhmGwoocommerce_sessions: Data: 9.50MB + Index: 0.16MB + Engine InnoDB
    ClhmGwoocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ClhmGwoocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ClhmGwoocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    ClhmGwoocommerce_order_items: Data: 0.16MB + Index: 0.05MB + Engine InnoDB
    ClhmGwoocommerce_order_itemmeta: Data: 1.52MB + Index: 0.66MB + Engine InnoDB
    ClhmGwoocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    ClhmGwoocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ClhmGwoocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ClhmGwoocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ClhmGwoocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ClhmGwoocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ClhmGwoocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ClhmGwoocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ClhmGactionscheduler_actions: Data: 11.52MB + Index: 5.84MB + Engine InnoDB
    ClhmGactionscheduler_claims: Data: 0.30MB + Index: 0.17MB + Engine InnoDB
    ClhmGactionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ClhmGactionscheduler_logs: Data: 7.52MB + Index: 4.03MB + Engine InnoDB
    ClhmGaws_cache: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    ClhmGaws_index: Data: 26.56MB + Index: 18.03MB + Engine InnoDB
    ClhmGblc_filters: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ClhmGblc_instances: Data: 4.52MB + Index: 0.89MB + Engine InnoDB
    ClhmGblc_links: Data: 7.52MB + Index: 1.08MB + Engine InnoDB
    ClhmGblc_synch: Data: 0.11MB + Index: 0.06MB + Engine InnoDB
    ClhmGcli_cookie_scan: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ClhmGcli_cookie_scan_categories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ClhmGcli_cookie_scan_cookies: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ClhmGcli_cookie_scan_url: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ClhmGcli_scripts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ClhmGcommentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ClhmGcomments: Data: 1.52MB + Index: 0.52MB + Engine InnoDB
    ClhmGe_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ClhmGgla_budget_recommendations: Data: 0.22MB + Index: 0.14MB + Engine InnoDB
    ClhmGgla_merchant_issues: Data: 3.52MB + Index: 0.00MB + Engine InnoDB
    ClhmGgla_shipping_rates: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    ClhmGgla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ClhmGlinks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ClhmGmailchimp_carts: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    ClhmGmailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ClhmGmgmlp_folders: Data: 0.45MB + Index: 0.00MB + Engine InnoDB
    ClhmGnf3_actions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ClhmGnf3_action_meta: Data: 0.08MB + Index: 0.00MB + Engine InnoDB
    ClhmGnf3_chunks: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ClhmGnf3_fields: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ClhmGnf3_field_meta: Data: 0.08MB + Index: 0.00MB + Engine InnoDB
    ClhmGnf3_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ClhmGnf3_form_meta: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    ClhmGnf3_objects: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    ClhmGnf3_object_meta: Data: 3.52MB + Index: 0.00MB + Engine InnoDB
    ClhmGnf3_relationships: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ClhmGnf3_upgrades: Data: 0.11MB + Index: 0.00MB + Engine InnoDB
    ClhmGngg_album: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ClhmGngg_gallery: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ClhmGngg_pictures: Data: 0.08MB + Index: 0.02MB + Engine InnoDB
    ClhmGoptions: Data: 10.50MB + Index: 3.98MB + Engine InnoDB
    ClhmGpostmeta: Data: 86.61MB + Index: 47.16MB + Engine InnoDB
    ClhmGposts: Data: 79.56MB + Index: 8.06MB + Engine InnoDB
    ClhmGredirection_404: Data: 0.47MB + Index: 0.09MB + Engine InnoDB
    ClhmGredirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ClhmGredirection_items: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    ClhmGredirection_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    ClhmGrio_process_queue: Data: 1.52MB + Index: 0.83MB + Engine InnoDB
    ClhmGstatify: Data: 0.50MB + Index: 0.84MB + Engine InnoDB
    ClhmGtermmeta: Data: 2.52MB + Index: 4.03MB + Engine InnoDB
    ClhmGterms: Data: 0.13MB + Index: 0.16MB + Engine InnoDB
    ClhmGterm_relationships: Data: 3.52MB + Index: 2.52MB + Engine InnoDB
    ClhmGterm_taxonomy: Data: 0.34MB + Index: 0.20MB + Engine InnoDB
    ClhmGtinvwl_analytics: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    ClhmGtinvwl_items: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    ClhmGtinvwl_lists: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ClhmGusermeta: Data: 1.52MB + Index: 0.61MB + Engine InnoDB
    ClhmGusers: Data: 0.06MB + Index: 0.05MB + Engine InnoDB
    ClhmGwc_admin_notes: Data: 0.08MB + Index: 0.00MB + Engine InnoDB
    ClhmGwc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ClhmGwc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ClhmGwc_customer_lookup: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
    ClhmGwc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ClhmGwc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ClhmGwc_order_product_lookup: Data: 0.11MB + Index: 0.06MB + Engine InnoDB
    ClhmGwc_order_stats: Data: 0.08MB + Index: 0.05MB + Engine InnoDB
    ClhmGwc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ClhmGwc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ClhmGwc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ClhmGwc_product_meta_lookup: Data: 2.52MB + Index: 3.17MB + Engine InnoDB
    ClhmGwc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ClhmGwc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ClhmGwc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ClhmGwc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ClhmGyoast_indexable: Data: 12.52MB + Index: 10.09MB + Engine InnoDB
    ClhmGyoast_indexable_hierarchy: Data: 1.52MB + Index: 2.42MB + Engine InnoDB
    ClhmGyoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ClhmGyoast_primary_term: Data: 0.20MB + Index: 0.19MB + Engine InnoDB
    ClhmGyoast_seo_links: Data: 2.52MB + Index: 0.83MB + Engine InnoDB
    ClhmGyoast_seo_meta: Data: 0.22MB + Index: 0.00MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 10198
    custom_css: 1
    elementor_library: 1
    jetpack_migration: 2
    mc4wp-form: 1
    mgmlp_media_folder: 151
    nav_menu_item: 20
    nf_sub: 609
    ngg_album: 3
    ngg_gallery: 3
    ngg_pictures: 58
    oembed_cache: 6
    page: 186
    product: 1947
    product_variation: 11039
    revision: 2238
    shop_order: 432
    shop_order_refund: 14
    tribe_events: 27
    tribe_organizer: 13
    tribe_venue: 3
    wp_block: 2
    wp_global_styles: 1
    wpforms: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (38) ###
    
    1&1 Assistant: by 1&1 – 5.1.0
    404page - your smart custom 404 error page: by Peter Raschendorfer – 11.3.1
    a3 Lazy Load: by a3rev Software – 2.5.1
    Advanced Woo Search: by ILLID – 2.55
    Antispam Bee: by pluginkollektiv – 2.11.0
    Broken Link Checker: by WPMU DEV – 1.11.16
    Webcraftic Clearfy – WordPress optimization plugin: by Creative Motion  – 2.0.5
    CoBlocks: by GoDaddy – 2.24.0
    GDPR Cookie Consent: by WebToffee – 2.1.2
    Elementor: by Elementor.com – 3.6.6
    Essential Addons for Elementor: by WPDeveloper – 5.1.4
    Facebook for WooCommerce: by Facebook – 2.6.16
    Gallery Custom Links: by Jordy Meow – 2.1.0
    Getwid: by MotoPress – 1.8.1
    Google Analytics Dashboard for WP (GADWP): by ExactMetrics – 7.5.3
    Jetpack: by Automattic – 11.0
    Mailchimp for WooCommerce: by Mailchimp – 2.6.2
    MC4WP: Mailchimp for WordPress: by ibericode – 4.8.7
    Media Library Folders for WordPress: by Max Foundry – 7.1.1
    Media Library Folders Reset: by Max Foundry – 7.1.1
    Ninja Forms: by Saturday Drive – 3.6.10
    Post Duplicator: by Metaphor Creations – 2.28
    Really Simple SSL: by Really Simple Plugins – 5.3.2
    Redirection: by John Godley – 5.2.3
    Robin image optimizer: by Creative Motion  – 1.5.6
    Statify: by pluginkollektiv – 1.8.3
    The Events Calendar: by The Events Calendar – 5.16.1
    TI WooCommerce Wishlist: by TemplateInvaders – 1.47.0
    Advanced Editor Tools (previously TinyMCE Advanced): by Automattic – 5.6.0
    Social Media and Share Icons (Ultimate Social Media): by UltimatelySocial – 2.7.5
    UpdraftPlus - Backup/Restore: by UpdraftPlus.Com
    DavidAnderson – 1.22.12
    
    Advanced Order Export For WooCommerce: by AlgolPlus – 3.3.1
    WooCommerce Stripe Gateway: by WooCommerce – 6.4.1
    WooCommerce Shipping & Tax: by WooCommerce – 1.26.0
    WooCommerce: by Automattic – 6.5.1
    Yoast SEO: by Team Yoast – 19.0
    WP Super Cache: by Automattic – 1.7.9
    Related Products for WooCommerce: by WebToffee – 1.4.3
    
    ### Inactive Plugins (1) ###
    
    Google XML Sitemaps: by Auctollo – 4.1.4
    
    ### Dropin Plugins (1) ###
    
    advanced-cache.php: advanced-cache.php
    
    ### Must Use Plugins (1) ###
    
    1&1 Product Subdomain: by 1&1 – 1.1.0
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: GBP (£)
    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)
    
    Connected to WooCommerce.com: ✔
    Enforce Approved Product Download Directories: –
    
    ### WC Pages ###
    
    Shop base: #273 - /shop
    Basket: #274 - /basket
    Checkout: #275 - /checkout
    My account: #276 - /my-account
    Terms and conditions: #2325 - /shop/terms-and-conditions
    
    ### Theme ###
    
    Name: Storefront
    Version: 4.1.0
    Author URL: https://woocommerce.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: ✔
    
    ### Templates ###
    
    Overrides: –
    
    ### TI WooCommerce Wishlist Templates ###
    
    Overrides: –
    
    ### Action Scheduler ###
    
    Complete: 3,014
    Oldest: 2022-05-13 11:49:09 +0000
    Newest: 2022-06-13 11:21:28 +0000
    
    Failed: 11,062
    Oldest: 2020-11-18 12:51:07 +0000
    Newest: 2022-06-03 06:45:32 +0000
    
    Pending: 1
    Oldest: 2022-06-14 03:00:00 +0000
    Newest: 2022-06-14 03:00:00 +0000
    
    ### Status report information ###
    
    Generated at: 2022-06-13 11:34:12 +00:00
    
    Thread Starter sukeybooth

    (@sukeybooth)

    @rainfallnixfig thanks – have updated the php.ini file but doesn’t seem to be having any effect. I will contact my host to see about that and the SQL version and report back…

    Thread Starter sukeybooth

    (@sukeybooth)

    So – in summary:

    Not memory size
    Not execution limit / time-out settings
    Not other plugins
    Not theme (already using Storefront)

    Thread Starter sukeybooth

    (@sukeybooth)

    Hi All, sorry for delay (had to wait to run the tests)

    I have turned off all plugins except woocommerce and same problem remains – can’t do any bulk changes!

    • This reply was modified 2 years, 9 months ago by sukeybooth.
    Thread Starter sukeybooth

    (@sukeybooth)

    OK, host thinks it’s a plugin compatibility error with WP as:
    a) it still fails even when I only select 2 products for deletion via the bulk action, so there is something in that action that’s not able to complete
    b) it’s no longer returning a time-out / memory error message (after both have been increased) just a plain old error
    c) it’s only started doing this since WordPress was updated to 6.0
    d) nothing else on my website (public facing, or for admin) seems to be affected.

    Anyone able to check the WooCommerce plugin for known compatibility issues with WP 6.0?

    Thanks

    Thread Starter sukeybooth

    (@sukeybooth)

    I added the line

    set_time_limit(300);

    after the line memory limit change, in the wp-config.php file.

    It is showing as changed in the WooCommerce status report, but attempted the same bulk delete action in products and left it for 10 minutes – just stuck on a blank screen, page refresh brings back “Error in moving the item to Bin.” (not a full system error message)

    …Beginning to think I may have to contact the host 🙁

    Thread Starter sukeybooth

    (@sukeybooth)

    OK, tried that (copied & pasted exactly as shown) and it broke the whole website (public access and admin)!!
    With:

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    
    Please contact the server administrator at to inform them of the time this error occurred, and the actions you performed just before this error.
    
    More information about this error may be available in the server error log.
    
    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

    …so I’ve undone that for the moment

    Thread Starter sukeybooth

    (@sukeybooth)

    The PHP file is as follows:

    <?php
    /**
     * Post API: WP_Post class
     *
     * @package WordPress
     * @subpackage Post
     * @since 4.4.0
     */
    
    /**
     * Core class used to implement the WP_Post object.
     *
     * @since 3.5.0
     *
     * @property string $page_template
     *
     * @property-read int[]  $ancestors
     * @property-read int    $post_category
     * @property-read string $tag_input
     */
    final class WP_Post {
    
    	/**
    	 * Post ID.
    	 *
    	 * @since 3.5.0
    	 * @var int
    	 */
    	public $ID;
    
    	/**
    	 * ID of post author.
    	 *
    	 * A numeric string, for compatibility reasons.
    	 *
    	 * @since 3.5.0
    	 * @var string
    	 */
    	public $post_author = 0;
    
    	/**
    	 * The post's local publication time.
    	 *
    	 * @since 3.5.0
    	 * @var string
    	 */
    	public $post_date = '0000-00-00 00:00:00';
    
    	/**
    	 * The post's GMT publication time.
    	 *
    	 * @since 3.5.0
    	 * @var string
    	 */
    	public $post_date_gmt = '0000-00-00 00:00:00';
    
    	/**
    	 * The post's content.
    	 *
    	 * @since 3.5.0
    	 * @var string
    	 */
    	public $post_content = '';
    
    	/**
    	 * The post's title.
    	 *
    	 * @since 3.5.0
    	 * @var string
    	 */
    	public $post_title = '';
    
    	/**
    	 * The post's excerpt.
    	 *
    	 * @since 3.5.0
    	 * @var string
    	 */
    	public $post_excerpt = '';
    
    	/**
    	 * The post's status.
    	 *
    	 * @since 3.5.0
    	 * @var string
    	 */
    	public $post_status = 'publish';
    
    	/**
    	 * Whether comments are allowed.
    	 *
    	 * @since 3.5.0
    	 * @var string
    	 */
    	public $comment_status = 'open';
    
    	/**
    	 * Whether pings are allowed.
    	 *
    	 * @since 3.5.0
    	 * @var string
    	 */
    	public $ping_status = 'open';
    
    	/**
    	 * The post's password in plain text.
    	 *
    	 * @since 3.5.0
    	 * @var string
    	 */
    	public $post_password = '';
    
    	/**
    	 * The post's slug.
    	 *
    	 * @since 3.5.0
    	 * @var string
    	 */
    	public $post_name = '';
    
    	/**
    	 * URLs queued to be pinged.
    	 *
    	 * @since 3.5.0
    	 * @var string
    	 */
    	public $to_ping = '';
    
    	/**
    	 * URLs that have been pinged.
    	 *
    	 * @since 3.5.0
    	 * @var string
    	 */
    	public $pinged = '';
    
    	/**
    	 * The post's local modified time.
    	 *
    	 * @since 3.5.0
    	 * @var string
    	 */
    	public $post_modified = '0000-00-00 00:00:00';
    
    	/**
    	 * The post's GMT modified time.
    	 *
    	 * @since 3.5.0
    	 * @var string
    	 */
    	public $post_modified_gmt = '0000-00-00 00:00:00';
    
    	/**
    	 * A utility DB field for post content.
    	 *
    	 * @since 3.5.0
    	 * @var string
    	 */
    	public $post_content_filtered = '';
    
    	/**
    	 * ID of a post's parent post.
    	 *
    	 * @since 3.5.0
    	 * @var int
    	 */
    	public $post_parent = 0;
    
    	/**
    	 * The unique identifier for a post, not necessarily a URL, used as the feed GUID.
    	 *
    	 * @since 3.5.0
    	 * @var string
    	 */
    	public $guid = '';
    
    	/**
    	 * A field used for ordering posts.
    	 *
    	 * @since 3.5.0
    	 * @var int
    	 */
    	public $menu_order = 0;
    
    	/**
    	 * The post's type, like post or page.
    	 *
    	 * @since 3.5.0
    	 * @var string
    	 */
    	public $post_type = 'post';
    
    	/**
    	 * An attachment's mime type.
    	 *
    	 * @since 3.5.0
    	 * @var string
    	 */
    	public $post_mime_type = '';
    
    	/**
    	 * Cached comment count.
    	 *
    	 * A numeric string, for compatibility reasons.
    	 *
    	 * @since 3.5.0
    	 * @var string
    	 */
    	public $comment_count = 0;
    
    	/**
    	 * Stores the post object's sanitization level.
    	 *
    	 * Does not correspond to a DB field.
    	 *
    	 * @since 3.5.0
    	 * @var string
    	 */
    	public $filter;
    
    	/**
    	 * Retrieve WP_Post instance.
    	 *
    	 * @since 3.5.0
    	 *
    	 * @global wpdb $wpdb WordPress database abstraction object.
    	 *
    	 * @param int $post_id Post ID.
    	 * @return WP_Post|false Post object, false otherwise.
    	 */
    	public static function get_instance( $post_id ) {
    		global $wpdb;
    
    		$post_id = (int) $post_id;
    		if ( ! $post_id ) {
    			return false;
    		}
    
    		$_post = wp_cache_get( $post_id, 'posts' );
    
    		if ( ! $_post ) {
    			$_post = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE ID = %d LIMIT 1", $post_id ) );
    
    			if ( ! $_post ) {
    				return false;
    			}
    
    			$_post = sanitize_post( $_post, 'raw' );
    			wp_cache_add( $_post->ID, $_post, 'posts' );
    		} elseif ( empty( $_post->filter ) || 'raw' !== $_post->filter ) {
    			$_post = sanitize_post( $_post, 'raw' );
    		}
    
    		return new WP_Post( $_post );
    	}
    
    	/**
    	 * Constructor.
    	 *
    	 * @since 3.5.0
    	 *
    	 * @param WP_Post|object $post Post object.
    	 */
    	public function __construct( $post ) {
    		foreach ( get_object_vars( $post ) as $key => $value ) {
    			$this->$key = $value;
    		}
    	}
    
    	/**
    	 * Isset-er.
    	 *
    	 * @since 3.5.0
    	 *
    	 * @param string $key Property to check if set.
    	 * @return bool
    	 */
    	public function __isset( $key ) {
    		if ( 'ancestors' === $key ) {
    			return true;
    		}
    
    		if ( 'page_template' === $key ) {
    			return true;
    		}
    
    		if ( 'post_category' === $key ) {
    			return true;
    		}
    
    		if ( 'tags_input' === $key ) {
    			return true;
    		}
    
    		return metadata_exists( 'post', $this->ID, $key );
    	}
    
    	/**
    	 * Getter.
    	 *
    	 * @since 3.5.0
    	 *
    	 * @param string $key Key to get.
    	 * @return mixed
    	 */
    	public function __get( $key ) {
    		if ( 'page_template' === $key && $this->__isset( $key ) ) {
    			return get_post_meta( $this->ID, '_wp_page_template', true );
    		}
    
    		if ( 'post_category' === $key ) {
    			if ( is_object_in_taxonomy( $this->post_type, 'category' ) ) {
    				$terms = get_the_terms( $this, 'category' );
    			}
    
    			if ( empty( $terms ) ) {
    				return array();
    			}
    
    			return wp_list_pluck( $terms, 'term_id' );
    		}
    
    		if ( 'tags_input' === $key ) {
    			if ( is_object_in_taxonomy( $this->post_type, 'post_tag' ) ) {
    				$terms = get_the_terms( $this, 'post_tag' );
    			}
    
    			if ( empty( $terms ) ) {
    				return array();
    			}
    
    			return wp_list_pluck( $terms, 'name' );
    		}
    
    		// Rest of the values need filtering.
    		if ( 'ancestors' === $key ) {
    			$value = get_post_ancestors( $this );
    		} else {
    			$value = get_post_meta( $this->ID, $key, true );
    		}
    
    		if ( $this->filter ) {
    			$value = sanitize_post_field( $key, $value, $this->ID, $this->filter );
    		}
    
    		return $value;
    	}
    
    	/**
    	 * {@Missing Summary}
    	 *
    	 * @since 3.5.0
    	 *
    	 * @param string $filter Filter.
    	 * @return WP_Post
    	 */
    	public function filter( $filter ) {
    		if ( $this->filter === $filter ) {
    			return $this;
    		}
    
    		if ( 'raw' === $filter ) {
    			return self::get_instance( $this->ID );
    		}
    
    		return sanitize_post( $this, $filter );
    	}
    
    	/**
    	 * Convert object to array.
    	 *
    	 * @since 3.5.0
    	 *
    	 * @return array Object as array.
    	 */
    	public function to_array() {
    		$post = get_object_vars( $this );
    
    		foreach ( array( 'ancestors', 'page_template', 'post_category', 'tags_input' ) as $key ) {
    			if ( $this->__isset( $key ) ) {
    				$post[ $key ] = $this->__get( $key );
    			}
    		}
    
    		return $post;
    	}
    }
    Thread Starter sukeybooth

    (@sukeybooth)

    OK, so new error now after changing up the memory to 512M:

    Warning: Undefined property: WP_Post::$filter in /homepages/12/d747982170/htdocs/clickandbuilds/ConclaveBrighton/wp-includes/class-wp-post.php on line 342
    
    Warning: Undefined property: WP_Post::$filter in /homepages/12/d747982170/htdocs/clickandbuilds/ConclaveBrighton/wp-includes/class-wp-post.php on line 342
    
    Warning: Undefined property: WP_Post::$filter in /homepages/12/d747982170/htdocs/clickandbuilds/ConclaveBrighton/wp-includes/class-wp-post.php on line 342
    
    Warning: Undefined property: WP_Post::$filter in /homepages/12/d747982170/htdocs/clickandbuilds/ConclaveBrighton/wp-includes/class-wp-post.php on line 342
    
    Warning: Undefined property: WP_Post::$filter in /homepages/12/d747982170/htdocs/clickandbuilds/ConclaveBrighton/wp-includes/class-wp-post.php on line 342
    
    Fatal error: Maximum execution time of 30 seconds exceeded in /homepages/12/d747982170/htdocs/clickandbuilds/ConclaveBrighton/wp-includes/class-wp-term.php on line 126
    There has been a critical error on this website. Please check your site admin email inbox for instructions.
    Thread Starter sukeybooth

    (@sukeybooth)

    Thanks, managed to edit the php files, but would’ve helped if that guide above had given some of the interim steps to accessing those files!!

    Cheers though 😊

    Thread Starter sukeybooth

    (@sukeybooth)

    @nathvi csv upload seems to have worked for the sync (thank you)…however some of the description text has now corrupted slightly: all the “£” symbols have all switched to “?” which is a bit annoying. I presume something to do with character sets, but I have no idea how to fix that on import (it doesn’t ask anything on import)

    Any ideas?
    Thanks

    Thread Starter sukeybooth

    (@sukeybooth)

    (I will try the csv file options tomorrow when back in work!)

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