Home arrow Forum Warning: Call-time pass-by-reference after install JoomlaSMFForum_1.0.1b
  Welcome, Guest. Please login or register.
Did you miss your activation email?
December 03, 2008, 01:20:52 AM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 1.0.x (Moderators: -Wolverine, kai920)
| | | |-+  Warning: Call-time pass-by-reference after install JoomlaSMFForum_1.0.1b
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Warning: Call-time pass-by-reference after install JoomlaSMFForum_1.0.1b  (Read 3693 times)
ben
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 8


View Profile
Warning: Call-time pass-by-reference after install JoomlaSMFForum_1.0.1b
« on: October 11, 2005, 04:47:08 PM »

mambo 4523 JoomlaSMFForum_1.0.1b

after installing component and config

i have this message:

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of preg_match_all(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/www/XXXX/www/administrator/components/com_smf/functions.smf.php on line 197

i edit "functions.smf.php on line 197"

if (defined('DEBUG')) $debug = "";
     $types = array("form action", "href");
     while(list(,$type) = each($types)) {
         $innerT = '.+?';
          preg_match_all ("|$type\=([\"'`])(".$innerT.")\\1|i", $buffer, &$matches);


I delete "&"  mambo admin not display message, but no sync mambo and smf

thanks for your help
Logged
Benediktus
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 28


View Profile WWW
Re: Warning: Call-time pass-by-reference after install JoomlaSMFForum_1.0.1b
« Reply #1 on: October 12, 2005, 02:44:34 AM »

I've got this "Call-time pass-by-reference has been deprecated" issue too after installed JoomlaSMFForum_1.0.1b component on Joomla! 1.0.2 within the same database.

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of preg_match_all(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in C:\AppServ\www\xxx\administrator\components\com_smf\functions.smf.php on line 246

What should we do?

System Information
PHP built On:       Windows NT BENE 5.1 build 2600
Database Version:    4.1.12a-nt
PHP Version:    5.0.4
Web Server:    Apache/2.0.54 (Win32) PHP/5.0.4



TIA,
Benediktus Yosef
« Last Edit: October 12, 2005, 03:12:54 AM by Benediktus » Logged

--Benediktus Yosef
EMO - Elex Media Online
http://www.elexmedia.co.id
joni6
QA / Testers
Joomla Newbie
*****

Karma: +0/-0
Offline Offline

Posts: 23


View Profile
Re: Warning: Call-time pass-by-reference after install JoomlaSMFForum_1.0.1b
« Reply #2 on: October 12, 2005, 10:28:32 AM »

removing "&" from "&$matches" just like ben did should do the trick.
Logged
Benediktus
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 28


View Profile WWW
Re: Warning: Call-time pass-by-reference after install JoomlaSMFForum_1.0.1b
« Reply #3 on: October 14, 2005, 11:17:05 AM »

removing "&" from "&$matches" just like ben did should do the trick.

Thanks for help, but i've got another error:

Parse error: syntax error, unexpected ';' in C:\AppServ\www\joomla\administrator\components\com_smf\config.smf.php on line 4


What should I do then?


Regards,
Benediktus Yosef
Logged

--Benediktus Yosef
EMO - Elex Media Online
http://www.elexmedia.co.id
Editor (cowboy)
Administrator
Joomla Guru
*****

Karma: +86/-23
Offline Offline

Posts: 1144



View Profile WWW
Re: Warning: Call-time pass-by-reference after install JoomlaSMFForum_1.0.1b
« Reply #4 on: October 14, 2005, 11:20:04 AM »

There have been reports that PHP5 is causing a lot of problems. Can you try putting a fresh copy of config.smf.php and reconfigure it.
Logged
Regnaw
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 18


View Profile
Re: Warning: Call-time pass-by-reference after install JoomlaSMFForum_1.0.1b
« Reply #5 on: October 20, 2005, 04:46:21 AM »

i'm getting this same problem.

I did the remove "&" from "&$matches" and it fixed part of it. i'm now getting the parse error.

I am testing every thing using a local server "EasyPHP" and it looks like its using Apache 1.3.33, PHP 4.3.10 and MYSQL 4.1.9

I've tried using a fresh copy and reconfiguring it as you mention.. i've also tried manually entering it in via notepad... nothing works.

any ideas?
thanks

edit: I am noticing that when I hit Save, for some reason it is erasing all of the settings. not sure why...
« Last Edit: October 20, 2005, 05:05:17 AM by Regnaw » Logged
Regnaw
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 18


View Profile
Re: Warning: Call-time pass-by-reference after install JoomlaSMFForum_1.0.1b
« Reply #6 on: October 21, 2005, 10:32:38 AM »

/bump

I also wanted to add.. I forgot to mention a few things. The Joomla version I am using is 1.0.3 and SMF 1.1 RC1

Also if this is a common problem, please point me to a fix!

Thanks!
Logged
Editor (cowboy)
Administrator
Joomla Guru
*****

Karma: +86/-23
Offline Offline

Posts: 1144



View Profile WWW
Re: Warning: Call-time pass-by-reference after install JoomlaSMFForum_1.0.1b
« Reply #7 on: October 21, 2005, 04:02:34 PM »

can you tell me what other errors you're getting so i can examine it this weekend.
Logged
joelabq
Joomla Newbie
*

Karma: +2/-0
Offline Offline

Posts: 26


View Profile
Re: Warning: Call-time pass-by-reference after install JoomlaSMFForum_1.0.1b
« Reply #8 on: October 21, 2005, 06:09:19 PM »

You all have no "problems" you just have the error reporting level in your php.in to high. Those are only warning about the usage of depricated functions (for the developer).

Edit your php.ini and located the uncommented "error_reporting" ling

It likely currently says this:
error_reporting = E_ALL;

change it to this: error_reporting = E_ALL & ~E_NOTICE

...or you could try changing the allow_call_time_pass_reference to ON.

Joel
Logged
Regnaw
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 18


View Profile
Re: Warning: Call-time pass-by-reference after install JoomlaSMFForum_1.0.1b
« Reply #9 on: October 24, 2005, 11:59:45 AM »

can you tell me what other errors you're getting so i can examine it this weekend.

so far the only errors that I can see is the "parse error" after editing in the config, then trying to save.
Logged
kai920
Moderator
Joomla Expert
*****

Karma: +14/-2
Offline Offline

Posts: 275



View Profile
Re: Warning: Call-time pass-by-reference after install JoomlaSMFForum_1.0.1b
« Reply #10 on: October 24, 2005, 09:24:22 PM »

so far the only errors that I can see is the "parse error" after editing in the config, then trying to save.

I've experienced this before, both in Orstio's bridge and Joomlahacks version. Not exactly sure what causes it. If you have made a backup of your config.smf.php file then go ahead and replace the copy on your server with the backup.
Logged

Regnaw
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 18


View Profile
Re: Warning: Call-time pass-by-reference after install JoomlaSMFForum_1.0.1b
« Reply #11 on: October 25, 2005, 09:46:34 PM »

I've experienced this before, both in Orstio's bridge and Joomlahacks version. Not exactly sure what causes it. If you have made a backup of your config.smf.php file then go ahead and replace the copy on your server with the backup.

The only backup I would have is one with no settings defind in it. this is the first time trying to use the component. =(
Logged
kai920
Moderator
Joomla Expert
*****

Karma: +14/-2
Offline Offline

Posts: 275



View Profile
Re: Warning: Call-time pass-by-reference after install JoomlaSMFForum_1.0.1b
« Reply #12 on: October 26, 2005, 05:16:10 AM »

The only backup I would have is one with no settings defind in it. this is the first time trying to use the component. =(

I can send you mine, as a reference - PM me your email address.
Logged

joomlanewbie
Joomla Master
***

Karma: +20/-5
Offline Offline

Posts: 145


View Profile
Re: Warning: Call-time pass-by-reference after install JoomlaSMFForum_1.0.1b
« Reply #13 on: October 26, 2005, 08:37:19 AM »

I can send you mine, as a reference - PM me your email address.

Why not simply post it here? For all to enjoy (or scratch their heads over)
 Kiss
Logged
kai920
Moderator
Joomla Expert
*****

Karma: +14/-2
Offline Offline

Posts: 275



View Profile
Re: Warning: Call-time pass-by-reference after install JoomlaSMFForum_1.0.1b
« Reply #14 on: October 26, 2005, 09:22:45 AM »

for reference ONLY:

Code:
<?php
global $smf_path$smf_redirect$smf_prefix$mos_prefix$wrapped$hideemail$cbprofile$registration_module$mosurl;
$smf_path "/home/CHANGE THIS TO PATH OF YOUR FORUM/forums";
$smf_redirect 0;
$mos_prefix "jos_";
$smf_prefix "smf_";
$wrapped true;
$hideemail 1;
$cbprofile 0;
$registration_module "smf";
$mosurl "http://www.yourdomain.com/index.php?option=com_smf&amp;Itemid=43&amp;";
?>
Logged

Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login