forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: ras1 on November 16, 2003, 10:35:32 pm

Title: CPG 1.2.0 blank index page after install
Post by: ras1 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
Title: CPG 1.2.0 blank index page after install
Post by: Joachim Müller 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
Title: CPG 1.2.0 blank index page after install
Post by: ras1 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
Title: CPG 1.2.0 blank index page after install
Post by: ras1 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
Title: CPG 1.2.0 blank index page after install
Post by: ras1 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
Title: CPG 1.2.0 blank index page after install
Post by: Joachim Müller 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
Title: CPG 1.2.0 blank index page after install
Post by: ras1 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
Title: CPG 1.2.0 blank index page after install
Post by: ras1 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
Title: CPG 1.2.0 blank index page after install
Post by: Joachim Müller on November 17, 2003, 08:58:10 pm
http://php.net/flush
Title: CPG 1.2.0 blank index page after install
Post by: ras1 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
Title: CPG 1.2.0 blank index page after install
Post by: ras1 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
Title: install.php blank after 'Let's Go'
Post by: jg 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..
Title: CPG 1.2.0 blank index page after install
Post by: Joachim Müller 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
Title: CPG 1.2.0 blank index page after install
Post by: ras1 on November 22, 2003, 10:09:12 pm
It might help if you give him a link to the thread eh?
Title: CPG 1.2.0 blank index page after install
Post by: Joachim Müller 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
Title: CPG 1.2.0 blank index page after install
Post by: ras1 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
Title: install.php - blank with no errors
Post by: jg 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]
Title: Newbie... Install.php produces a blank page
Post by: kammermark 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
Title: CPG 1.2.0 blank index page after install
Post by: Joachim Müller 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
Title: CPG 1.2.0 blank index page after install
Post by: christo 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:
Title: CPG 1.2.0 blank index page after install
Post by: kammermark on December 11, 2003, 11:18:13 pm
The problem was the configuration of php... Fixed the problem by changing following things in the "php.ini":

cgi.force_redirect = 0
cgi.redirect_status_env = 1
cgi.fix_pathinfo = 1

[found this hint somewhere in the space... no idea what it does...  :oops: ]
Title: CPG 1.2.0 blank index page after install
Post by: christo on December 12, 2003, 04:08:05 am
nah, thats made no difference at all

i am on redhat 9, php 4.2.2-17

if that helps anyone who can help.....
Title: CPG 1.2.0 blank index page after install
Post by: FM on January 06, 2004, 10:57:46 am
I just found the same problem when russian language is turned on for the gallery. The problem is that <meta http-euqiv="content-type" content="text/html; charset=..."> follows the title. When browser starts rendering gallery's html, it firsts finds that this html should conform to "transitional" standard, than it finds illegal characters in the title. Meta tag should be placed before the title tag to prevent this problem. Affected files: theme.php and template.html in every theme...

Problem may happen in other languages too, so it would be nice to fix it.

Problematic browser: MSIE 6.
Title: Fixed it !
Post by: christo on January 06, 2004, 03:49:02 pm
I got it all working by removing the apache and php rpms, and then recompiling from source adding in the required stuff.

These are the compile commands I used.....

Apache

./configure --prefix=/usr/local/apache --enable-rule=SHARED_CORE --enable-module=rewrite --enable-module=log_agent --enable-module=log_config --enable-module=log_referer --enable-module=so --enable-module=proxy --enable-module=usertrack --server-uid=web --server-gid=web

PHP

./configure --with-db --enable-dba --with-gdbm --with-xml --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql


This got it working straight away thanks to a friend of mine who keeps dumping stuff on my desk - cheers Dave !
Title: CPG 1.2.0 blank index page after install
Post by: DeadKenny on February 22, 2004, 02:26:31 am
Right, I'm also getting this problem with install.php just dumping me to a blank page with the logo (the HTML is actually incomplete).

I've looked around and there's plenty of posts about it and they all point here. I've checked my Apache & PHP configuration and it appears to be correctly configured with mySQL support. ImageMagick is installed fine, and other PHP apps work fine. I've tried the tips here with no success.

Everything is the stock versions straight out of Fedora Core 1 (aka RedHat 10), plus updates. I'd rather not re-build PHP or Apache, nor can I see a need to as it appears to have all the requirements. I think the suggestion that it's a server configuration issue when install.php doesn't redirect is wrong because if you look at the HTML it generates it hasn't even finished writing the end of the HTML!

So, something is up and no one's got an answer.

And this from a "stable" release.   :(

I just wanted to check out Coppermine to see if it's better than Gallery, but Gallery was far easier to install, even if it is a slow system to use.


I'm using CPG 1.2.1 standalone ("stable"), on Fedora Core 1 plus the following Fedora RPMs...
Apache 2.0.48-1.2
PHP 4.3.4.1-1
MySQL 3.23.58-4
ImageMagick is 5.5.6-5
Title: CPG 1.2.0 blank index page after install
Post by: Joachim Müller on February 22, 2004, 10:07:59 am
The strange thing is that this behaviour has so far only been reported by users running their own servers, afaik none of the people who are webhosted have encountered this problem. I'd still say it's server config...

Our decision to call the current release of coppermine "stable" comes from the fact that it's being used on thousands of web pages without problems - at least that's my definition for "stable". If it doesn't work for you, I'm sorry.

Anyway, if you're happier with (menalto) gallery: it's a fine product with great features as well. After all, you needed a photo gallery, and you finally found one that works for you what else could I say?

GauGau
Title: CPG 1.2.0 blank index page after install
Post by: DeadKenny on February 22, 2004, 03:15:42 pm
Quote from: "gaugau"

Anyway, if you're happier with (menalto) gallery: it's a fine product with great features as well. After all, you needed a photo gallery, and you finally found one that works for you what else could I say?


I wouldn't say I'm happier with it. It works, but doesn't have quite the same features and is too slow. That's why I want to check out Coppermine. I've seen sites using it and it seems to be pretty good.

Is there any kind of definitive instructions on server config anywhere? i.e. what exact components are required to be configured in Apache & PHP, and specific settings required in php.ini ?

The instructions mention things about servers not configured right and using 'chmod 0777', etc, but they don't mention *how* to configure the server right, only the workarounds. Though I don't think the chmod stuff is the problem as it's the same whether it's 0755 or 0777 permissions.


Surely there must be plenty of RedHat users out there that have set up Coppermine with the stock Apache & PHP? I've checked my PHP config again with phpinfo() and it seems to have everything you could possibly want configured, same with Apache. Certainly far more than you'd get with the default configurations.


Update: - Turns out it was the server after all!

I found this thread...

http://forum.coppermine-gallery.net/index.php?topic=612

and the solution was to install the 'php-mysql' RPM.

This despite the fact that phpinfo() reports mysql was installed, it turns out it wasn't. A "yum install php-mysql" followed by an apache restart got it working.

So a little instruction for Redhat/Fedora users is to install at least the following RPMs...

mysql
mysql-admin
php-mysql

(and any dependents it prompts for)