close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Gallery not showing on production server

Thread began 1/08/2010 9:23 am by kbettenc296716 | Last modified 1/15/2010 1:03 pm by kbettenc296716 | 1736 views | 6 replies |

kbettenc296716

Gallery not showing on production server

I have uploaded every power gallery file from my local server (I hope), did the install on production, added a gallery and added 18 images, choose a design and I added the php code to the mixedmedia.php page, and uploaded that page.

mixedmedia.php

All I get is this:

First Prev Next Last
loading...

If I add the link provided in "Use this URL when linking to your PowerGallery from any web page:" It can't find the page.
The link is on index.php
at the end of the left column of text.

The admin login information is in the attached file.

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

Jason ByrnesWebAssist

in the galleries/global.php file, try adding the following at line 2:

php:
unset($_SERVER['DOCUMENT_ROOT']);





then locate the following code:

php:
$pg_config = array(

    'path' => str_replace('galleries/', '', str_ireplace(str_ireplace('\\', '/', realpath($_SERVER['DOCUMENT_ROOT'])), '', $abs_prefix)),
    'html_prefix' => str_ireplace(str_ireplace('\\', '/', realpath($_SERVER['DOCUMENT_ROOT'])), '', $abs_file) . '/'
);
Sign in to reply to this post

kbettenc296716

You say
"find the following code"

$pg_config = array(
'path' => str_replace('galleries/', '', str_ireplace(str_ireplace('\\', '/', realpath($_SERVER['DOCUMENT_ROOT'])), '', $abs_prefix)),
'html_prefix' => str_ireplace(str_ireplace('\\', '/', realpath($_SERVER['DOCUMENT_ROOT'])), '', $abs_file) . '/'
);

But, you don't tell me what to do with it.

Do I add this to the global.php file? If so, where?

I looked for that exact string on the whole site and couldn't find it.

Sign in to reply to this post

Jason ByrnesWebAssist

My Apologies, I hit send send to quickly.



in the galleries/global.php file, try adding the following at line 2:

php:
unset($_SERVER['DOCUMENT_ROOT']);





then locate the following code:

php:
$pg_config = array(

    'path' => str_replace('galleries/', '', str_ireplace(str_ireplace('\\', '/', realpath($_SERVER['DOCUMENT_ROOT'])), '', $abs_prefix)),
    'html_prefix' => str_ireplace(str_ireplace('\\', '/', realpath($_SERVER['DOCUMENT_ROOT'])), '', $abs_file) . '/'
);





and change it to:

php:
$pg_config = array(

    'path' => "/".str_replace('galleries/', '', str_ireplace(str_ireplace('\\', '/', realpath($_SERVER['DOCUMENT_ROOT'])), '', $abs_prefix)),
    'html_prefix' => "/".str_ireplace(str_ireplace('\\', '/', realpath($_SERVER['DOCUMENT_ROOT'])), '', $abs_file) . '/'
);
Sign in to reply to this post

kbettenc296716

No joy

That didn't seem to do anything. I even created a new powergallery called "Gallery" instead of "KBGallery"

mixedmedia.php

This time however, it tries to show the ribbon at the bottom and I see black outlined squares, but then they disappear.

Also, The link given in "direct link to gallery" doesn't work either, it says "page not found".

index.php?gallery=2&theme=light

Sign in to reply to this post

Jason ByrnesWebAssist

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

Sign in to reply to this post

kbettenc296716

Thanks

Thanks for helping

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