forum.coppermine-gallery.net
Support => cpg1.5.x Support => cpg1.5 plugins => Topic started 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.
-
newer version located here:
http://forum.coppermine-gallery.net/index.php/topic,60908.html
-
now the phpMyAdmin button shows in the admin menu,but whwn I click the button it gives a blank page
-
Please post a link.
http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616
-
http://allvip.us/gallery/index.php
-
Try replacing the plugins index.php with the attached file. Rename it from index.php.txt to index.php first.
-
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();
-
Rename it from index.php.txt to index.php first.
-
I did renamed it
-
not sure what happened.
How did you upload it?
Did you open it in an editor first?
-
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
-
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:
- The file's character set needs to be in the set / subset of UTF-8
- A Byte Order Mark (BOM) should not be applied - it will break the functionality of the file
Make certain that all actions / edits do not change the character encoding.
- Download and unzip
- Copy / paste / edit / save
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 ++.
-
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.
-
Turn on debug mode for everyone so that we may see the error.
-
done
-
Forgot that was an admin page. What is the error?
-
when I click the phpmyadmin button I get a blank page
-
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
-
ok.I give up.there is no error log.
Thanks for all the help.
-
did you try the link?
-
yes and it gives my a blank pafe when I click the phpadmin button
-
can you help me with this please:
http://forum.coppermine-gallery.net/index.php/topic,75372.0.html
-
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.