This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Commentics works fine on my live server but not on my localserver
#4

Thanks, that's sorted now.

I think it's normal that the comments from your live server don't appear locally because it's technically a different website and Commentics is multi-site so it's designed not to show comments from different websites where the pages have the same identifier.

You could try opening /comments/system/library/page.php and replacing this:

PHP Code:
<?php 
$query
= $this->db->query("SELECT * FROM `" . CMTX_DB_PREFIX . "pages` WHERE `identifier` = '" . $this->db->escape($identifier) . "' AND `site_id` = '" . (int) $site_id . "'");

With this:

PHP Code:
<?php 
$query
= $this->db->query("SELECT * FROM `" . CMTX_DB_PREFIX . "pages` WHERE `identifier` = '" . $this->db->escape($identifier) . "'");

As to the comments posted locally not appearing locally:
  • Do they appear in Manage -> Comments?
  • Is the identifier in your integration code the same as the identifier in Manage -> Pages?
  • Are the comments approved?
  • Try clearing the cache in Tools -> Clear Cache.
  • Could it be cached by your local webserver?
  • Try enabling error reporting and posting another comment.
    - https://commentics.com/faq/troubleshoot/errors

Have you completed the interview?
Reply


Messages In This Thread

Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by RJCS
06-May-2019, 09:28 PM
Last Post by lastejas
29-Sep-2018, 02:03 PM
Last Post by hentes
06-Nov-2016, 01:36 PM
Last Post by Steven
25-Jul-2014, 07:17 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)