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

Can't Log in to Power Gallery

Thread began 1/17/2011 5:35 pm by mrobben375515 | Last modified 1/21/2011 3:08 pm by mrobben375515 | 1263 views | 6 replies |

mrobben375515

Can't Log in to Power Gallery

I go to the root directory of Power Gallery in my browser and I get this error:

Warning: require_once(WA_Globals/WA_Globals.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/o/n/e/onetooneweb/html/cpc/PG123/index.php on line 1

Fatal error: require_once() [function.require]: Failed opening required 'WA_Globals/WA_Globals.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/o/n/e/onetooneweb/html/cpc/PG123/index.php on line 1


If I go to the admin_gallery directory then I get this error.

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/content/o/n/e/onetooneweb/html/cpc/PG123/admin_gallery/global.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/content/o/n/e/onetooneweb/html/cpc/PG123/admin_gallery/global.php:37) in /home/content/o/n/e/onetooneweb/html/cpc/PG123/admin_gallery/index.php on line 6


I have attached the global and index files below. Thanks

Attached Files
global.zip
index.zip
Sign in to reply to this post

Jason ByrnesWebAssist

I think you may have some corrupted files. The index.php file at the power gallery root should have a redirect to the admin_gallery/index.php file in.

The index file you attached here is the one that should be in the admin_gallery folder, it should not be at the root of the gallery files.

the index file at the root of the gallery should just have this code in it:
<?php
header('Location: admin_gallery/index.php');
?>


try downloading a fresh copy of the power gallery files from the download center.

Sign in to reply to this post

mrobben375515

I put the latest version files in and now it takes me to the admin_gallery/index.php but an error appears above the log in.

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/content/o/n/e/onetooneweb/html/cpc/PG123/admin_gallery/global.php on line 37

if I enter my credentials I get this error...

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/content/o/n/e/onetooneweb/html/cpc/PG123/admin_gallery/global.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/content/o/n/e/onetooneweb/html/cpc/PG123/admin_gallery/global.php:37) in /home/content/o/n/e/onetooneweb/html/cpc/PG123/admin_gallery/index.php on line 58

Sign in to reply to this post

Jason ByrnesWebAssist

have you run the install script on the server yet?

It almost seams like you ran the install script locally, then uploaded the gallery files to the server, but have not run the installer on the server.

The line that is reporting the error is associated to code that populates the wa_settings array from the wa_settings table from the database, if the installer script has not been run on the remote server, this table wont exist yet.

if you haven't run the install script on the server yet, delete the connections/installed.txt file so the install script will run.

Sign in to reply to this post

mrobben375515

I moved the site over from another host and imported the database. The pg_root and pg_root_url columns are in the wa_settings table. They are set to the right settings, I just double checked.

Sign in to reply to this post

Jason ByrnesWebAssist

did you update the connection file to use the correct information for the new hosts my sql server?

Sign in to reply to this post

mrobben375515

The settings in the config were correct. I just deleted the installed_gallery.txt file and now it works fine. I can't believe that's all that it was. Thanks for the help.

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