• What does no longer support mean exactly? Will all my content displaying with my shortcodes no longer work if I update to the newest version? I have these shortcodes on thousands of pages that display ancestry charts.

    [insert_php]
    
    // Will need to include file path if this file lives in a different directory
    
    require 'Ancestry.php';
    
    echo Ancestry::getById(16)->view();
    
    [/insert_php]

    Do I need to create each shortcode then edit the thousands of pages to this

    [wbcr_php_snippet id = "000"]

    I really don’t want to do all this work because the current solution works. Please explain what exactly

    PHP code snippets (Insert PHP): Attention! This new 2.0 plugin version, we added the ability to insert php code using snippets. This is a more convenient and secure way than using shortcodes [insert_php] code execute [/ insert_php]. However, for compatibility reasons, we left support for [insert_php] shortcodes, but we will depreciate them in the next versions of the plugin.

    means in simple terms.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter eric2236

    (@eric2236)

    Just tried to publish a snippet and got this error message.

    Don’t Panic
    The code snippet you are trying to save produced a fatal error on line 3:

    require(): Failed opening required ‘Ancestry.php’ (include_path=’.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php’)
    The previous version of the snippet is unchanged, and the rest of this site should be functioning normally as before.

    Please use the back button in your browser to return to the previous page and try to fix the code error. If you prefer, you can close this page and discard the changes you just made. No changes will be made to this site.

    Plugin Author webcraftic

    (@webcraftic)

    Hi,

    You need to specify the path to the file Ancestry.php

    Is this file in the root directory of your site?

    Best regards, Alex

    Thread Starter eric2236

    (@eric2236)

    Yes it is. Is there anyway to continue with my current snippet so I don’t need to edit thousands of pages? What does no longer support mean? Will my ancestry charts no longer appear on my pages?

    Thread Starter eric2236

    (@eric2236)

    Hello @webcraftic. Can you help me please?

    Plugin Author webcraftic

    (@webcraftic)

    Hi, @eric2236

    The shortcodes [insert_php] are currently supported, but in the future we will discard them to improve the security of the plugin.

    Do you have a thousand pages and you need a solution, how to replace this code automatically? Is your code the same on all pages?

    Best regards, Alex

    Thread Starter eric2236

    (@eric2236)

    Yes I want to replace the code automatically. Or if I just never update your plugin will it still work? What do you mean by code the same? They are all wordpress blogs with different content on each page but the same html markup. Thanks in advance for your timely response and support.

    Thread Starter eric2236

    (@eric2236)

    Hello @webcraftic You timely response is much appreciated. I’d like to get working on this..

    Plugin Author webcraftic

    (@webcraftic)

    Hi,

    1. The old version 1.3 will not stop working and will be updated, if it is not compatible with the new version of WordPress. You can simply not update the plugin if you want to leave it as it is.

    2. I could write a tool to quickly replace the code, but it’s quite difficult to do and I do not have enough time.

    Best regards, Alex

    Thread Starter eric2236

    (@eric2236)

    If you could give me some guidance on the best way to replace the code I will assign the task to my developer. But I could use your direction since you developer the plugin.

    Thread Starter eric2236

    (@eric2236)

    @webcraftic this problem is more serious than I thought. I upgraded to 2.0 by mistake on a number of blogs.

    This was my old way of displaying chart.
    <?php

    // Will need to include file path if this file lives in a different directory
    require ‘Ancestry.php’;

    echo Ancestry::getById(1)->view();
    ?>

    This is latest.

    [insert_php]

    // Will need to include file path if this file lives in a different directory

    require ‘Ancestry.php’;

    echo Ancestry::getById(XX)->view();

    [/insert_php]

    Then I tried to create snippet with this code.

    // Will need to include file path if this file lives in a different directory

    require ‘Ancestry.php’;

    echo Ancestry::getById(3)->view();

    and the chart did not appear on the blog page. Then I tried with the <?php in front and ?> in back and got fatal error.

    What am I doing wrong and will my charts disappear soon that use your old way??

    Thread Starter eric2236

    (@eric2236)

    need help here. Should I revert back to the 1.3 version somehow?

    Plugin Author webcraftic

    (@webcraftic)

    Hi,

    You can contact me via skype to solve this problem faster. I do not see the contents of your files, so it’s hard for me to find the error.

    skype: iqueryable_fenom

    You do not need to use php tags in the snippet editor.
    <?php ?>

    Try to specify the absolute path to the file
    require 'Ancestry.php';

    Best regards, Alex

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Do I really need to change all my shortcodes?’ is closed to new replies.