PowerStore 4 Galleries Error
I'm getting this error when I try to preview Galleries.
Warning: Invalid argument supplied for foreach() in /home/xxxxxxxxxx/public_html/galleries/global.php on line 79
I'm getting this error when I try to preview Galleries.
Warning: Invalid argument supplied for foreach() in /home/xxxxxxxxxx/public_html/galleries/global.php on line 79
in the galleries/global.php file, can you change line 79:
foreach($sxe->channel->item as $item) {
to:
die("<pre>".var_dump($sxe)."</pre>");
foreach($sxe->channel->item as $item) {
and post back the results please.
OK, thanks, that helps.
you can revert that back, one other change to make for troubleshooting.
change line 44:
function get_gallery($url) {
to:
function get_gallery($url) {
die($url);
and post the results from that.
Ok, you can revert that change, that helped me see what tyhe error is.
it looks like you have automatic forwarding of HTP to HTTPS that is causing the issue.
try changing the line:
$Root_URL = ((isset($_SERVER['SERVER_PROTOCOL']) && strpos($_SERVER['SERVER_PROTOCOL'], 'HTTPS') !== false) ? 'https://' : 'http://') . $_SERVER['SERVER_NAME'] . ( (isset($_SERVER['SERVER_PORT'])&& $_SERVER['SERVER_PORT'] != 80)?":".$_SERVER['SERVER_PORT']:"") . $assumedRoot;
to:
$Root_URL = "https://klineitsolutions.com/";
After changing that code I am getting the following. See attached screenshot. Notice the URL at the bottom.
Do I need to add this code to other global.php files to force http to https to work across the entire PowerStore?
Hi Jason,
I am checking to see if you had any more ideas on this issue.
Jason
I have created a support ticket so we can look into this issue further.
To view and edit your support ticket, please log into your support history:
supporthistory.php
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.