close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Bad links generated (GoDaddy Host)

Thread began 12/07/2009 12:59 pm by info262805 | Last modified 2/02/2010 9:19 pm by Jimmy Wu | 2686 views | 8 replies |

info262805

Bad links generated (GoDaddy Host)

I am unable to get the Power Gallery product to function correctly under a GoDaddy account. I've tried the few posts out on the forums with no luck:

The Add to Site link that is generated from the Admin system is:
index.php?gallery=1&theme=light

This is obviously not correct. I'm able to get to view a page if I change the address to:
index.php?gallery=1&theme=light

But it doesn't display the photos or other graphics. Just Loading.....

Any help would be greatly appreciated. Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

in the galleries/global.php file, change line 14:

php:
$_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['ORIG_PATH_TRANSLATED']), 0, 0 - strlen($_SERVER['PHP_SELF'])));




to:

php:
$_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0 - strlen($_SERVER['PHP_SELF'])));
Sign in to reply to this post

info262805

Thanks for your reply.

I didn't have this line of code in 14, but in line 10. It was already set they way you wanted. See below:

<?php
//make sure the $_SERVER['DOCUMENT_ROOT'] variable is set (IIS doesn't set it)
if(!isset($_SERVER['DOCUMENT_ROOT'])) {
if(isset($_SERVER['SCRIPT_FILENAME'])) {
$_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0 - strlen($_SERVER['PHP_SELF'])));
};
};
if(!isset($_SERVER['DOCUMENT_ROOT'])) {
if(isset($_SERVER['PATH_TRANSLATED'])) {
$_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0 - strlen($_SERVER['PHP_SELF'])));
};
};
//$_SERVER['DOCUMENT_ROOT'] is now set

Sign in to reply to this post

info262805

but still get the same results

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue with your to find the solution. to view and edit your support ticket, please log into your support history:
supporthistory.php

Sign in to reply to this post

Ropey

I have the same problem, would you be able to help me out by telling what else needs to be changed? it keeps saying 'loading' sometimes, not allways.

Sign in to reply to this post

Jason ByrnesWebAssist

can you post a link?


What browser are you using to test?

Sign in to reply to this post

info319155

I also have image links and loading problem

Hi. I think this is the same as my problem too.

I had PowerGallery working fine on a testing site. Please see:
residential.php

But when installed on client's site
residential.php

the images will not load. On Firefox it just says loading and on Safari you see broken links to images.

My global.php is as you say it should be. I have noted that the PHP link looks different to that of my testing site? Testing site looks like:

<?php
$pg_id = '1';
$pg_theme = 'light';
include('/var/www/vhosts/123design.co.uk/subdomains/testing/httpdocs/images/gallery/PowerGallery100/galleries/ribbon_fullsize_brooks_2/index.php');
?>

Client site looks like:

<?php
$pg_id = '1';
$pg_theme = 'light';
include('/vhost/vhost8/b/r/o/brooksarchitects.com/www/images/gallery/PowerGallery100/galleries/ribbon_fullsize_brooks_2/index.php');
?>

Might this be a problem with the host? Help appreciated asap.

Thanks
Janice

Sign in to reply to this post

Jimmy Wu

I have gone ahead and answered your question in another thread you made here:
showthread.php?t=9681

If you run into any additional issues, feel free to open a new thread.

Sign in to reply to this post

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...