• Hi, your plugin does have a conflict in my setup, where i have fluent forms pro and the wpfluent framework is already provided and loaded by fluentforms.

    In your code, you have over-loaded the wpfluent’s QueryBuilder to add a selectDistinct function, but your autoload is not taking into account the fact that the wpfluent framework might be loaded elsewhere and it would use the available wpfluent class and not load its custom version anymore.

    Here is the error message that helped me identify the issue:

    [STDERR] PHP Fatal error: Uncaught BadMethodCallException: Call to undefined method FluentForm\Framework\Database\Query\Builder::selectDistinct() in /var/www/vhosts/example.com/html/wp-content/plugins/fluentform/vendor/wpfluent/framework/src/WPFluent/Database/Query/Builder.php:2423
    Stack trace: 0 /var/www/vhosts/example.com/html/wp-content/plugins/reviewx/app/Controllers/Admin/Criteria/CriteriaController.php(139): FluentForm\Framework\Database\Query\Builder->__call() 1 /var/www/vhosts/example.com/html/wp-content/plugins/reviewx/app/Controllers/Admin/Criteria/CriteriaController.php(149): ReviewX\Controllers\Admin\Criteria\CriteriaController->getReviewIds() 2 /var/www/vhosts/example.com/html/wp-content/plugins/reviewx/app/Controllers/Admin/Criteria/CriteriaController.php(122): ReviewX\Controllers\Admin\Criteria\CriteriaController->applyCreateEvent() 3 /var/www/vhosts/example.com/html/wp-content/plugins/reviewx/app/Controllers/Admin/Criteria/CriteriaController.php(23): ReviewX\Controllers\Admin\Criteria\CriteriaController->dispatchAction() 4 /var/www/vhosts/example.com/html/wp-content/plugins/reviewx/app/Controllers/Admin/Core/ReviewxAdmin.php(654): ReviewX\Controllers\Admin\Criteria\CriteriaController->handleAction() 5 /var/www/vhosts/example.com/html/wp-includes/class-wp-hook.php(324): ReviewX\Controllers\Admin\Core\ReviewxAdmin->save_setting_tab() 6 /var/www/vhosts/example.com/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 7 /var/www/vhosts/example.com/html/wp-includes/plugin.php(517): WP_Hook->do_action() 8 /var/www/vhosts/example.com/html/wp-admin/admin-ajax.php(188): do_action() 9 {main}
    thrown in /var/www/vhosts/example.com/html/wp-content/plugins/fluentform/vendor/wpfluent/framework/src/WPFluent/Database/Query/Builder.php on line 2423

    I suggest 3 ways of solving this:

    • (recommended) using your own wpFluent override implentation using the correct autoload + use instruction in your php classes
    • (dirty hack) make sure you load and over-write the existing wpFluent class forcefully.
    • rename your wpFluent to something else??
Viewing 8 replies - 16 through 23 (of 23 total)
  • Plugin Contributor Sabbir Mahmud

    (@sadhinsabbir)

    Hi?@amirhmoradi,

    Thanks for sharing the error details, we are looking into the matter and will get back to you soon.

    Warm regards!

    Plugin Contributor Sabbir Mahmud

    (@sadhinsabbir)

    Hi?@amirhmoradi,

    We couldn’t reproduce the issue at our end. Would you please contact our dedicated support team so that we can get some more information and resolve it?

    Best regards! ??

    Thread Starter amirhmoradi

    (@amirhmoradi)

    Hi @sadhinsabbir,

    I did reproduce the issue over and over and here is the solution you shall implement to correct the issue (may i get a lifetime licence for the pro version as a gift for this please?) :

    • Rename ALL instances of wpfluent in your code (check for all variations: wpFluent, WpFluent, WPFluent, wp-fluent…, and respect the casing in replacements),
    • Rename the framework’s folder name (app/Services/WPFluent)
    • Rename its auto-load main file (app/Services/WPFluent/wp-fluent.php)
    • Pack, publish, mention me in the changelog ?? and Enjoy!

    Your team chose as a replacement name in one of the last modded tries you sent me, wpfluents, which seems to be working as a name, but the folder rename was not done, so it still crashed because of the way php autoload works. I would choose a name more global at your organization level (wpdevelopper) if the framework is used in other products of yours, maybe wpDevFluent or just revXFL ?

    Please let me know if you need help or more info.

    Best regards.

    Plugin Contributor Sabbir Mahmud

    (@sadhinsabbir)

    Hi?@amirhmoradi,

    Thanks a lot, man, you’re a true friend of the ReviewX Team. Can you please send a hi to [email protected] ?

    Warm regards ??

    Thread Starter amirhmoradi

    (@amirhmoradi)

    Hi @sadhinsabbir,

    my pleasure :), just sent the email as you requested.

    Best

    Thread Starter amirhmoradi

    (@amirhmoradi)

    Hi @sadhinsabbir

    In the latest version on the plugin (.27, release about 2 months ago), the issue with the wpFluent thing explained in my previous messages is still there and causing errors still.

    I was wondering when are you planning to fix this issue and also I am curious to know about the upcoming new version’s release date?

    Best

    Plugin Contributor Sabbir Mahmud

    (@sadhinsabbir)

    Hi @amirhmoradi ,

    Its great to see you after a long time, I hope you’re doing great.

    We will release the fix within the next week, thank for following up and sorry for being late.
    Also, you will be excited to know that we are targeting the end of June to launch new version of the plugin.

    I will definitely send you a beta version of the plugin to you, what do you say?

    Best regards,
    Sabbir, Team ReviewX

    Thread Starter amirhmoradi

    (@amirhmoradi)

    Hi @sadhinsabbir ,

    Thanks for your kind words, i hope you are doing great ??

    Great news for the fix and the upcoming refactored plugin. I am of course interested about the beta!

    In the meanwhile, I had some new features implemented on my projects like for example: aggregation of reviews on related products (“related” does not imply woocommerce variations). There are plugins out there that allow you to connect products together, like iconic linked products, but they do not implement review/rating aggregations…. my next challenge is to add this feature to the “product bundles” ??

    Maybe this is a great differentiator feature to be able to aggregate reviews/ratings of different products.

    Best

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘Error 500 : Conflict with FluentForms’ is closed to new replies.