Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > MISCELLANEOUS > Archives > Bug Report 1.4.x

Post Reply
 
Thread Tools
  #1  
Old 09-16-2005, 06:24 AM
Belgarion Offline
forum loafer
 
Join Date: Sep 2005
Posts: 2
PHP5 does not work with pp1.4.2

PHP5 and Pixelpost 1.4.2 does not work (atleast not for me)

At first i just got a blank firstpage, the error.txt that is generated by php didn't show up yesterday so i didn't know what was wrong, today i found error.txt and it says
Quote:
[15-Sep-2005 18:55:45] PHP Fatal error: Only variables can be passed by reference in index.php on line 797
I temporarily "fixed" it by uncommenting the whole "suck in addons" thing, just so i could actually see how pixelpost looked, but i still get the same error when pp tries to generate thumbnails.
Quote:
[16-Sep-2005 08:17:07] PHP Notice: Use of undefined constant IMAGE_BASE - assumed 'IMAGE_BASE' in pixelpost\includes\functions.php on line 51
[16-Sep-2005 08:17:07] PHP Fatal error: Only variables can be passed by reference in pixelpost\includes\functions.php on line 54
Also the addons page is empty
Quote:
[16-Sep-2005 08:20:02] PHP Notice: Undefined index: x in \admin\index.php on line 135
[16-Sep-2005 08:20:02] PHP Notice: Undefined index: x in \includes\12cropimageincscripts.php on line 30
[16-Sep-2005 08:20:02] PHP Notice: Undefined variable: login in \admin\index.php on line 197
[16-Sep-2005 08:20:02] PHP Fatal error: Only variables can be passed by reference in \admin\index.php on line 524
http://blog.belgarion.com/pixelpost/index.php
Quote:
You are running version 1.4.2 of Pixelpost. Released 18 July 2005.
Host Information
PHP-version 5.0.5 (Pixelpost's min requirement: PHP version 4.3.0)
MySQL version 4.1.14-nt (Pixelpost's min requirement: MySQL 3.23.58)
GD-lib bundled (2.0.28 compatible) with JPEG support
Server software Apache/2.0.52
EXIF Pixelpost is using exifer v1.5 for EXIF information.
Paths
Guessed imagepath: C:/Inetpub/wwwroot/blog.belgarion.com//pixelpost/images/
Configured Imagepath C:/Inetpub/wwwroot/blog.belgarion.com//pixelpost/images/
Image Directory: OK - Can we write to the directory? YES.
Thumbnails Directory: OK - Can we write to the directory? YES.
Language Directory: OK
Addons Directory: OK
Includes Directory: OK
Templates Directory: OK
lots of quotes sorry, maybe this should have been posted in the bug forum but i suspect i might have configured something wrong
Reply With Quote
  #2  
Old 09-16-2005, 07:02 AM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
1) read
http://bugs.php.net/bug.php?id=33643

2) some solution
modify the code in index.php 793-804 from
PHP Code:
$dir "addons/";
if(
$handle opendir($dir)) {
    while (
false !== ($file readdir($handle))) {
        if(
$file != "." && $file != "..") {
            
$ftype strtolower(end(explode('.'$file)));
            if(
$ftype == "php") {
                include(
$dir.$file);
                }
            }
        }
    
closedir($handle);
    } 
to
PHP Code:
$dir "addons/";
if(
$handle opendir($dir)) {
    while (
false !== ($file readdir($handle))) {
        if(
$file != "." && $file != "..") {
$file_exploded explode('.'$file);
$file_ext end($file_exploded);
            
$ftype strtolower($file_ext);
            if(
$ftype == "php") {
                include(
$dir.$file);
                }
            }
        }
    
closedir($handle);
    } 
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #3  
Old 09-16-2005, 07:05 AM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
and similary inside admin/index.php
change line 524 form
PHP Code:
$ftype strtolower(end(explode('.'$file))); 
to
PHP Code:
$file_exp explode('.'$file);
$file_ext end($file_exp);
$ftype strtolower($file_ext); 
@Dev
0) change this in CVS
1) move this to bugs forum.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #4  
Old 09-16-2005, 07:14 AM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
again for create thumbs
inside includes/functions.php replace
PHP Code:
$ext strtolower(end(explode('.'$image_path))); 
with
PHP Code:
    $image_path_exp explode('.'$image_path);
    
$image_path_end end($image_path_end);
    
$ext strtolower($image_path_end); 
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #5  
Old 09-16-2005, 08:06 AM
Belgarion Offline
forum loafer
 
Join Date: Sep 2005
Posts: 2
Thank you, that solved most of the problems. I still get undefined indexes but that's not important since the main functionality of the application is resolved. Again, thank you for helping
Reply With Quote
  #6  
Old 09-16-2005, 08:07 AM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
Try to turn of PHP notices in PHP.INI and problem will be solved
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #7  
Old 10-03-2005, 03:27 AM
HypeXR Offline
forum loafer
 
Join Date: Sep 2005
Posts: 7
I am having a similar problem. I just upgraded to PHP 5.0.5.
When index.php loads it is blank. And the sources loos like:

Quote:
<html><body></body></html>
I tried upgrading to Pixelpost 1.4.2 but this did not help.

After my upgrades I was getting the
Quote:
PHP Fatal error: Only variables can be passed by reference
error in admin/addons but I made the changes above and this problem is fixed.

All of my other php programs are working so I am not sure if this is a problem with my php upgrade or pixelpost.
php hasn't generated any errors from loading index.php so I do not have any to post.

Any help would be hugely appericated!
Reply With Quote
  #8  
Old 10-03-2005, 04:24 AM
blinking8s's Avatar
blinking8s+ Offline
über loafer
 
Join Date: Oct 2004
Location: Bowling Green, Ky
Posts: 3,428
Send a message via ICQ to blinking8s Send a message via AIM to blinking8s Send a message via MSN to blinking8s Send a message via Skype™ to blinking8s
ramin you want this moved to the bugs forum?
__________________
i should say more clever stuff
Reply With Quote
  #9  
Old 10-03-2005, 06:30 AM
HypeXR Offline
forum loafer
 
Join Date: Sep 2005
Posts: 7
I've just downgraded to the version of php that I was previously using and I am still haveing the same problem with a blank index.php page. Very strange.
Reply With Quote
  #10  
Old 10-03-2005, 07:03 AM
HypeXR Offline
forum loafer
 
Join Date: Sep 2005
Posts: 7
Downgrading my php to 5.0.4 (what I was using) and then reverting to my backup of pixelpost before I upgraded it or made the mods above got me back online.
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 06:55 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs