I’ve been encountering an issue when I try to add a custom footer.php file to my theme. For some reason, Elementor throws an error when I try to access the preview editor mode.
Have you ever been facing this issue ?
Unfortunately I can’t provide my website’s link.
Best regards.
]]>When trying to edit a page with Elementor, I get the message “The preview couldn’t be loaded”. And after debbugin I get the error “Module ‘sqlite3’ already loaded”.
This is happening only in one specific page that I created this week.
]]>Is there a setting to disable preview mode? Can we still make test orders on sandbox for paypal and strip with the one click plugin?
Thanks! I know i’m so close to getting everything working properly.
]]>In W3 Total cache > Performance > General Settings > Page Cache,
The “Purge Cache” and “Empty Cache” button is not working.
No matter what configuration I try to use, the “Empty Cache” button redirects me to
https://web/?w3tc_note=flush_pgcache
Which displays in the Browser: ERROR Page not found
When using “Page Cache Method: Disk: Enhanced”, the files are created in the /wp-content/cache/page_enhanced/ folder successfully. But the Purge Cache and Empty Cache buttons do not delete any files inside that folder.
When using “Page Cache Method: Opcode: Alternative PHP Cache (APC / APCu)”, the files are created in the /wp-content/cache/page_enhanced/ folder successfully.
But the Purge Cache and Empty Cache buttons do not clear up the APC memory. I confirmed by checking the server APC statistics (via this method https://www.php.net/manual/en/apc.configuration.php ). I am able to clear my own APCu memory in the server, but not* through the WordPress W3 Total cache Plugin Page.
Is this a problem with the plugin or with my installation/configuration process?
Lastly, there is one odd thing I want to ask about. After enabling preview mode in WP Admin > Performance > General Settings > General > Preview Mode > Enable , and then going into the Preview of my Site, the Query Monitor Plugin shows the following message:
“The APCu extension for PHP is installed but is not in use by WordPress”
“External object cache not in use
Opcode cache in use: APC
Opcode cache in use: Zend Opcache”
I can confirm that APCu indeed contains entries such as “w3tc_1738895883__0_pgcache_edc15ea8a41c1071c1bd31db5622704f_ssl_gzip ”
“w3tc_1738895883__0_pgcache_edc15ea8a41c1071c1bd31db5622704f_ssl ”
So I am wondering, how do I confirm that the Site is actually showing the Users the static HTML pages from APCu?
thanks,
]]>I created a custom post type (“comparator”), it has some acf fields, I use it as a shortcode, and I fetch some so extra data from an api and save them as meta when saving the post.
Everything works very well.
This post type will never be displayed alone, only through a shortcode.
But I want to make the “review” works, so the editor can see his works before saving or updating.
I made this, but it has several flaws I think:
Public function comparator_filter_content( $content ) {
if ( ! is_singular( 'comparator' ) ) {
return $content;
}
// Get the preview id
$preview_post_list = get_posts( [
'post_status' => 'any',
'post_parent' => intval( $_GET['preview_id'] ),
'post_type' => 'revision',
'sort_column' => 'ID',
'sort_order' => 'desc',
'posts_per_page' => 1
]
);
$preview_post = $preview_post_list[ array_key_last( $preview_post_list ) ];
$preview_post_id = $preview_post->ID;
// Preview doesn't get the google sheet, so we do it ourselves :
import_sheet( $preview_post_id );
// Get the data and launch the display of the comparator, as I do in the function comparator_shortcode
...
}
1. I’m not sure this function will be called only when previewing. Since I use my comparators only in shortcode it should be ok. But for instance, what about revisions? Or other things? Is there no better hooks that I could use to deal with in this “preview case”?
2. Using array_key_last is a big asumption. I have no idea if my preview will always be the last of this preview_post_list.
3. As said, I would like the revision to work, so it may interfere at some point
That’s it, maybe I’m totally in the wrong direction, any help appreciated!
Thanks
The plugin was implemented by a third party and I am not sure if it was done correctly or maybe rendering the debug window incorrectly?
Assistance would be greatly appreciated!
]]>Is there a way to activate the plugin and add all the swatches before it goes live? Perhaps a preview mode, similar to the theme customization, would work.
]]>