billinghamn
Forum Replies Created
-
It’s working…
Getting somewhere now!
In functions.php, I’ve added:
add_filter( 'the_content', 'do_shortcode', 11 );Now where I have requested two photos be displayed, I can now see two boxes! Will continue testing/debugging…
It’s my own theme. So fair chance of stuff running out of order.
I guess it’s all down to what’s in functions.php?
Tried the classic editor – that doesn’t work either.
Where in your plugin are the scripts enqueued for loading?
I guess that is the question you need to be asking! On the basis that Photonic is entirely self-contained, why does it not work on my WordPress site, when all other WordPress functions work completely fine?
This is all the stuff I have removed in terms of “bloatware”. Stuff others have suggested I don’t need in my header:
/*remove_action( ‘wp_head’, ‘rsd_link’ );
remove_action( ‘wp_head’, ‘wp_generator’ );
remove_action( ‘wp_head’, ‘feed_links’, 2 );
remove_action( ‘wp_head’, ‘index_rel_link’ );
remove_action( ‘wp_head’, ‘wlwmanifest_link’ );
remove_action( ‘wp_head’, ‘feed_links_extra’, 3 );
remove_action( ‘wp_head’, ‘start_post_rel_link’, 10, 0 );
remove_action( ‘wp_head’, ‘parent_post_rel_link’, 10, 0 );
remove_action( ‘wp_head’, ‘adjacent_posts_rel_link’, 10, 0 );
remove_action( ‘wp_head’, ‘wp_shortlink_wp_head’, 10, 0 );
remove_action( ‘wp_head’, ‘adjacent_posts_rel_link_wp_head’, 10, 0 );
remove_action( ‘wp_head’, ‘wp_resource_hints’, 2 );
remove_action( ‘wp_head’, ‘print_emoji_detection_script’, 7 );
remove_action( ‘wp_print_styles’, ‘print_emoji_styles’ );
remove_action( ‘admin_print_scripts’, ‘print_emoji_detection_script’ );
remove_action( ‘admin_print_styles’, ‘print_emoji_styles’ );
remove_action( ‘wp_head’, ‘rest_output_link_wp_head’, 10 );
remove_action( ‘wp_head’, ‘wp_oembed_add_discovery_links’, 10 );
remove_action( ‘template_redirect’, ‘rest_output_link_header’, 11, 0 );
add_action( ‘wp_enqueue_scripts’, ‘remove_Global_Styles’ );*/I don’t know whether this might have an impact or not…
Something else I have just found… I have debugging enabled and have found the following in the debug.log in the wp_content folder:
PHP Notice: Undefined index: type in /home/u747697799/domains/paonl.com/public_html/staging/wp-content/plugins/photonic/Admin/Wizard/Wizard.php on line 822.
I think that’s the first time this has appeared and that’s because I commented out the removal of bloatware.
So we may be making (some) progress…
So, I tried changing the shortcode to photonic and indeed it changes the shortcode command as you suggested. Unfortunately it still doesn’t work. Once I have gone through the process of creating a gallery for either the WordPress Media Library or indeed flickr, nothing is shown in the editor and nothing is shown on the post. So unfortunately, I am no further forward.
I have built my own custom page templates – perhaps there is something missing from one of my page templates?
I have also removed some of the bloat from the scripts and styles that are loaded by default and I don’t think I need. Perhap that’s removing something that is required by the photonic plugin?
On the basis that it is entirely self-contained, none of those suggestions should have any impact on the plugin working. Seems odd.
Thanks for responding – I have been activating/deactivating the plug in as part of trying to work out what’s going on. It’s deactivated just now.
Couple of things to highlight, which may be relevant:
- I have removed ALL themes from staging.paonl.com other than my own bespoke theme. So, if the photonic plugin is dependent on any of the standard themes, then that might be a cause of the problem.
- The other thing I have tried is activating the photonic plugin on a completely new/clean WordPress site on the same hosting package and the plugin (at least) partly works. You can see evidence of this here: https://billingham.net/?p=7.
I’ll reactivate the plugin on the staging.paonl.com site – hopefully you will be able to see the scripts that are being loaded.