Deprecated Functions

More
13 years 3 weeks ago #401 by 1a-websolutions
Hello,

i have this PHP Error-Codes:

Deprecated: Function split() is deprecated in /home/xxxxx/public_html/administrator/components/com_oscommerce/includes/functions/html_output.php on line 38

and PHP-Error-Codes on the Website:

www.1a-easy-cms.ch

PHP-Version = 5.3.8

Best regards

Please Log in or Create an account to join the conversation.

More
13 years 3 weeks ago #403 by Simpel
Replied by Simpel on topic Re: Deprecated Functions
MarvikShop was not tested yet on PHP-version 5.3.8

But what you can do is:
Code:
$param_arr = split( '{SEP}', $param_str );

change into
Code:
$param_arr = preg_split( '{SEP}', $param_str );

hope this help

Please Log in or Create an account to join the conversation.

More
13 years 2 weeks ago - 13 years 2 weeks ago #404 by Simpel
Replied by Simpel on topic Re: Deprecated Functions
Maybe it's better to use explode. Because I got now problems with my own shop.

try:
Code:
$param_arr = split( '{SEP}', $param_str );

to
Code:
$param_arr = explode( '{SEP}', $param_str );

The function split() is deprecated in PHP 5.3 php 5.3
Last edit: 13 years 2 weeks ago by Simpel.

Please Log in or Create an account to join the conversation.

More
13 years 2 weeks ago - 13 years 2 weeks ago #405 by 1a-websolutions
Hello,

explode are the solutions for the Frontpage :-)

on the Startsite i have the Error-code

Warning: include(components/com_oscommerce/confignew.php) [function.include]: failed to open stream: No such file or directory

The File confignew.php are not in the Package/ Direction.

Warning: include(/home/easycms/public_html/components/com_oscommerce_personal/languages/english/modules/shipping/upsxml.php) [function.include]: failed to open stream: No such file or directory

A other deprecated Function:

Deprecated: Function ereg() is deprecated in /home/easycms/public_html/administrator/components/com_oscommerce/confignew.php on line 101

Deprecated: Function ereg() is deprecated in /home/easycms/public_html/administrator/components/com_oscommerce/modules.php on line 284

Deprecated: Assigning the return value of new by reference is deprecated in /home/easycms/public_html/components/com_oscommerce/includes/modules/payment/idealm.php on line 112

Deprecated: Assigning the return value of new by reference is deprecated in /home/easycms/public_html/components/com_oscommerce/includes/modules/payment/idealm.php on line 171

Deprecated: Assigning the return value of new by reference is deprecated in /home/easycms/public_html/components/com_oscommerce/includes/modules/payment/idealm.php on line 301


Best regards
Last edit: 13 years 2 weeks ago by 1a-websolutions.

Please Log in or Create an account to join the conversation.

More
13 years 2 weeks ago #406 by Simpel
Replied by Simpel on topic Re: Deprecated Functions
In the attachment I got 2 files.

confignew.php I got this file only on the adminsite. Not the frontsite and a language file. But if you don't use this shippingmodule, You can also delete this. These are the shippingmodules from oscommerce. Easy to install, just upload in the right directory and install on the back.

about the deprecated Function that's php-version 5.3. I don't have these errors. But we could find to solve this. Many problems where solved by "explode" I think. Maybe it will be nice to share this later. When solved.


File Attachment:

File Name: config.zip
File Size:4 KB
Attachments:

Please Log in or Create an account to join the conversation.

More
13 years 2 weeks ago - 13 years 2 weeks ago #407 by Simpel
Replied by Simpel on topic Re: Deprecated Functions
Code:
Deprecated: Assigning the return value of new by reference is deprecated in /home/easycms/public_html/components/com_oscommerce/includes/modules/payment/idealm.php on line 112 Deprecated: Assigning the return value of new by reference is deprecated in /home/easycms/public_html/components/com_oscommerce/includes/modules/payment/idealm.php on line 171 Deprecated: Assigning the return value of new by reference is deprecated in /home/easycms/public_html/components/com_oscommerce/includes/modules/payment/idealm.php on line 301

Just delete Idealm. That not working at the moment. That's a payment method from the Netherlands and an old version.

components/com_oscommerce_personal/languages/english/modules/payment/idealm.php

and

components/com_oscommerce/includes/modules/payment/idealm.php


try:
Code:
if (ereg('->', $use_function)) {

change to:
Code:
if (false !== strpos($use_function, '->')) {
Last edit: 13 years 2 weeks ago by Simpel.

Please Log in or Create an account to join the conversation.

More
13 years 2 weeks ago #408 by 1a-websolutions
Hello,

thanks for your help :-)

Have you a German language for the shop or exist at this moment not a german file?

best regards

Please Log in or Create an account to join the conversation.

Events Joomla
MarvikShop
Finnaly it's here:
 
No bridges, no look a likes!
This is the ultimate integration
between Oscommerce and Joomla!
Documentation
Site Showcase
Follow us