PDA

View Full Version : Help! Can't login to admin!


nomad
12-15-2006, 05:11 PM
When I treid to go to my admin page to login today, I simply got this message written in my browser window.


Fatal error: Cannot redeclare crop_image12_make_ready() (previously declared in /mnt/w0509/d15/s05/b0249b05/www/lucaslemonnier.com/addons/admin_12CropImage.php:81) in /mnt/w0509/d15/s05/b0249b05/www/lucaslemonnier.com/addons/admin_12CropImage.php on line 79

Any ideas?

nomad
12-15-2006, 06:52 PM
Anyone out there?

Dennis
12-15-2006, 08:50 PM
hmm... you're the first one. Somehow the admin_12CropImage.php is installed twice.

Check if the file exists in an other name in your addon folder.

we as developers also have lives (although I've just spend 5 hours on pixelpost)

nomad
12-16-2006, 01:48 AM
Not sure what I'm looking for.
I looked for this file: admin_12CropImage.php, and it is only appears once in my folder.

Any other ideas? I don't understand how this just happened, but I have absolutely no way of accessing my admin in order to upload pictures etc...

Thanks.

austriaka
12-16-2006, 09:06 AM
I wondered about the fact, 12CropImage comes ready installed with PP 1.5 and is offered as an admin_addon additionally as an example for writing admin_addons. Perhaps this is the reason?
nomad, I didn't try this but perhaps it is possible to deactivate the admin_12CropImage Addon in database? (go to mysqladmin or phpmyadmin of your site, click table "pixelpost_addons", choose "browse" in the top menu and klick the little pencil ("Edit") aside "admin_12CropImage" (here it is ID 1). Change the field "status" from "on" to "off".
Maybe this will work.

Another possibility I have in mind: do you use Firefox 2.0? It seems for any reason sometimes FF does things twice. I have the problem for example when deleting images, the image and thumbnail is deleted but after that there is an error message "could not unlink image ... because there is no image ...". FF does the delete image function twice, the first run deletes the image right and the second run cannot find the image anymore. This does not happen with Internet Explorer...
So if you use Firefox, just give it a try with IE

HTH
KArin

nomad
12-16-2006, 02:25 PM
Thanks for your suggestion. When I go to MySQL, I click on "Databases" which then shows me a single string of numbers. When I click this string I get this message: No Tables Found In Database. It then gives me an option to create new tables on Database ####(same string of numbers).

Oh, and I use Safari on Mac. Never had an issue until now and I really can't remember having done anything at all.

I am totally at a loss.

austriaka
12-16-2006, 04:55 PM
is "####" (string of numbers) the name of your database?
Does the blog (user side) actually work?
K

nomad
12-17-2006, 03:33 AM
Yes, it is the name of the database (I'll have to look up the exact numbers). No, the user side of the blog does not work as any time I try to access the pixelpost admin page in order to login, all I get is the message about the crop function that I wrote above. I assume that's what you mean by "user side".

I don't even know where to begin here.

austriaka
12-17-2006, 10:42 AM
No, I meant if visitors of your blog can see the images or archive page.
Does http://www.yourblog.com/index.php work?
A link to your blog site would be helpful.

It is very strange that your database says there are no tables in. Or do you use a subdomain like "www.yourblog.yoursite.com" and is there a second database with same name in your main domain? You have to call the database of the blog in this way:
http://www.yourblog.yoursite.com/mysqladmin
or
http://www.yourblog.yoursite.com/phpmyadmin

KArin

nomad
12-18-2006, 11:07 AM
Yes, lucaslemonnier.com works just fine - all pages and links are present and functional.

I'm no sure if it's a subdomain, but I have a plan with my hosting company that allows for two doamin names on the same plan - when people click on lucaslemonnier.com, it simply forwards to that folder within my main plan's directory.

I do have another MySQL database for my main domain name. In this case I see all the tables in that database. For pixelepost databse: still the same message:

No tables found in database.
Create new table on database d60262861 :
Name :
Fields :

What I don't get is this: if all this stuff has somehow dissapeared, why is it still working from the user end? It's like it's all gone, but still there!

austriaka
12-18-2006, 11:29 AM
there should be only one database for pixelpost.
Is the database name (=numbers) the same in both mysql? Is it the same name/number you wrote into pixelpost.php?

I have no idea what is happening there, perhaps ask your ISP?

KArin

nomad
12-19-2006, 10:03 PM
Austriaka,

Thank-you so much, you fixed my problem!

For some reason my pixelpost tables are mixed with my other database tables (called picture pro gallery). As you can see I have to databases:

http://static.flickr.com/144/327582737_70551e57af_o.jpg

When I click on the Pixelpost phpMyAdmin, this is what I get:

http://static.flickr.com/142/327582795_b7dd12d2f2_o.jpg

However, when I go to the Picture Pro Gallery, they are right there at the bottom of the list:

http://static.flickr.com/144/327582780_54183199ef_o.jpg


In any case, when I saw them I did exactly as you said and indeed, the cropimage was present 3 times! Deleting the two extras did the trick.

Is there a way for me to safely move all my pixelpost tables to the pixelpost database without it messing everything up? I never use the Picture Pro Gallery thing and I would like to just delete it.


Thank-you very much for your help,

Lucas