0
Welcome Guest! Login
0 items Join Now

SOLVED RokComment & J2Store not compatible

  • SOLVED RokComment & J2Store not compatible

    Posted 8 years 11 months ago
    • I have errors when I have an article with these 2 conditions:
      - RokComment activated
      - Article is labeled as a product for J2Store

      I got an error 500 that some classes are not found.

      After debuging and adding some paths (thanks to j2store team):
      I am stock here:

      [Tue May 24 14:13:22.282174 2016] [fcgid:warn] [pid 16261] [client 127.0.0.1:34526] mod_fcgid: stderr: PHP Fatal error: Call to a member function se
      tState() on a non-object in /var/www/clients/client0/web74/web/plugins/content/rokcomments/rokcomments.php on line 424, referer: http://mikesgadgets.
      online/index.php?option=com_contact&view=contact&id=1&Itemid=119
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 22301
    • Thanks: 3229
    • messin' with stuff

    Re: SOLVED RokComment & J2Store not compatible

    Posted 8 years 11 months ago
    • Unfortunately we cannot guarantee compatibility with all 3rd party plugins

      Most of our extensions require at least PHP 5.4 and 5.6+ is recommended.

      Server 500 errors are typically very pure server errors... please pull your Apache Error logs for the event and see what errors occur just before the server 500 response
    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:
  • Re: SOLVED RokComment & J2Store not compatible

    Posted 8 years 11 months ago
    • So, can you fix it? It only fails with j2store with an article labeled as product. Seems the JComponent object is not returning, but this is out of my Joomla PHP knowledge.
  • Re: SOLVED RokComment & J2Store not compatible

    Posted 8 years 11 months ago
    • I fixed with a dirty hack, but I guess there is a better way


      1. about line 117, I added

      if (!class_exists('ContentHelperRoute')) {
      require_once JPATH_SITE.'/components/com_content/helpers/route.php';
      }


      Before line:
      $this->path = JRoute::_(ContentHelperRoute::getArticleRoute($r_slug, $r_catid));


      2. about line 425, I added
      if (!$categories) {
      return array();
      }

      Before line:
      $categories->setState('params', $appParams);


      This prevents to break, but the articles labeled as products wont have comments.
  • Re: SOLVED RokComment & J2Store not compatible

    Posted 8 years 11 months ago
    • This issue happens with jDownloads as well

Time to create page: 0.057 seconds