astrasuite
Forum Replies Created
-
I am sorry if I came out as very demanding, it was unintentional, I was just sharing what I have been doing while waiting for your answer.
Yes I will use the old version in the meantime. It’s ok, I have decided on using Post Snippets plugin going forward, really great. It can accept variables, it works with either relative or absolute path, it can create shortcodes even if not PHP code.
Is it an old plugin ? Then good that it has longevity, already tested, and it was updated 1 month ago.
I will be using Post Snippets because it gives me less to do converting my [insert_php] stuff into snippets. It works with all the [insert_php] stuff without changing any code, seamless. Ideally, that should have been the case with your new PHP Code Snippets, but I assume you guys wrote new improved code different from [insert_php], so I understand. Good luck in your supporting.
Thanks for your help !
I now tried another plugin, Post Snippets, and it works too. So this plugin and Insert PHP Code Snippet plugin both work. I was hoping PHP Code Snippets (Insert_PHP) could work.
Anyway I will just use the old version of Insert_PHP as I have no time to change many posts into snippets. Then I’ll use Post Snippets moving forward, it can even accept variables to pass.
Tried disabling other plugins, still the same problem, post not loading completely, only showing header.
Removed all the code in the snippet, except the 1st line, which is just an include. Still the same problem. The mere presence of the shortcode with my code prevents the post from loading correctly.
Now changed the code in the snippet to simply :
echo “Hello World”;Wow, this one works ! So what’s wrong with my code ? I used just this line and it won’t load my post :
include $_SERVER[‘DOCUMENT_ROOT’] . “/client-system-albums/cpmfetch/cpmfetch.php”;
Help please, thanks !
- This reply was modified 6 years, 5 months ago by astrasuite.
- This reply was modified 6 years, 5 months ago by astrasuite.
Well, while waiting, I tried the same snippet using Insert PHP Code Snippet plugin which is similar to your plugin, no problem at all, the snippet runs.
I have to disable your plugin first before Insert PHP Code Snippet works though, there is a conflict.
Maybe there is a conflict too with your PHP Snippets plugin and one of my plugins, will have to do several tests, luckily I have Plugin Organizer to easily disable/enable plugins for testing.
Good to have the old version of Insert PHP.
- This reply was modified 6 years, 5 months ago by astrasuite.
- This reply was modified 6 years, 5 months ago by astrasuite.
I did the same change to the code between [insert_php], and it works, as usual.
It is only when I use the snippet that it doesn’t load the post properly. Of course, I commented out the insert_php and code in between first before using the snippet.
include $_SERVER['DOCUMENT_ROOT'] . "/client-system-albums/cpmfetch/cpmfetch.php"; $objCpm = new cpm($_SERVER['DOCUMENT_ROOT'] . "/client-system-albums/cpmfetch/cpmfetch_config.php");
Ok, I have changed the code like above, and it got saved without any error. Is it correct ? I then pressed the activate button.
But when I run the snippet on the post, it doesn’t load the post anymore, just the heading.
Like here :
https://www.astrasuite.com/astrablog/pathos-ethos-integrated-amplifier/
I have a primary website and my WordPress is a subdirectory within the website.
The PHP file I am calling is outside of WordPress, as it is also used by the primary website.
But why should it not work in PHP Snippets, but works perfectly in insert_php ? Shouldn’t it be the same, then no problems ?
Thanks
Hi, Alex,
any help ? The code below when placed on a snippet cannot be saved, as mentioned in the above post.
Thanks
`include “../client-system-albums/cpmfetch/cpmfetch.php”;
$objCpm = new cpm(“../client-system-albums/cpmfetch/cpmfetch_config.php”);
$objCpm->cpm_unlock_private(true);
$options=array(imagesize => “thumb”, imagelink => “large”, imagewidth => “128”, imageheight => “128”, windowtarget => “_blank”, “alttag” => “{{pTitle}}”, “tablestyle” => “center-css-table”, “cellstyle” => “center-text”);
$objCpm->cpm_viewLastAddedMediaFrom (“album=331”,30,5,$options);
$objCpm->cpm_close();Forum: Plugins
In reply to: [Fast Secure Contact Form] Spam emails coming through contact formOk, forget the Captcha feature, use the Recaptcha v2 option instead, zero spam from wordpress fast secure contact form.
I have version 4.0.56, yet all these Payday Loan spam came in starting the month of April 2018. I guess standard Captcha works, but it was compromised by the one who injected all these spam. (see https://wingrove-services.co.uk/fast-secure-contact-form/)
At least Recaptcha v2 is still good.
- This reply was modified 6 years, 7 months ago by astrasuite.
Forum: Plugins
In reply to: [Fast Secure Contact Form] Spam emails coming through contact formI also got hundreds of spam from my installation of si-contact-form on my standard website (most spam from here) and WordPress. That is with CAPTCHA enabled.
I modified the code to add Recaptcha v2 for my standard website, and zero spam from there now.
I just enabled Recaptcha v2 for the WordPress si-contact-form, seems good so far.
Somehow, these robots have “learned” how to to get past the CAPTCHA, which was fine for many years.
Forum: Plugins
In reply to: [LocalCurrency] Converted Values wrongSorry, false alarm.
It is correct. I went to settings and saw that my Site Currency somehow changed to something else.
Thanks
Forum: Plugins
In reply to: [Jigoshop] Error Activating Jigoshop 2Well, what do you suggest ? Any other Jigoshop user has the same issue yet or is it just me ?
Forum: Plugins
In reply to: [Jigoshop] Error Activating Jigoshop 2No, I cannot change it using phpMyAdmin. If I change the table’s engine to InnoDB, it comes out with this error :
#1214- The used table type doesn’t support FULLTEXT indexes
After googling it out, many articles suggest that it is because MySQL has to be 5.6, where InnoDB can support FULLTEXT indexes. If not, only MYISAM can do it.
The plugin I guess can’t change it because of this error, not insufficient permissions. Other tables seem ok, it’s only the table “posts”
Forum: Plugins
In reply to: [Jigoshop] Error Activating Jigoshop 2Well, I found the answer. MySQL version in my Bluehost hosting is 5.5.51, not yet 5.6.
5.6 will solve the problem, but I am not sure if it is that easy to ask Bluehost to upgrade MySQL.
Just spoke to Bluehost, they cannot just upgrade to 5.6 since I am on a Shared server. So I guess I can’t use Jigoshop 2 unless I upgrade to a private server (not likely), change hosting services, or change Jigoshop to Woo Commerce.
Any other workaround ?
- This reply was modified 8 years, 1 month ago by astrasuite.
Forum: Reviews
In reply to: [Redirection] caused lots of hassleSimple 301 is great !