phpMyAdmin plugin for cpg1.5.x not working phpMyAdmin plugin for cpg1.5.x not working
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

phpMyAdmin plugin for cpg1.5.x not working

Started by allvip, August 22, 2012, 08:21:59 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

allvip

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.

Jeff Bailey

Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

allvip

now the phpMyAdmin button shows in the admin menu,but whwn I click the button it gives a blank page

Jeff Bailey

Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford


Jeff Bailey

Try replacing the plugins index.php with the attached file. Rename it from index.php.txt to index.php first.
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

allvip

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();

Jeff Bailey

Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

allvip


Jeff Bailey

not sure what happened.
How did you upload it?
Did you open it in an editor first?
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

allvip

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

Joe Carver

Quote from: 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.

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



allvip

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.

Jeff Bailey

Turn on debug mode for everyone so that we may see the error.
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford


Jeff Bailey

Forgot that was an admin page. What is the error?
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

allvip

when I click the phpmyadmin button I get a blank page

Jeff Bailey

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
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

allvip

ok.I give up.there is no error log.
Thanks for all the help.

Jeff Bailey

Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford