Advanced search  

News:

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

Pages: [1] 2   Go Down

Author Topic: phpMyAdmin plugin for cpg1.5.x not working  (Read 9666 times)

0 Members and 1 Guest are viewing this topic.

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1290
phpMyAdmin plugin for cpg1.5.x not working
« 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.
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1325
  • Fishing relaxes me.
    • Bailey Family Co.
Re: phpMyAdmin plugin for cpg1.5.x not working
« Reply #1 on: August 22, 2012, 08:31:42 PM »

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

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1290
Re: phpMyAdmin plugin for cpg1.5.x not working
« Reply #2 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
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1325
  • Fishing relaxes me.
    • Bailey Family Co.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1290
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1325
  • Fishing relaxes me.
    • Bailey Family Co.
Re: phpMyAdmin plugin for cpg1.5.x not working
« Reply #5 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.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1290
Re: phpMyAdmin plugin for cpg1.5.x not working
« Reply #6 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();
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1325
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Re: phpMyAdmin plugin for cpg1.5.x not working
« Reply #7 on: August 25, 2012, 08:44:34 AM »

Rename it from index.php.txt to index.php first.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1290
Re: phpMyAdmin plugin for cpg1.5.x not working
« Reply #8 on: August 25, 2012, 11:58:32 AM »

I did renamed it
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1325
  • Fishing relaxes me.
    • Bailey Family Co.
Re: phpMyAdmin plugin for cpg1.5.x not working
« Reply #9 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?
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1290
Re: phpMyAdmin plugin for cpg1.5.x not working
« Reply #10 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
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1498
  • aka 'i-imagine'
    • Home Page
Re: phpMyAdmin plugin for cpg1.5.x not working
« Reply #11 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:
  • 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

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1290
Re: phpMyAdmin plugin for cpg1.5.x not working
« Reply #12 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.
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1325
  • Fishing relaxes me.
    • Bailey Family Co.
Re: phpMyAdmin plugin for cpg1.5.x not working
« Reply #13 on: August 28, 2012, 03:23:00 PM »

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

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1290
Re: phpMyAdmin plugin for cpg1.5.x not working
« Reply #14 on: August 28, 2012, 04:34:44 PM »

done
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1325
  • Fishing relaxes me.
    • Bailey Family Co.
Re: phpMyAdmin plugin for cpg1.5.x not working
« Reply #15 on: August 28, 2012, 05:09:19 PM »

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

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1290
Re: phpMyAdmin plugin for cpg1.5.x not working
« Reply #16 on: August 28, 2012, 05:21:46 PM »

when I click the phpmyadmin button I get a blank page
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1325
  • Fishing relaxes me.
    • Bailey Family Co.
Re: phpMyAdmin plugin for cpg1.5.x not working
« Reply #17 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
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1290
Re: phpMyAdmin plugin for cpg1.5.x not working
« Reply #18 on: August 28, 2012, 06:03:53 PM »

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

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1325
  • Fishing relaxes me.
    • Bailey Family Co.
Re: phpMyAdmin plugin for cpg1.5.x not working
« Reply #19 on: August 28, 2012, 06:05:15 PM »

did you try the link?
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford
Pages: [1] 2   Go Up
 

Page created in 0.079 seconds with 20 queries.