frontdeskivc
Forum Replies Created
-
Forum: Plugins
In reply to: [Code Snippets] Code Snippet not working on fresh WordPress installationThank you Shea for your time to help me. I think it is a PLESK windows bug. I found an article that describes steps to fix it just in case anyone needs it:
https://support.plesk.com/hc/en-us/articles/115001866273
I can now use the amazing ‘Code Snippets’ plugin again!
Forum: Plugins
In reply to: [Code Snippets] Code Snippet not working on fresh WordPress installationHi Shea,
It’s upper case K in wp-config.php. Is this a bug from wordpress toolkit when I changed my database table prefix?
Thanks,
MonicaForum: Plugins
In reply to: [Code Snippets] Code Snippets plugin not working in my siteSorry I replied in the wrong thread!
Forum: Plugins
In reply to: [Code Snippets] Code Snippet not working on fresh WordPress installationHi Shea,
I’m not a programer and only learn basic PHP 10+ years ago in uni. However, after spending hours trying different things to investigate the problem, I found the following interesting possible cause:
in code-snippets\php\snippet-ops.php in function execute_active_snippets()
/* Fetch snippets from site table */ if ( $wpdb->get_var( "SHOW TABLES LIKE '$db->table'" ) === $db->table ) { echo "FETCH SNIPPETS"; $queries[ $db->table ] = $wpdb->prepare( sprintf( $sql_format, $db->table ) . 'AND active=1 ' . $order, $current_scope ); }
The above statement was not executed despite having active snippets in database because the value are not the same.
The value of $wpdb->get_var( “SHOW TABLES LIKE ‘$db->table'” ) is m**2*k**_snippets while the value of $db->table is m**2*K**_snippets (upper case K VS lower case k). The correct prefix is all lower case.Do you think this is a problem? why is this problem happening only on my site ? I used wordpress toolkit to change the database prefix a few months ago.
Thank you very much for your help!
Forum: Plugins
In reply to: [Code Snippets] Code Snippet not working on fresh WordPress installationHi Shea,
Thank you very much for your time to reply my question. I really appreciate it. I have tried the snippet that you provided. Unfortunately it still doesn’t work.
I’ve tried different basic snippets just to test my theory that some sort of setting in my webhosting is blocking the plugin and none of the snippets that I tried working. The snippet that I posted above is working in my local host but not on my web hosting.
Is it possible that some sort of setting in my web hosting is blocking the plugin ?
Forum: Plugins
In reply to: [Code Snippets] Code Snippet not working on fresh WordPress installationFYI, I’m using PLESK with WordPress toolkit. I have disabled all security settings in wordpress toolkit.