raamdev / wp-snippets-pro

Create Snippets! This plugin adds a new Post Type. Snippets can be included in Posts/Pages/Widgets via shortcodes.
Other
1 stars 0 forks source link

Testing WP Snippets Pro v161222.28602 #1

Open renzms opened 7 years ago

renzms commented 7 years ago

Highlights in the rewritten copy of this plugin, which is now built on top of the WP Sharks Core.

To Be tested

renzms commented 7 years ago

@jaswsinc @raamdev

screen shot 2016-12-23 at 6 49 56 pm

You can browse our knowledge base currently points to: https://wpsharks.com/product/wp-snippets-pro/kb which is a 404 Page

screen shot 2016-12-23 at 6 50 52 pm

renzms commented 7 years ago

@jaswsinc

Bug Found

WP Snippets Pro not backward compatible with WP Snippets Lite

screen shot 2016-12-23 at 8 10 33 pm

Expected Snippet on Front End using WP Snippets Lite

screen shot 2016-12-23 at 8 11 42 pm

Expected code in Snippet on Back End using WP Snippets Lite

screen shot 2016-12-23 at 8 11 05 pm

WP Snippets Lite Options:

screen shot 2016-12-23 at 8 10 52 pm

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

screen shot 2016-12-23 at 8 10 11 pm

No snippets found when looking for a snippet from Lite in Pro

screen shot 2016-12-23 at 8 16 04 pm

Error on Front End when using a snippet from Lite in Pro

screen shot 2016-12-23 at 8 12 29 pm


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

screen shot 2016-12-23 at 8 15 31 pm

No previous snippets are detected though:

screen shot 2016-12-23 at 8 16 04 pm

renzms commented 7 years ago

Features confirmed Working

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.)

screen shot 2016-12-23 at 8 12 10 pm

Categories/Slugs carry over from WP Snippets Lite with no problem

jaswrks commented 7 years ago

@renzms Thanks for all the testing thus far! :-)

Only variables should be assigned by reference

This has been resolved in the latest release.