Advanced search  

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]

Pages: [1] 2   Go Down

Author Topic: CPG 1.2.0 blank index page after install  (Read 20644 times)

0 Members and 1 Guest are viewing this topic.

ras1

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
CPG 1.2.0 blank index page after install
« on: November 16, 2003, 10:35:32 pm »

Everytime I install 1.2, it installs with no problems. but when I am finished with the install and click continue, it goes to the index.php page which is blank. I don't understand why this page is blank. If I use the index.php page from 1.1 It shows up, but other stuff stops working. This also happens if I try to upgrade from 1.1 . I just get  a blank page, no errors, nothing in the logs.

thanks in advance for you time,

--ras1
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
CPG 1.2.0 blank index page after install
« Reply #1 on: November 17, 2003, 12:09:16 am »

check phpinfo() and see if you have the mysql-module in PHP (the question is not wether you have mySQL; it's wether PHP "knows" you have it). Most often this happens if people are self-hosted, so this is mainly a server config issue.
Please report (i.e. copy'n paste the relevant part of phpinfo into your posting) if this doesn't apply for you.

Apart from that: check the faq: give us more information on your server, a link might be helpful as well.

GauGau
Logged

ras1

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
CPG 1.2.0 blank index page after install
« Reply #2 on: November 17, 2003, 02:16:13 am »

well I seems as though i don't have the mysql module. This must have changed from version 1.1 though because that one runs fine. Do I need to get this module for apache? Not really sure where to go from here. thanks again for your time.

Loaded Modules         core prefork http_core mod_so sapi_apache2 mod_ssl mod_access mod_auth mod_auth_anon mod_auth_dbm mod_auth_digest mod_include mod_log_config mod_env mod_mime_magic mod_cern_meta mod_expires mod_headers mod_usertrack mod_unique_id mod_setenvif mod_mime mod_dav mod_status mod_autoindex mod_asis mod_info mod_cgi mod_dav_fs mod_vhost_alias mod_negotiation mod_dir mod_imap mod_actions mod_speling mod_userdir mod_alias mod_rewrite mod_proxy proxy_ftp proxy_http proxy_connect mod_deflate


--ras1
Logged

ras1

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
CPG 1.2.0 blank index page after install
« Reply #3 on: November 17, 2003, 03:16:16 am »

Well I removed the flush(); stuff from the index.php after finding the following link and things seem to be working now. I am using fedora core 1, but I was getting the same results on redhat 8. I am not really a programmer so I don't know why this messes things up..

http://forum.coppermine-gallery.net/index.php?topic=742&highlight=blank

--ras1
Logged

ras1

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
CPG 1.2.0 blank index page after install
« Reply #4 on: November 17, 2003, 03:32:07 am »

Well it fixed the blank index page, but when I try to batch-add pics now it goes blank again

--ras
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
CPG 1.2.0 blank index page after install
« Reply #5 on: November 17, 2003, 08:10:19 am »

I'm not a linux specialist, but to get the mySQL module you'll probably have to re-build your php (or get a pre-configured package).

GauGau
Logged

ras1

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
CPG 1.2.0 blank index page after install
« Reply #6 on: November 17, 2003, 09:44:54 am »

This seems more like a problem with coppermine. Version 1.1 works fine and  my php knows about mysql. I have other apps that are using php/mysql with no problems (phpnuke, mambo open source).

From phpinfo:

Configure Command          './configure' '--host=i386-redhat-linux' '--build=i386-redhat-linux' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' ed'
--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr'

<snip>

additional .ini files parsed         /etc/php.d/imap.ini, /etc/php.d/mysql.ini, /etc/php.d/snmp.ini

mysql
MySQL Support        enabled
Active Persistent Links         0
Active Links         0
Client API version         3.23.58
MYSQL_MODULE_TYPE         external
MYSQL_SOCKET         /var/lib/mysql/mysql.sock
MYSQL_INCLUDE         -I/usr/include/mysql
MYSQL_LIBS         -L/usr/lib/mysql -lmysqlclient

Directive        Local Value        Master Value
mysql.allow_persistent        On        On
mysql.connect_timeout        60        60
mysql.default_host        no value        no value
mysql.default_password        no value        no value
mysql.default_port        no value        no value
mysql.default_socket        no value        no value
mysql.default_user        no value        no value
mysql.max_links        Unlimited        Unlimited
mysql.max_persistent        Unlimited        Unlimited
mysql.trace_mode        Off        Off

Not sure what changed so drastically in version 1.2 but something indeed seems broken.

--ras1
Logged

ras1

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
CPG 1.2.0 blank index page after install
« Reply #7 on: November 17, 2003, 10:21:17 am »

I don't know what flush() does, but that is what is screwing everything up. I had to comment that out on index.php, searchnew.php, and editpics.php. Things seem to working now. I really like coppermine and don't mind having to edit these files in order to use it, I am just curious what the "flush()" actually does. Thanks again for your help and your time.

--ras1
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
CPG 1.2.0 blank index page after install
« Reply #8 on: November 17, 2003, 08:58:10 pm »

Logged

ras1

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
CPG 1.2.0 blank index page after install
« Reply #9 on: November 17, 2003, 09:31:52 pm »

From the link you posted:

 jthome at fcgov dot com
23-Jul-2003 11:52
This may not be obvious from the previous posts.

You must flush all HTML up to and including the <body> tag (<head>, <meta>, etc.), or the browser won't respond.  This would have the effect of "blanking" the page while waiting for the script to complete.  This is in addition to the other tips posted.

Most users expect something immediate to happen when they click on a link.  "Blanking" the page is often times better for those not accustomed to keeping an eye on their browser's progress bar.

<snip>

seems like this is why the pages are blanking.

--ras1
Logged

ras1

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
CPG 1.2.0 blank index page after install
« Reply #10 on: November 19, 2003, 01:40:19 pm »

I apologize. This was indeed a server configuration problem. However it didn't have anything to do with mod_mysql. I was using mod_deflate (replaces mod_gzip) with apache2, and the php ()flush funciton does not like that. I fixed the problem by disabling mod_deflate for *.php. Hopefully this will help others that get this blank page without any errors... Thanks again for your time, and keep up the great work on Coppermine!!

--ras
Logged

jg

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
install.php blank after 'Let's Go'
« Reply #11 on: November 21, 2003, 05:23:17 pm »

I've checked the install guide and did what I could, seems like the install.php doesn't do much right after I click ok, and have filled out the information.  I am not sure if its a server config issue, or a coppermine issue.

I have created a info.php and you can browse to it at:

http://216.221.58.237/info.php

Running on RedHat 9, I've also installed mySQL versions:

MySQL-server-4.0.16-0.i386.rpm
MySQL-client-4.0.16-0.i386.rpm


How can I debug what is going on, i've alreayd created a mySQL DB and users, but im not sure what is the next step to debug the problem..
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
CPG 1.2.0 blank index page after install
« Reply #12 on: November 22, 2003, 11:58:41 am »

I moved your posting to the thread that deals with this issue, please read it carefully.

GauGau
Logged

ras1

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
CPG 1.2.0 blank index page after install
« Reply #13 on: November 22, 2003, 10:09:12 pm »

It might help if you give him a link to the thread eh?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
CPG 1.2.0 blank index page after install
« Reply #14 on: November 23, 2003, 02:20:09 am »

Quote from: "ras1"
It might help if you give him a link to the thread eh?
Why should I? You are within the very thread I was refering to (that's what I was trying to say), but if you desperately need a link, try this one: http://forum.coppermine-gallery.net/index.php?topic=1642  :wink:

GauGau
Logged

ras1

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
CPG 1.2.0 blank index page after install
« Reply #15 on: November 23, 2003, 12:20:58 pm »

heh you pretty funny you know.

Sorry if I don't understand what you are doing with this thread. I have other things to work on, such as figuring out why coppermine 1.2 broke after the upgrade. It is clearly a problem with the new ()flush stuff that was added, and has nothing to do with php/mysql. Even though I told you 1.1 worked fine, you still thought it was a php/mysql problem. So in the future if users have any problems maybe you could point them in the right direction (this thread), instead of just saying that it's a server configuration problem.

Even better yet, maybe add some usefull logging error  in the next release so  people don't have such a hard time troubleshooting the problem. Just some thoughts...

--ras
Logged

jg

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
install.php - blank with no errors
« Reply #16 on: November 23, 2003, 06:53:09 pm »

To help other people who might get into the same problem, this is what happened.

I have to ensure the php-mysql module was install and that all its dependcies was installed..   including the mysql version its for, etc. etc.

SO after I installed and reinstall all the recessary components, I managed to get the installer to go ahead and continue..

It was a little more painfull then I thought, but since it is the Linux world I kind of expected it.. But, it would have been nice to have a little more documentation..
[/img][/php]
Logged

kammermark

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Newbie... Install.php produces a blank page
« Reply #17 on: December 05, 2003, 04:28:45 pm »

Hello,

after pressing the "lets go!" button all i get is a blank page with the banner "Coppermine Photo Gallery".

the "gallery" is http://akaflieg.extern.tu-berlin.de:42003/cpg1.2.0_final/install.php
the phpinfo is http://akaflieg.extern.tu-berlin.de:42003/info.php

...
yes, i read the threads about the blank page, but there is no "flush()" used in install.php and php and mysql work properly together (phpmyadmin has no problems).
Can you help me?

Konstantin Gründger
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
CPG 1.2.0 blank index page after install
« Reply #18 on: December 05, 2003, 10:09:36 pm »

when clicking on let's go you're supposed to be redirected to the "regular" coppermine index.php page - and there is a flush there.
Your server isn't configured properly: if you try to go to http://akaflieg.extern.tu-berlin.de:42003/cpg1.2.0_final/ you're not presented with the index.php, but see the folder listing. I guess this could be a server setup issue - you're probably self-hosted.
When clicking on http://akaflieg.extern.tu-berlin.de:42003/cpg1.2.0_final/index.php you get
Quote
Fatal error: Failed opening required 'include/config.inc.php' (include_path='.:/usr/share/pear') in /var/www/cpg1.2.0_final/include/init.inc.php on line 135
(this hints again on wrong server setup) - you have set up your include path incorrectly.

GauGau
Logged

christo

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
CPG 1.2.0 blank index page after install
« Reply #19 on: December 11, 2003, 08:43:20 pm »

I am getting the same error and problems. I am self hosting.

Surely after you click the "lets go" button the install.php file should write the include/config.inc.php file. It is NOT doing this - have set the permissions to 777 etc. but still no joy.  :cry:  :cry:  :cry:
Logged
Pages: [1] 2   Go Up
 

Page created in 0.026 seconds with 18 queries.