Missing Images from GK News Show Pro

Professional social WordPress theme with metro design, fully-adjustable grid widget and BuddyPress support.
GK User
Mon Mar 10, 2014 6:31 am
Hi

I am using posts with featured images and they are not being found
[attachment=0]Missing Images.png[/attachment

It seems they are not going to the cache folder E.G. http://siteshackdevsites.info/ssrebuild ... _nsp-2.jpg

The images are going into the gavern cache folder of the master theme not the child http://siteshackdevsites.info/ssrebuild ... _nsp-2.jpg
any ideas how to alter the filepaths?

Many thanks
User avatar
Senior Boarder

GK User
Mon Mar 10, 2014 7:50 am
Hello,

Please try to open file gavern/widgets.nsp.php in the theme directory and please change line:

Code: Select all
$cache_uri = get_template_directory_uri() . '/gavern/cache_nsp/';


to:

Code: Select all
$cache_uri = get_stylesheet_directory_uri() . '/gavern/cache_nsp/';
User avatar
Administrator

GK User
Tue Mar 11, 2014 12:59 pm
Hi it was set to

$cache_uri = get_stylesheet_directory_uri() . '/gavern/cache_nsp/';

So it is still trying to find the cache folder from the child theme when the cache is created in the master theme folder


Thanks
Danny
User avatar
Senior Boarder

GK User
Tue Mar 11, 2014 1:16 pm
So please try to replace this line to:

Code: Select all
$cache_uri = get_template_directory_uri() . '/gavern/cache_nsp/';
User avatar
Administrator

GK User
Wed Mar 12, 2014 7:13 am
Hi

No such line or

$cache_uri = get stylesheet directory_uri() . '/gavern/cache_nsp/';

Danny :-)
User avatar
Senior Boarder

GK User
Wed Mar 12, 2014 11:39 am
I'm sorry but I don't understand now - you have written that there was a line with get_stylesheet_directory_uri and now you are writing that it is not exist - could you explain it better?
User avatar
Administrator

GK User
Fri Mar 14, 2014 2:43 am
Hi By mistake I reported your reply - an accident

I'm going to re check everything in case I have confused the issue with underscores.

Thanks
Danny
User avatar
Senior Boarder

GK User
Fri Mar 14, 2014 3:03 am
OK

I"ve rechecked the file and

$cache_uri = get_stylesheet_directory_uri() . '/gavern/cache_nsp/';

is the only reference with cache_nsp

Sorry about that.

My confusion is still re the location of the cache_nsp folder should there be one in the child theme directory?

Thanks
Danny
User avatar
Senior Boarder

GK User
Fri Mar 14, 2014 2:38 pm
I've probably found a reason of your problems.

Please clone the widget.nsp.php file to your child-theme and then replace:

Code: Select all
$cache_uri = get_template_directory_uri() . '/gavern/cache_nsp/';


to:

Code: Select all
$cache_uri = get_stylesheet_directory_uri() . '/gavern/cache_nsp/';


It should helps.
User avatar
Administrator


cron