bjrnet21
Forum Replies Created
-
Is it possible to share the value of a variable created in one PHP snippet to another PHP snippet on the same page?
Appreciate the do_shortcode suggestion. That solves one problem I was having. But I need to be able to share some variables.
Yes, I am having the same problem with incompatibility with other shortcodes that I use alongside [insert_php].
For example:
[insert_php] if ($Month == “” AND $Year == “”) {echo “[tdih_tab day= $Day]”; } else if …..
The [tdib_tab] shortcode won’t run in a php snippet. It just comes across as text.
I’ve tried for hours trying to find a workaround, but so far no luck.
PLEASE CONTINUE SUPPORTING the [insert_php] shortcode.
Thanks for a great plug-in.
I went ahead and disabled PHP notices from being logged as follows.
Add/edit your wp-config.php file:
/** Error logging */
ini_set(‘display_errors’,’Off’);
ini_set(‘error_reporting’, E_ALL );
define(‘WP_DEBUG’, false);
define(‘WP_DEBUG_DISPLAY’, false);
ini_set(‘log_errors’, ‘On’);
ini_set(‘error_log’, ‘xxxxxxxxx/php-errors.log’);
error_reporting(E_ALL);I originally had the following line in wp-config.php:
/**ini_set(‘error_reporting’, E_ALL & ~E_NOTICE ); */
but it did not appear to prevent the PHP Notices from being logged.I have version 3.0.8 of Social Warfare installed and WordPress 4.9.6 with the latest version of Twenty-Fourteen theme.
Appears that UpdraftPlus 1.14.7 is also getting flagged.
I am running WordPress 4.9.6 running the Twenty Fourteen theme.
When I run the SG Optimizer plugin on my site, I get the following error:“You are running PHP 7.1 which is our recommended PHP version or higher.
The following plugins/themes are not compatible with PHP 7.0.
UpdraftPlus – Backup/Restore”UpdraftPlus says it is compatible!
I am checking with Siteground to see if UpdraftPlus can be whitelisted.
Hmmm… sounds like my install of UpdraftPlus has old code that was not cleaned up from latest UpdraftPlus updates.
Should I uninstall and cleanup the UpdraftPlus directory…. then reinstall?
Forum: Plugins
In reply to: [Mmm Simple File List] Remove File SizeYes, I would like to know how to do this too.
Forum: Plugins
In reply to: [The Events Calendar] Forcing Events to use full width of screenDumb me.
I thought I checked that.
That works somewhat! It does center the main text under “Upcoming Events” but the margins are huge.
How do I reduce the margins?
Thanks again for replying.
Thanks wfalaa for a reply.
No, both sites are separate. In otherwords,
ROOT DIRECTORY
– php.ini
– blackjackreview.com
– spacecoasthighlanders.comThe php.ini file is in the ROOT directory.
To see what would happen…
I commented out the following in php.ini:
; auto_append_file = “/home/xxxxxxx/public_html/blackjackreview.com/wp/wordfence-waf.php”Then, cleared all cache.
No more errors and both sites appear to be running OK.
???
Did I really need the above auto_append_file entry in php.ini?
My reasoning for the concern was that I was trying to reduce the database queries. Not everyone will click on the Collapse-O-Matic shortcode.
A simpler solution may be to simply move my database listing to a page of its own.
In any case, thanks for the support.
If you ever incorporate the AJAX call method, I would think you probably should allow both techniques when collapsed — in my case, I would probably use the “stay” option. Others may want a complete reload.
Stupid me. I guess I could have looked at the page source. All the content is there 🙂
Thank you. That makes sense.
Any option to NOT insert the listing before being clicked and still behave the same?
Yes, I am getting the same error every day.