forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 plugins => Topic started by: allvip on August 22, 2012, 08:21:59 pm

Title: phpMyAdmin plugin for cpg1.5.x not working
Post by: allvip on August 22, 2012, 08:21:59 pm
I have installed the phpMyAdmin plugin for cpg1.5.x ,but when I click phpMyAdmin buttton it gives me a blank page and the phpMyAdmin button does not show in the admin menu,only in plugins page.

When I installed the plug in it showed me a error mesage:is not for 1.5 and it could crash your gallery.Are you sure you wan't to continue?I clicked yes.The name of the folder I downloaded is cpg1.5.x_plugin_phpmyadmin_v1.4

thanks.
Title: Re: phpMyAdmin plugin for cpg1.5.x not working
Post by: Jeff Bailey on August 22, 2012, 08:31:42 pm
newer version located here:
http://forum.coppermine-gallery.net/index.php/topic,60908.html
Title: Re: phpMyAdmin plugin for cpg1.5.x not working
Post by: allvip on August 23, 2012, 05:53:08 pm
now the phpMyAdmin button shows in the admin menu,but whwn I click the button it gives a blank page
Title: Re: phpMyAdmin plugin for cpg1.5.x not working
Post by: Jeff Bailey on August 23, 2012, 06:40:28 pm
Please post a link.
http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616
Title: Re: phpMyAdmin plugin for cpg1.5.x not working
Post by: allvip on August 24, 2012, 02:21:27 pm
http://allvip.us/gallery/index.php
Title: Re: phpMyAdmin plugin for cpg1.5.x not working
Post by: Jeff Bailey on August 24, 2012, 09:33:01 pm
Try replacing the plugins index.php with the attached file. Rename it from index.php.txt to index.php first.
Title: Re: phpMyAdmin plugin for cpg1.5.x not working
Post by: allvip on August 25, 2012, 07:39:08 am
now when I click the phpMyAdmin buttton it gives me this:

http://allvip.us/gallery/index.php?file=phpmyadmin/index



<?php
/*************************
Coppermine Photo Gallery
************************
Copyright (c) 2003-2009 Dev Team
v1.1 originally written by Gregory DEMAR

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 3
as published by the Free Software Foundation.

********************************************
Coppermine version: 1.5.x
$HeadURL: https://coppermine.svn.sourceforge.net/svnroot/coppermine/branches/cpg1.5.x/plugins/phpmyadmin/index.php $
$Revision: 8123 $
$LastChangedBy: eenemeenemuu $
$Date: 2010-12-07 10:08:46 +0100 (Di, 07 Dez 2010) $
**********************************************/

if (!GALLERY_ADMIN_MODE) {
cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
}
pageheader('phpMyAdmin');

/* Create signon session */
$session_name = 'phpmyadminsession';
session_name($session_name);
session_start();

/* Store their credentials */
$_SESSION['PMA_single_signon_user'] = $CONFIG['dbuser'];
$_SESSION['PMA_single_signon_password'] = $CONFIG['dbpass'];
$_SESSION['PMA_single_signon_host'] = $CONFIG['dbserver'];

/* Close that session */
session_write_close();

//pageheader('phpMyAdmin');

echo <<< EOT

<iframe src="plugins/phpmyadmin/phpMyAdmin/" width="100%" height="800px" style="border: 0px">
<a href="plugins/phpmyadmin/phpMyAdmin/">click here</a>
</iframe>

EOT;

pagefooter();
Title: Re: Re: phpMyAdmin plugin for cpg1.5.x not working
Post by: Jeff Bailey on August 25, 2012, 08:44:34 am
Rename it from index.php.txt to index.php first.
Title: Re: phpMyAdmin plugin for cpg1.5.x not working
Post by: allvip on August 25, 2012, 11:58:32 am
I did renamed it
Title: Re: phpMyAdmin plugin for cpg1.5.x not working
Post by: Jeff Bailey on August 25, 2012, 07:27:10 pm
not sure what happened.
How did you upload it?
Did you open it in an editor first?
Title: Re: phpMyAdmin plugin for cpg1.5.x not working
Post by: allvip on August 25, 2012, 07:31:05 pm
I create a new blank page in dreamwever and copy and paste your code and save it to index php.
Your file can be renamed php as already is a index.php
Title: Re: phpMyAdmin plugin for cpg1.5.x not working
Post by: Joe Carver on August 26, 2012, 01:42:53 pm
I create a new blank page in dreamwever and copy and paste your code and save it to index php.

Dreamweaver is not the best software to use for making simple copy & paste edits because it can "decide" what character encoding is best for the user.

CPG files need to remain encoded as UTF-8 without BOM.
       Meaning:

Make certain that all actions / edits do not change the character encoding.

If Dreamweaver allows you to adjust the encoding, then maybe you could try that. You will be better served by using a simple text editor (Notepad) or a powerful one, like Notepad ++.


Title: Re: phpMyAdmin plugin for cpg1.5.x not working
Post by: allvip on August 28, 2012, 03:09:35 pm
I used notepad to write the index.php with UTF-8 and know I'm getting a blank page when I click the phpmyadmin button.please help.I reallly want this to work.
Thanks.
Title: Re: phpMyAdmin plugin for cpg1.5.x not working
Post by: Jeff Bailey on August 28, 2012, 03:23:00 pm
Turn on debug mode for everyone so that we may see the error.
Title: Re: phpMyAdmin plugin for cpg1.5.x not working
Post by: allvip on August 28, 2012, 04:34:44 pm
done
Title: Re: phpMyAdmin plugin for cpg1.5.x not working
Post by: Jeff Bailey on August 28, 2012, 05:09:19 pm
Forgot that was an admin page. What is the error?
Title: Re: phpMyAdmin plugin for cpg1.5.x not working
Post by: allvip on August 28, 2012, 05:21:46 pm
when I click the phpmyadmin button I get a blank page
Title: Re: phpMyAdmin plugin for cpg1.5.x not working
Post by: Jeff Bailey on August 28, 2012, 05:43:48 pm
Strange.

Check your Coppermine root dir for the error log. ie: cpg15x/error_log
and see if there are any errors in there.

Additionally try this link while logged in as admin.
http://allvip.us/gallery/index.php?theme=water_drop&file=phpmyadmin/index

To go back to your default theme.
http://allvip.us/gallery/index.php?theme=xxx
Title: Re: phpMyAdmin plugin for cpg1.5.x not working
Post by: allvip on August 28, 2012, 06:03:53 pm
ok.I give up.there is no error log.
Thanks for all the help.
Title: Re: phpMyAdmin plugin for cpg1.5.x not working
Post by: Jeff Bailey on August 28, 2012, 06:05:15 pm
did you try the link?
Title: Re: phpMyAdmin plugin for cpg1.5.x not working
Post by: allvip on August 28, 2012, 06:52:06 pm
yes and it gives my a blank pafe when I click the phpadmin button
Title: Re: phpMyAdmin plugin for cpg1.5.x not working
Post by: allvip on August 28, 2012, 06:53:50 pm
can you help me with this please:

http://forum.coppermine-gallery.net/index.php/topic,75372.0.html
Title: Re: phpMyAdmin plugin for cpg1.5.x not working
Post by: allvip on April 30, 2015, 08:26:16 pm
phpMyAdmin plugin for cpg1.5.x works fine. I was a new user and I don't know why I did not make it then.
Topic solved.