Moved hosting and now get an error 'This album is empty.' 'previewdns'

pothound

Joined: 2007-12-26
Posts: 22
Posted: Tue, 2010-01-05 20:07

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):http://bananasgrenada.com.previewdns.com/gallery/main.php
Gallery version:
Apache version:
PHP version (don't just say PHP 4, please):
Graphics Toolkit:
Operating system:
Web browser/version (if applicable):

Is the album empty because I am using 'preview dns' with godaddy? Anybody knows anything about that?
The url in the config file is correct however:

$gallery->setConfig('baseUri', 'http://bananasgrenada.com.previewdns.com/gallery/main.php');

Thanks for help!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Wed, 2010-01-06 00:59

Did you follow these instructions:

FAQ: How can I move my gallery installation from one server to another?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
pothound

Joined: 2007-12-26
Posts: 22
Posted: Wed, 2010-01-06 14:54
nivekiam wrote:
Did you follow these instructions:

FAQ: How can I move my gallery installation from one server to another?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Yes I did.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Wed, 2010-01-06 16:53

Ah, I see. Get off of previewdns. They are injecting HTML and JavaScript into your page and that's going to break Gallery every time.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
pothound

Joined: 2007-12-26
Posts: 22
Posted: Wed, 2010-01-06 20:55
nivekiam wrote:
Ah, I see. Get off of previewdns. They are injecting HTML and JavaScript into your page and that's going to break Gallery every time.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Thought that could be the problem. Will get the site live and then it should be fine.
Thanks!

 
pothound

Joined: 2007-12-26
Posts: 22
Posted: Sat, 2010-01-09 00:19

Hi Everybody
now the site is live and the gallery is re-installed, using "reuse existing database tables" but it still shows:
This album is empty.

and I get an error:
WARNING: block core.NavigationLinks doesn't exist.

Heeeelp.... please.....

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sat, 2010-01-09 04:34

Looks like your changes are based on an old version of the Matrix theme. Compare your changes (under /themes/matrix/templates/local/) to those files that are in /themes/matrix/templates/. You'll need to apply your changes to the updated templates under /themes/matrix/templates/

Let me know if that doesn't make sense.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
pothound

Joined: 2007-12-26
Posts: 22
Posted: Mon, 2010-01-11 22:00
nivekiam wrote:
Looks like your changes are based on an old version of the Matrix theme. Compare your changes (under /themes/matrix/templates/local/) to those files that are in /themes/matrix/templates/. You'll need to apply your changes to the updated templates under /themes/matrix/templates/

Let me know if that doesn't make sense.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Do you mean I do not need the folder 'local' anymore?
Anyway I made the changes on the file:
local/theme.tlp

Still no album. Then I x-out the folder 'local', still no album.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Mon, 2010-01-11 22:09

Not that you don't need the local folder anymore, but that your changes are not compatible with the current code. To get rid of those errors, "x-out" the local folder. Then clear gallery's cache:
FAQ: How can I clear cached data?

Now it should be using the un-modified, current version of Matrix
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
pothound

Joined: 2007-12-26
Posts: 22
Posted: Mon, 2010-01-11 22:32
nivekiam wrote:
Not that you don't need the local folder anymore, but that your changes are not compatible with the current code. To get rid of those errors, "x-out" the local folder. Then clear gallery's cache:
FAQ: How can I clear cached data?

Now it should be using the un-modified, current version of Matrix
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Done all that the error is gone, but the album is still empty... I have up-loaded tons of pics... and followed the instructions.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Mon, 2010-01-11 22:43

Oh, wait. This rings a bell. Post a link to phpinfo:
FAQ: How do I create a phpinfo page?

I'm betting either there are smaller size limits on your uploads or the upload_tmp_dir setting for PHP is blank and nothing is happening (this doesn't happen often, but it does happen)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
pothound

Joined: 2007-12-26
Posts: 22
Posted: Mon, 2010-01-11 22:55
nivekiam wrote:
Oh, wait. This rings a bell. Post a link to phpinfo:
FAQ: How do I create a phpinfo page?

I'm betting either there are smaller size limits on your uploads or the upload_tmp_dir setting for PHP is blank and nothing is happening (this doesn't happen often, but it does happen)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Ok done that, the file is here:
http://bananasgrenada.com/gallery/phpinfo.php

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Mon, 2010-01-11 22:58

Are the files larger than 8MB?

Can you PM (click Write to author) me login details for your Gallery install?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
pothound

Joined: 2007-12-26
Posts: 22
Posted: Mon, 2010-01-11 23:12
nivekiam wrote:
Are the files larger than 8MB?

Can you PM (click Write to author) me login details for your Gallery install?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

No the images are not bigger than 500kb. Just sent you admin access. But do you need ftp? Anyway gonna send that too, one sec.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Mon, 2010-01-11 23:48

I created an album and uploaded an image without any problems. How are you trying to add the images?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
pothound

Joined: 2007-12-26
Posts: 22
Posted: Mon, 2010-01-11 23:59
nivekiam wrote:
I created an album and uploaded an image without any problems. How are you trying to add the images?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Yes up-loading new images is fine. But I moved my images from the previous host and those make troubles. Those do not show. There are tons of images in the folder:
g2data/albums

If I have to up-load them again through admin, that gonna take me ages...

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2010-01-12 00:10

You didn't follow these steps then:
http://gallery.menalto.com/node/93610#comment-331851

Not only do your permissions look off (which wouldn't cause them to just not show up), but then your database doesn't know anything about them. Run through those steps again and be sure to reuse the existing tables from your old database.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
pothound

Joined: 2007-12-26
Posts: 22
Posted: Tue, 2010-01-12 00:23
nivekiam wrote:
You didn't follow these steps then:
http://gallery.menalto.com/node/93610#comment-331851

Not only do your permissions look off (which wouldn't cause them to just not show up), but then your database doesn't know anything about them. Run through those steps again and be sure to reuse the existing tables from your old database.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

But I did! MOre than once and I was using 'reuse the existing tables from your old database'.
Are you still working on it? Now I do get an empty page:
error....

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2010-01-12 00:33

I haven't done anything with it recently, but I'll take a look
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
pothound

Joined: 2007-12-26
Posts: 22
Posted: Tue, 2010-01-12 00:38
nivekiam wrote:
I haven't done anything with it recently, but I'll take a look
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Thanks I appreciate it, because now I could not do anything anymore.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2010-01-12 00:40

Your database server is down:

Quote:
Could't connect :

YOUR_DB_HOSTNAME.hostedresource.com: Unknown MySQL server host
'YOUR_DB_HOSTNAME.hostedresource.com' (2)

I replaced the hostname info with "YOUR_DB_HOSTNAME"

You'll need to contact your host. Looks like hostedresource.com is down completely. Are you getting your hosting directly from GoDaddy or from a reseller of GoDaddy services? Well either way you'll need to contact them.

Quote:
But I did! MOre than once and I was using 'reuse the existing tables from your old database'.

How did you backup and import your old database?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
pothound

Joined: 2007-12-26
Posts: 22
Posted: Tue, 2010-01-12 00:47
nivekiam wrote:
Your database server is down:

Quote:
Could't connect :

YOUR_DB_HOSTNAME.hostedresource.com: Unknown MySQL server host
'YOUR_DB_HOSTNAME.hostedresource.com' (2)

I replaced the hostname info with "YOUR_DB_HOSTNAME"

You'll need to contact your host. Looks like hostedresource.com is down completely. Are you getting your hosting directly from GoDaddy or from a reseller of GoDaddy services? Well either way you'll need to contact them.

Directly from them. Is this just temporarily?

Quote:
How did you backup and import your old database?

As it said in the instructions - unless I got that wrong - I just downloaded all images using ftp and up-loaded them again using ftp.

This seems to become a nightmare....

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2010-01-12 01:03
Quote:
As it said in the instructions - unless I got that wrong - I just downloaded all images using ftp and up-loaded them again using ftp.

That's not the database. See step 1 of those instructions:
http://codex.gallery2.org/Gallery2:How_do_I_Make_Backups_of_My_Database

And step 5 for importing the old database.

The g2data is just your images (and some other files), but not any of the titles, descriptions, comments, summaries, view counts, etc.

If you don't have the old database anymore, you can still get your old images into Gallery. But let's see if we have to go that route first.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
pothound

Joined: 2007-12-26
Posts: 22
Posted: Tue, 2010-01-12 13:41
nivekiam wrote:
Quote:
As it said in the instructions - unless I got that wrong - I just downloaded all images using ftp and up-loaded them again using ftp.

That's not the database. See step 1 of those instructions:
http://codex.gallery2.org/Gallery2:How_do_I_Make_Backups_of_My_Database

And step 5 for importing the old database.

The g2data is just your images (and some other files), but not any of the titles, descriptions, comments, summaries, view counts, etc.

If you don't have the old database anymore, you can still get your old images into Gallery. But let's see if we have to go that route first.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Ok I see! I still have access the old host and downloaded the database and up-loaded it. But something is still not working.
When I import the database is there anything else I need to do?