forum.coppermine-gallery.net

Support => cpg1.6.x Support => cpg1.6 miscellaneous => Topic started by: nowordneeded on May 01, 2019, 05:13:53 am

Title: CPM Fetch 2.0.1 Images Not Showing on Wordpress
Post by: nowordneeded on May 01, 2019, 05:13:53 am
Hello. I'm using CPG current version 1.6.06 stable on http://lauramennell.org/gallery.

The problem I'm having is that the latest uploaded images are not showing on the main page of my Wordpress CMS. It was until I added two new albums with new photos. I'm using this code to insert the images:

<?php
  include "./gallery/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
  $objCpm->cpm_viewLastAddedMedia(1,4);
  $objCpm->cpm_close();
?>

I'm running PHP version 7.2.
Title: Re: CPM Fetch 2.0.1 Images Not Showing on Wordpress
Post by: ron4mac on May 01, 2019, 05:37:30 am
Fix the URL of your CPG in the config.
It should not be http://lauramennell.samskara.org/gallery/
Title: Re: CPM Fetch 2.0.1 Images Not Showing on Wordpress
Post by: nowordneeded on May 01, 2019, 07:32:09 am
Ron once again you save my bacon. I have no idea how or why that didn't get changed when I moved the site. It's dumb really on my behalf. I ran the CPMFetch again and all fixed. You guys are so great. Thanks.
Title: Re: CPM Fetch 2.0.1 Images Not Showing on Wordpress
Post by: nowordneeded on May 07, 2019, 08:02:05 am
So same problem on a different gallery. It was working on this gallery http://tamara-braun.com/gallery using current stable version 1.6.06. The CPMFETCH isn't working here http://tamara-braun.com. I'm using this code:

Code: [Select]
<?php
  include "./gallery/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
  $objCpm->cpm_viewLastAddedMedia(2,10);
  $objCpm->cpm_close();
?>

It was there for a long while, but now even the install page doesn't show the images.
Title: Re: CPM Fetch 2.0.1 Images Not Showing on Wordpress
Post by: ron4mac on May 07, 2019, 02:14:59 pm
This time it's an http/https issue. Check your url settings and don't use https unless that is what is needed/intended.

The self-signed SSL certificate is probably not going to fly.
Title: Re: CPM Fetch 2.0.1 Images Not Showing on Wordpress
Post by: nowordneeded on May 08, 2019, 04:48:59 am
This time it's an http/https issue. Check your url settings and don't use https unless that is what is needed/intended.

The self-signed SSL certificate is probably not going to fly.

Ron, I deleted the Wordpress plugin some time ago. The latest images were displaying not any more than one month ago. I have no idea why that SSL certificate is still showing as valid. Where in my cpanel would I look to see where that is?

Thanks.
Title: Re: CPM Fetch 2.0.1 Images Not Showing on Wordpress
Post by: ron4mac on May 08, 2019, 05:10:18 am
Look for a section involving SSL.
But it may solve your issue just by changing the URL in your CPG config to NOT be https://xxx
Title: Re: CPM Fetch 2.0.1 Images Not Showing on Wordpress
Post by: nowordneeded on May 08, 2019, 08:08:33 am
Ron......you are a godsend. I have looked everything over at least thirty times and never noticed that in the config. I thank you from the bottom of my heart for everything you've done to help me out with all these pesky issues. Truly you are a good soul.