close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PowerStore 4 Galleries Error

Thread began 10/24/2010 5:42 am by Jason Kline | Last modified 11/05/2010 1:33 pm by Jason Kline | 2548 views | 11 replies |

Jason Kline

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

Sign in to reply to this post

Jason ByrnesWebAssist

in the galleries/global.php file, can you change line 79:

php:
foreach($sxe->channel->item as $item) {




to:

php:
die("<pre>".var_dump($sxe)."</pre>");

foreach($sxe->channel->item as $item) {




and post back the results please.

Sign in to reply to this post

Jason Kline

I have attached the results.

Attached Files
results.txt
Sign in to reply to this post

Jason ByrnesWebAssist

OK, thanks, that helps.


you can revert that back, one other change to make for troubleshooting.

change line 44:

php:
function get_gallery($url) {




to:

php:
function get_gallery($url) {

die($url);




and post the results from that.

Sign in to reply to this post

Jason Kline

Here you go. see attached

Attached Files
results1.txt
Sign in to reply to this post

Jason ByrnesWebAssist

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:

php:
$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:

php:
$Root_URL = "https://klineitsolutions.com/";
Sign in to reply to this post

Jason Kline

After changing that code I am getting the following. See attached screenshot. Notice the URL at the bottom.

Sign in to reply to this post

Jason Kline

Do I need to add this code to other global.php files to force http to https to work across the entire PowerStore?

Sign in to reply to this post

Jason Kline

Hi Jason,

I am checking to see if you had any more ideas on this issue.

Jason

Sign in to reply to this post

Jason ByrnesWebAssist

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

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...