CPG 1.2.0 blank index page after install CPG 1.2.0 blank index page after install
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

CPG 1.2.0 blank index page after install

Started by ras1, November 16, 2003, 10:35:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ras1

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

Joachim Müller

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

ras1

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

ras1

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

ras1

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

--ras

Joachim Müller

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

ras1

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

ras1

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

Joachim Müller


ras1

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

ras1

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

jg

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

Joachim Müller

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

GauGau

ras1

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

Joachim Müller

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

ras1

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

jg

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]

kammermark

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

Joachim Müller

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
QuoteFatal 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

christo

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: