1 mel_t Nov 06, 2011 02:01
3 sam2kb Nov 16, 2011 05:09
This is a bug
b2evolution v4 and older should support PHP 4.3
4 ramadama Nov 20, 2011 03:30
I have the same problem as mel_t, upgrading from 4.05 to 4.1.2
my server runs php 4.4.9 and the .htaccess-fix as suggested by jensscholz doesn't do the job.
what do i have to do? downgrade again? if so, how would i do that?
by the way, @jensscholz: for parsing in php5, 1&1 suggests more or less the same fix as you do, with the little difference in the second line (don't know, if this is relevant). it reads:
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
5 sam2kb Nov 20, 2011 14:54
Talk to your hosting support. PHP4 is very old and obsolete for long time already.
6 sam2kb Nov 20, 2011 16:43
Will be fixed in 4.1.3
7 ramadama Nov 20, 2011 19:15
nice idea to 'talk' to one of the biggest hosting companies in Germany about their outdated php-version.
wanted close this here from my side, confirming that in the end the .htaccess-fix worked. earlier it tried in the wrong directory
now i successfully upgraded to 4.1.2 - thanks
8 fredsy Dec 03, 2011 11:53
I am having the same problem, only my web host is using 5.3.8 php.
My error log shows:
Fatal error: Class 'Messages' not found in /home/etc/install/index.php on line 43
I'm trying to upgrade from 3.3.2 to the latest version 4.1.2
I added the above x-map stuff to htaccess, but am getting an awful lot of errors on my install page:
http://www.puppetsinmelbourne.com.au/install/index.php
Can someone please help?
Thanks!
9 sam2kb Dec 03, 2011 15:34
@na3
Your error is different. Just make sure you uploaded ALL files. Also check FTP transfer mode, should be [u]binary[/u]
10 fredsy Dec 03, 2011 16:24
Thanks Sam2kb! I recently updated my FTP program and didn't realise it changed the settings. Once I made it use binary, and re-uploaded the files, it worked fine.
11 rayhayes Dec 14, 2011 09:00
Fatal error: Call to undefined function: array_combine() in /****/public_html/blogs/inc/locales/_locale.funcs.php on line 663
Did we lose the compatibility with PHP 4? From what I can tell from looking up array_combine it's only on PHP 5. I'm running PHP 4.3.8.
Thanks
Ray
12 sam2kb Dec 14, 2011 16:33
It's already fixed in 4.1.3
Add this to the end of /inc/_core/_misc.funcs.php
if( ! function_exists('array_combine') )
{
// Floats are casted to strings to avoid overwriting
function array_combine( $arr1, $arr2 )
{
$out = array();
$arr1 = array_values($arr1);
$arr2 = array_values($arr2);
foreach( $arr1 as $key1 => $value1 )
{
$out[(string)$value1] = $arr2[$key1];
}
return $out;
}
}
13 rayhayes Dec 18, 2011 06:51
Thanks sam2kb. That fixed that problem but it's crashing in another unrelated area. I've taken the blog down for now and I'll wait for the next version or another viable alternative.
Ray
14 sam2kb Dec 18, 2011 07:27
Replace the function at line 1313 in /inc/_core/db/_upgrade.funcs.php with this
function is_in_quote( $subject, $needle )
{
$length = strpos( $subject, $needle );
if( $length === false )
{ // needle is not in the subject
return false;
}
$quote_count = substr_count( substr($subject, 0, $length), "'" );
if( $quote_count > 0 )
{
$quote_count = $quote_count - substr_count( substr($subject, 0, $length), "\'" );
}
return ( $quote_count % 2 );
}
Please post the errors you get here
Hi,
if that's an error because of your server not supporting php5 try adding these 2 lines
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 -php
in your htaccess file. That will fix it.
Cheers.