Home | Support Forums | Your Account | Gallery [2] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

Another BLANK PAGE SOLUTION!
Goto page Previous  1, 2, 3, 4, 5
 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Author Message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6261
Location: Washington Township, NJ, USA

PostPosted: Wed May 17, 2006 8:26 am    Post subject: Re: Another BLANK PAGE SOLUTION! Reply with quote

make sure that you've got the proper URLs in your integration settings, and that yuo've already installed and configured gallery2
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
AdBot
   Post subject: Re: Another BLANK PAGE SOLUTION!  

Back to top
LudovR

Beginner
Beginner


Joined: Jun 14, 2006
Posts: 3
Location: Piacenza, Italy

PostPosted: Wed Jun 14, 2006 12:18 pm    Post subject: Re: Another BLANK PAGE SOLUTION! Reply with quote

Hi,
I have just downloaded and installed the Integration package, version 0.5.12.
There seems to be a
Code: › include("header.php");

statement missing in /index.php, at the very bottom of the file, before
Code: › OpenTable();
.
I was getting a blank page until I added it, now runs all ok.
Hope this helps debugging the script, check it out.

Bye,
Ludo
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6261
Location: Washington Township, NJ, USA

PostPosted: Wed Jun 14, 2006 12:20 pm    Post subject: Re: Another BLANK PAGE SOLUTION! Reply with quote

actually, that call is there:
PHP: › <?php if ($fd fopen("header.php""r")) {
        while (!
feof($fd)) {
            
$line fgets($fd1024);
            
$line str_replace('<?php'''$line);
            
$line str_replace(' ?>'''$line);
            
$line preg_replace('/(@?)include\("includes\/javascript.php"\)\;/','',$line);
            if(
defined('NUKE_EVO')) {
                
$evo_version explode('.',NUKE_EVO);
                if(
intval($evo_version[0]) >= 1) {
                    
$line str_replace("require_once(dirname(__FILE__).'/mainfile.php');","require_once('mainfile.php');",$line);
                }
            }
            
$header .= $line;
            if (
strstr($line"<head")) {
                foreach(
$css as $stylesheet) {
                    
$links $stylesheet;
                    
$links str_replace('"''\"'$links);
                    
$header .= 'echo "' $links'\n";' "\n";
                }
                foreach(
$javascript as $script) {
                    
$scriptline $script;
                    
$scriptline str_replace('"','\"',$scriptline);
                    
$header .= 'echo "' $scriptline'\n";'."\n";
                }
            }
        }
    }
    eval(
$header); ?>


this inserts g2 css into the phpnuke header.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
LudovR

Beginner
Beginner


Joined: Jun 14, 2006
Posts: 3
Location: Piacenza, Italy

PostPosted: Wed Jun 14, 2006 12:33 pm    Post subject: Re: Another BLANK PAGE SOLUTION! Reply with quote

I was just wondering why in PHP-Nuke integration G2 styles were rendering so bad (better, not rendering at all) ! Very Happy Very Happy Thought it was because of our hard-modding of Nuke...
Do you have an idea of the reason why that piece of code doesn't work in my site, and returns a blank page? Maybe because of 3.2 Nuke Patch? All the G2 and the Integration seem correctly installed, settings and writing to DB too...

Thanks,
Ludo
Back to top
Offline View user's profile Send private message
LudovR

Beginner
Beginner


Joined: Jun 14, 2006
Posts: 3
Location: Piacenza, Italy

PostPosted: Wed Jun 14, 2006 1:21 pm    Post subject: Re: Another BLANK PAGE SOLUTION! Reply with quote

Solved! Very Happy
Integration script didn't like very much our modding of header.php, particularly the use of the dot to concatenate echoed <head> strings. Very Happy
Switched back to one echo statement per line, and the G2 styling is back without blank pages! Cool

Bye,
Ludo
Back to top
Offline View user's profile Send private message
schattenz

Beginner
Beginner


Joined: Jul 22, 2006
Posts: 4

PostPosted: Sun Jul 23, 2006 12:30 am    Post subject: Re: Another BLANK PAGE SOLUTION! Reply with quote

3rdRRAdmin wrote: › There's a bug in the latest index.php from the Integration package...

Line 230 reads:
Code: › $line = str_replace('include("includes/javascript.php");', '',$line);


When it should really be:
Code: › $line = str_replace('@include("includes/javascript.php");', '',$line);


The replace was leaving an extra '@' in the $header variable being eval()'d, and causing the following error in PHP:

PHP Parse error: parse error, unexpected T_IF in /home/BLAH/public_html/BLAH/modules/gallery2/index.php(246) : eval()'d code on line 42

Helps having access to the Apache error_log Twisted Evil


My line 230 is not same as this line.
Back to top
Offline View user's profile Send private message
fn_keith

Beginner
Beginner


Joined: Apr 09, 2006
Posts: 12

PostPosted: Tue Aug 15, 2006 8:41 pm    Post subject: Re: Another BLANK PAGE SOLUTION! Reply with quote

Another cause that can produce a blank page is either Apache or MySQL have maxed out on resources and or experiencing some sort of problem. Rebooting the server or restarting mysql and or httpd can resolve this issue. If your web host refuses to reboot either service (MySQL or Apache), I suggest finding a different web host.
Back to top
Offline View user's profile Send private message Visit poster's website
angelkiller

Beginner
Beginner


Joined: Jan 28, 2007
Posts: 1

PostPosted: Mon Jan 29, 2007 5:19 pm    Post subject: Re: Another BLANK PAGE SOLUTION! Reply with quote

OMG sticky this.. as everyone seems to be suffering this problem to.. If you add a php.ini file to your gallery 2 folder to set memory to 16mb not 8mb.. then you have to have it in the nuke root folder.. as well.. Wink
Back to top
Offline View user's profile Send private message
ohiodarter

Beginner
Beginner


Joined: Dec 19, 2004
Posts: 1

PostPosted: Mon Feb 19, 2007 8:02 pm    Post subject: Re: Another BLANK PAGE SOLUTION! Reply with quote

charliewong wrote: ›
dsrains wrote: › Thank you very much. That fixed my problem.

I used WSFTP Pro to ftp the files to my webhost. Why would it not copy that file?


Maybe this is the issue. When I installed the standalone gallery, I installed it in the root of my web directory ( /gallery2 ) but when I used the integration package, I put it in /modules/gallery2. Does my gallery need to be in /modules? To I have to just move the files or do I need to reinstall?


This seems to be what A LOT of people would have, as these are the defaults. Yet nobody has replied to this yet. I would love to see the answer to this, as I am near moving on myself - 40+ Nuke sites and never had an addon aggravate me this much. Anybody know if this could be what is causing us problems? TIA.
Back to top
Offline View user's profile Send private message
fornve

Beginner
Beginner


Joined: Nov 12, 2007
Posts: 1

PostPosted: Mon Nov 12, 2007 10:39 am    Post subject: Re: Another BLANK PAGE SOLUTION! Reply with quote

Where is embed.php from package phpnuke_063.zip

required in modules/gallery2/admin.php function check_g2configerror($embedphpfile, $vars=NULL)

require_once ('modules/'.$module_name.'/embed.php');

?[/i]
Back to top
Offline View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Goto page Previous  1, 2, 3, 4, 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSearch Engine OptimisationSearch Engine OptimizationWeb Design New YorkSEO Web DesignWeb hosting AustraliaSEO

6th year online! 2003-2008
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia