Kaltura CE 2.x not compatible with PHP 5.3

Project:Kaltura Community Edition (CE) - Self Hosted Online Video Platform
Version:api_v3
Component:Code
Category:bug report
Priority:critical
Assigned:Ehud
Status:closed
Description

PHP 5.3 imposes a few changes and deprecates a few APIs.
To make Kaltura CE compatible on PHP 5.3 the following changes have to be made:
Check code according to php.net migration manual (http://www.PHP.net/manual/en/migration53.php)
Run the Zend 5.2 to 5.3 migration script by Stas Malyshev (http://devzone.zend.com/article/11701-5.2-to-5.3-migration)

The complete run-down:

  • split -> explode (for regular split), preg_split (for regex split)
  • set_magic_quotes_runtime(value) -> ini_set("magic_quotes_runtime", value)
  • ereg('xxx') -> preg_match('/xxx/')
  • eregi('xxx') -> preg_match('/xxx/i')
  • session_unregister -> removed
  • wrap all text values in ini files with double quotes (emails_en.ini)
  • remove bad constructor call (number of variables in the function call do not match the function declaration)

Attached (KalturaCE-PHP5.3-Patch.tgz) is a patch including instructions to make Kaltura CE 2.0.2 compatible with PHP 5.3.

Please try it and report back any issues or updates.

AttachmentSize
KalturaCE-PHP5.3-Patch1.tgz203.63 KB

Comments

#1

Status:active» patch (ready to be committed)

#2

Version:api_v3» api_v3
Assigned to:Anonymous» Ehud
Status:patch (ready to be committed)» fixed

#3

I can't download the attached patch file - getting a 404 error

#4

Depending on how you have applied the patch you might have overwritten some file permissions and owners.
Therefor you need to change them back with chmod and chown be sure to use the recursive switch on both commands

Install Howto
!!!!!!THIS MIGHT DESTROY YOUR INSTALLATION OF KALTURA SO BE SURE TO BACKUP!!!!!!

If you have not installed Kaltura CE into /opt/kaltura please change accordingly

cd /opt/
cp -R kaltura kaltura_bak
cd kaltura/
wget http ://www.kaltura.org/sites/default/files/issues/KalturaCE-PHP5.3-Patch1.tgz
-- REMOVE space between http and :// --
tar --overwrite -xvzf KalturaCE-PHP5.3-Patch1.tgz
READ the readme.txt
nano readme.txt
rm readme.txt
cd app/batch/batches/Mailer/
cp ../../../../wrapquotes.php ./
cp emails_en.ini emails_en.ini_org
php wrapquotes.php
mv new-emails_en.ini emails_en.ini
cd /opt/kaltura/
chown root:root -R app/
chmod 775 -r app/
/etc/init.d/apache2 restart

#5

is this patch only accessible to some people with certain access associated to their username?
I'm still being sent to a 404 error page when I click the patch link:

http://www.kaltura.org/sites/default/files/KalturaCE-PHP5.3-Patch1.tgz

thanks

#6

#7

thanks for the update and notes..

I am new to kalturaCE and also linux..
I attempted to install kalturaCE and got to the point where I was warned about not having PHP 5.2 installed...
I could not complete the install and so thought maybe I needed to install the patch first.

When I followed your notes on how to install the patch I got up to the line:
php wrapquotes.php

and after running that command I received the following notifications:

PHP Warning: fopen(emails_en.ini): failed to open stream: No such file or directory in /opt/kaltura/app/batch/batches/Mailer/wrapquotes.php on line 11
PHP Notice: Undefined variable: iIniFile in /opt/kaltura/app/batch/batches/Mailer/wrapquotes.php on line 11
Please validate the script can access the filenick@ubuntu:/opt/kaltura/app/batch/batches/Mailer$

Do you know what I might need to to do get the patch to install?

thanks

#8

To install Kaltura CE with PHP > 5.2.0 you need to edit the requirements of the installer.

Go to your local Kaltura CE installation dir and follow these steps

nano config/prerequisites.php

Edit the line with

'php' => array('<', '5.2.0'),

to

'php' => array('<', '5.6.0'),

All done

@ tunist first delete the old install folder and than extract it new so you can be sure not to have changed something you didn't want to :-)

#9

Ah thanks for the tip :)

I have installed the main app now and logged in to the admin console. :)

However, I then logged out and came to run the beta patch for PHP5.3 and received similar error messages to before when running the command: php wrapquotes.php

PHP Warning:  fopen(emails_en.ini): failed to open stream: No such file or directory in /opt/kaltura/app/batch/batches/Mailer/wrapquotes.php on line 11
PHP Notice:  Undefined variable: iIniFile in /opt/kaltura/app/batch/batches/Mailer/wrapquotes.php on line 11
Please validate the script can access the  filenick@ubuntu:/opt/kaltura/app/batch/batches/Mailer$

Please note that I have only just set the server up for the first time and have not yet tested the email server other than through this installation.

cheers

#10

@tunist This error doesn't have anything with an email server. The wrapquotes.php script only opens the emails_en.ini file and enclose all the values with double quotes.

The error say it can't access the emails_en.ini file. Did you ran the script with user that can access the emails_en.ini file?

#11

Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#12

The financial institutions will deliver the bailiffs contacting, and such learners will be more likely to reduce individual and family belongings to aggressive and badly controlled economical industry. centrebet free bet

#15

I have a presentation next week, and I am on the look for such information. CPA miami

#16

Buddhism understands of that from the perspective of ego the opportunities of lack of way of life is generally difficult. vehicle history report

#17

User friendly catalogues that comply with corporate purchasing policies within the system can be a difficult task. buy products here

#18

Depending on how you have applied the patch you might have overwritten some file permissions and owners. blog comments

#19

Thanks combination of suitable and useful information and well-written sentences that will certainly entice your sense. florida movers

#20

There an award for that? I don’t know that. But, if there is, this article deserves it the most. Keep the sensational work going. hack clash of clans

#21

I must say that a succesful family owned business in this day and age is a very refreshing sight! As well as this is a very refreshing site! clash of clans cheats

#22

Buddhism understands of that from the perspective of ego the opportunities of lack of way of life is generally difficult remove google penalty

#23

Hats off to you in this new role. May you be a role model for all your Juniors.Well done. boca raton cpa

#24

That statement is very true. Social media is awesome machine to communicate with customers! BHW conference in UK

#25

Many years and hence, it is the most important thing that you can have and value for the rest of your life. SEO conference in london

#26

Thanks Paul - will you please share more details on which prerequisite it was? candy saga crush hack

#27

Thanks combination of suitable and useful information and well-written sentences that will certainly entice your sense. cheap cigrates

#28

I must say, I thought this was a pretty interesting read when it comes to this topic. Liked the material. . . . .
girlsdoporn

#29

But in trying to figure out which foods cause eczema, there are a few more in this category that may merit your attention. These include processed foods that contain milk, such as certain salad dressings, pasteries and snacks. If the condition is recent (within 24 hours) a good rule of thumb is to go through what you ate the day earlier and narrow the possibilities down. girlsdoporn

#30

I have been looking into from last days and your insight is extremely useful. Thanks for sharing this information. bubblegum casting

#31

But in trying to figure out which foods cause eczema, there are a few more in this category that may merit your attention. These include processed foods that contain milk, such as certain salad dressings, pasteries and snacks. If the condition is recent (within 24 hours) a good rule of thumb is to go through what you ate the day earlier and narrow the possibilities down. serrurerie paris

#32

Please someone offer some insight into what URL I can pass to the player to make it play auto-select-flavor ad content. best juicer on the market

#33

I can pass to the player to make it play auto-select-flavor ad content. best juicer on the market

#34

The valuable information you have. Keep up the good work you are doing here http://www.bocacpa.com

#35

There an award for that? I don’t know that. But, if there is, this article deserves it the most. Keep the sensational work going candy hack

#36

Thanks a million and please keep up the gratifying work.I was very encouraged to find this site. I am sure to all the commenters. candy crush saga hacking tool

#37

The heavy investments required to recover precious metals from e-waste processing deter companies from enter this market. hack soda saga

#38

Unless they are approved and on topic. http://www.candycrushsodasagahack.com

#39

You might leak it’s invaluable. Your blog hypothesis shall maximize your linkers. candy crush saga hacking tool

#40

I am always searching online for articles that can help me. There is obviously a lot to know about this. I think you made some good points in Features also. Keep working, great job!
girlsdoporn

#41

Keep working, great job! CPA Boca Raton

#42

It is continuing to grow and develop and new platforms are coming up everyday. candy crush hack

#43

Like network infrastructure management to cater to firms to deliver high value tasks. http://helpingyourhildcopewith.jimdo.com/

#44

The key to their success for many years and hence, it is the most important thing that you can have and value for the rest of your life. online movies

#45

You can save your time. In addition, you wil get big discount if you buy in bulk when you are shopping online.. hollywood movies

#46

A thing private, distinctive, or perhaps careful. While selecting a factor. http://www.candycrusher.com

#47

I check your website everyday and attempt to learn something from a blog. Thank you and looking forward to your new submit. trading forex