Open renzms opened 7 years ago
@jaswsinc @raamdev
You can browse our knowledge base
currently points to: https://wpsharks.com/product/wp-snippets-pro/kb which is a 404 Page
@jaswsinc
WP Snippets Pro not backward compatible with WP Snippets Lite
Expected Snippet on Front End using WP Snippets Lite
Expected code in Snippet on Back End using WP Snippets Lite
WP Snippets Lite Options:
WP Snippets Pro Options while Lite is installed but inactive:
All other options seem to be missing, trying to access snippets list page directly says you do not have access
No snippets found when looking for a snippet from Lite in Pro
Error on Front End when using a snippet from Lite in Pro
Notice: Only variables should be assigned by reference in /app/src/wp-content/plugins/wp-snippets-pro/src/includes/classes/Utils/Shortcode.php on line 150 Call Stack: 0.0004 385216 1. {main}() /app/src/index.php:0 0.0005 385504 2. require('/app/src/wp-blog-header.php') /app/src/index.php:17 0.1506 3781808 3. require_once('/app/src/wp-includes/template-loader.php') /app/src/wp-blog-header.php:19 0.1631 3902912 4. include('/app/src/wp-content/themes/twentysixteen/archive.php') /app/src/wp-includes/template-loader.php:74 0.2395 4022600 5. get_template_part() /app/src/wp-content/themes/twentysixteen/archive.php:42 0.2396 4023112 6. locate_template() /app/src/wp-includes/general-template.php:167 0.2396 4023208 7. load_template() /app/src/wp-includes/template.php:643 0.2397 4023592 8. require('/app/src/wp-content/themes/twentysixteen/template-parts/content.php') /app/src/wp-includes/template.php:686 0.2439 4030592 9. the_content() /app/src/wp-content/themes/twentysixteen/template-parts/content.php:28 0.2441 4030672 10. apply_filters() /app/src/wp-includes/post-template.php:240 0.2441 4031072 11. WP_Hook->apply_filters() /app/src/wp-includes/plugin.php:203 0.2477 4033240 12. do_shortcode() /app/src/wp-includes/class-wp-hook.php:298 0.2479 4035536 13. preg_replace_callback() /app/src/wp-includes/shortcodes.php:223 0.2480 4036176 14. do_shortcode_tag() /app/src/wp-includes/shortcodes.php:223 0.2484 4036648 15. WebSharks\WpSharks\WpSnippets\Pro\Classes\Utils\Shortcode->onShortcode() /app/src/wp-includes/shortcodes.php:345 Notice: Trying to get property of non-object in /app/src/wp-content/plugins/wp-snippets-pro/src/includes/classes/Utils/Shortcode.php on line 154 Call Stack: 0.0004 385216 1. {main}() /app/src/index.php:0 0.0005 385504 2. require('/app/src/wp-blog-header.php') /app/src/index.php:17 0.1506 3781808 3. require_once('/app/src/wp-includes/template-loader.php') /app/src/wp-blog-header.php:19 0.1631 3902912 4. include('/app/src/wp-content/themes/twentysixteen/archive.php') /app/src/wp-includes/template-loader.php:74 0.2395 4022600 5. get_template_part() /app/src/wp-content/themes/twentysixteen/archive.php:42 0.2396 4023112 6. locate_template() /app/src/wp-includes/general-template.php:167 0.2396 4023208 7. load_template() /app/src/wp-includes/template.php:643 0.2397 4023592 8. require('/app/src/wp-content/themes/twentysixteen/template-parts/content.php') /app/src/wp-includes/template.php:686 0.2439 4030592 9. the_content() /app/src/wp-content/themes/twentysixteen/template-parts/content.php:28 0.2441 4030672 10. apply_filters() /app/src/wp-includes/post-template.php:240 0.2441 4031072 11. WP_Hook->apply_filters() /app/src/wp-includes/plugin.php:203 0.2477 4033240 12. do_shortcode() /app/src/wp-includes/class-wp-hook.php:298 0.2479 4035536 13. preg_replace_callback() /app/src/wp-includes/shortcodes.php:223 0.2480 4036176 14. do_shortcode_tag() /app/src/wp-includes/shortcodes.php:223 0.2484 4036648 15. WebSharks\WpSharks\WpSnippets\Pro\Classes\Utils\Shortcode->onShortcode() /app/src/wp-includes/shortcodes.php:345
Uninstalling both Lite + Pro and reinstalling Pro
This seems to fix the Backend issues in WP Snippets Pro
No previous snippets are detected though:
Auto-detection and auto-activation is confirmed working, and activates Pro in all cases (e.g, installing Pro/Lite while other is active or installed, activating Pro/Lite while other is active or installed, etc.)
Categories/Slugs carry over from WP Snippets Lite with no problem
@renzms Thanks for all the testing thus far! :-)
Only variables should be assigned by reference
This has been resolved in the latest release.
Highlights in the rewritten copy of this plugin, which is now built on top of the WP Sharks Core.
To Be tested
slug=""
attribute now accepts an optional comma-delimited list of slugs, or just a single slug like before.in_category=""
with_tag=""
orderby="rand"
ortitle
,date
,modified
, etc.