Anonymous,

Please Login or Register
Download Nuke Evolution Xtreme today for a CMS you can enjoy using and sharing with your friends!
[ Download Now ]
Forum Index  ·  Search  ·  Usergroups  ·  Edit your profile  ·  Members  ·  Login, Check Messages
Arcade  ·  Ranks  ·  Staff  ·  Statistics  ·  Board Rules  ·  Forum FAQ  ·  Log in

Search for at
Evolution-Xtreme Advanced Search


+  
Latest Site News   Next 5 >>  
 Forum   Author   Replies   Last Post 
File Repository 1.0.0 Released Announcements! Lonestar 0 Tue Apr 26, 2016 6:44 am
Lonestar View latest post
Image Repository Released Announcements! Lonestar 1 Mon Oct 27, 2014 7:39 pm
Lonestar View latest post
So what happened to us? Announcements! SgtLegend 0 Tue May 06, 2014 12:32 am
SgtLegend View latest post
[PROGRESS] Nuke Evolution Xtreme 2.0.9e Announcements! SgtLegend 2 Sun May 27, 2012 6:25 pm
SgtLegend View latest post
European Cookie Law Announcements! SgtLegend 0 Sat May 26, 2012 7:33 am
SgtLegend View latest post
   
Recent Topics   Next 15 >>  
 Forum   Author   Replies   Last Post 
Evo staff looking for some volunteers. Community Announcements coRpSE 20 Thu Jul 02, 2015 9:19 am
Depresjon2 View latest post
Evo Xtreme 2.0.9D Updated for PHP 5.6 General Support coRpSE 121 Thu Mar 23, 2017 3:57 pm
casterdon View latest post
[ MOD ] - Honeypot V2.2 AntiBot Module Security coRpSE 106 Tue Nov 22, 2016 11:30 am
coRpSE View latest post
Possible new Admin area layout Comments and Suggestions Lonestar 18 Wed Sep 14, 2016 11:37 am
Blackou View latest post
jQuery update General Support Lonestar 2 Wed May 11, 2016 4:49 pm
Charles64 View latest post
Deutsche Sprachdatei - german language files German DT50R 7 Thu Jan 28, 2016 7:04 am
DT50R View latest post
[FIX] Correct Cookie Settings (Invalid Session Error) Quick fixes killigan 110 Fri Mar 20, 2015 1:06 pm
Macdaddy View latest post
Admin General Support bomclan 3 Sat Jun 17, 2017 6:01 pm
Sp0rAdiC View latest post
RSS feeds Blocks Richmc 1 Sat Jun 17, 2017 5:52 pm
Sp0rAdiC View latest post
Forums disappeared General Support Richmc 0 Fri Jun 16, 2017 9:20 am
Richmc View latest post
admin access help needed General Support Soulfly 13 Fri Jun 09, 2017 3:08 pm
Soulfly View latest post
mysql_error ? General Support Redcougarxr7 5 Thu Jun 08, 2017 8:27 am
coRpSE View latest post
Question about domain name General Support Richmc 0 Wed Jun 07, 2017 11:03 am
Richmc View latest post
PM System not working correctly General Support Worfwarrior 0 Fri Jun 02, 2017 8:24 am
Worfwarrior View latest post
Looking for coRpSE? He is gone till May. General Chat coRpSE 9 Tue May 30, 2017 9:19 am
Soulfly View latest post

deprecate error in calendar module

 
Post new topic    Reply to topic    printer-friendly view   Thank Post    Evolution-Xtreme Forum Index -> Modules
View previous topic :: View next topic  
Author Message
Thorgrim




Joined: Aug 05, 2015
Posts: 10

Reputation: 1.3
spain.png


Status: Offline
PostPosted: Wed Jan 20, 2016 5:29 am Post subject: No icon deprecate error in calendar module Reply with quote

 Hi  guys!
 
 I'm  trying  the  block  calendar  and  all  works  fine,  but  when  I  pick  in  the  day  that  I  created  the  event,  before  the  event,  appears  the  next  error.
 
                                                 
Code:                

 Deprecated:  preg_replace():  The  /e  modifier  is  deprecated,  use  preg_replace_callback  instead  in  /home/u261651248/public_html/modules/Calendar/includes/functions.php  on  line  1325                

 
 And  if  i  go  to  this  line  the  code  is:
 
                                                 
Code:                
  $var  =  preg_replace($search,  $replace,  $var);                

 
 I  tried  to  replace  it  with:
 
                                                 
Code:                
$var  =  preg_replace_callback(pattern,  callback,  subject)($search,  $replace,  $var);                

 
 But  then,  the  block  and  module  don't  work.
 Any  idea?
 
 And  another  question,  Can  I  create  new  type  of  event  for  the  calendar?
 
 One  more  time,  Thanks  for  all.
Back to top
View user's profile Send private message Visit poster's website
Teo



Gender: Gender:Male
Joined: Jul 17, 2009
Age: 36
Posts: 491
Location: In your GF's bed!!
Reputation: 70.2
votes: 3
italy.png


Status: Offline
PostPosted: Thu Jan 21, 2016 7:15 am Post subject: No icon Re: deprecate error in calendar module Reply with quote

 i  would  say:
 
 
                                                 
PHP:                
$var preg_replace_callback($search$replace$var);                 
Back to top
View user's profile Send private message Visit poster's website Visit member's Facebook: 232833186770739
Thorgrim




Joined: Aug 05, 2015
Posts: 10

Reputation: 1.3
spain.png


Status: Offline
PostPosted: Fri Jan 22, 2016 9:18 am Post subject: No icon Re: deprecate error in calendar module Reply with quote

 First,  thanks  for  your  help,  Teo.
 
 I  put  that  code  and  now  appears  this  message  en  the  module:
 
                                                 
Code:                
Warning:  preg_replace_callback():  Requires  argument  2,  'Array',  to  be  a  valid  callback  in  /home/u261651248/public_html/modules/Calendar/includes/functions.php  on  line  1325                

 
 I  think  that  I  must  to  use  the  next  code:
 
 
                                                 
Code:                
$var  =  preg_replace_callback(pattern,  callback,  subject)($search,  $replace,  $var);                  

   
 Adding  something  in  the  first  brackets.
Back to top
View user's profile Send private message Visit poster's website
Sponsor
phpstorm.jpg
Teo



Gender: Gender:Male
Joined: Jul 17, 2009
Age: 36
Posts: 491
Location: In your GF's bed!!
Reputation: 70.2
votes: 3
italy.png


Status: Offline
PostPosted: Fri Jan 22, 2016 11:16 am Post subject: No icon Re: deprecate error in calendar module Reply with quote

 no,  as  i  wrote  your  is  wrong.  According  whit  what  i  wrote  here  time  ago:  (just  use  search  next  time)
 
 http://www.evolution-xtreme.com/modules.php?name=Forums&file=viewtopic&t=6812&highlight=pregreplacecallback
 
 the  fix  is  this:
 
 
                                                 
PHP:                
$var preg_replace_callback($search'$replace'$var);                 
 
 
 i  forgot  only  the  '  '
Back to top
View user's profile Send private message Visit poster's website Visit member's Facebook: 232833186770739
Thorgrim




Joined: Aug 05, 2015
Posts: 10

Reputation: 1.3
spain.png


Status: Offline
PostPosted: Mon Jan 25, 2016 6:05 am Post subject: No icon Re: deprecate error in calendar module Reply with quote

 One  more  time  thanks,  Teo.
 
 I  don't  kwon  how  to  program  in  php,  because  that  I  asked  for  help.
 
 I  put  your  last  code,  and  now  says  the  next  error:
 
                                                 
Code:                
Warning:  preg_replace_callback():  Requires  argument  2,  '$replace',  to  be  a  valid  callback  in  /home/u261651248/public_html/modules/Calendar/includes/functions.php  on  line  1325                

 
 I  read  the  link  that  you  posted,  but  i  don't  Know  how  I  must  to  rewrite  the  function  names.
 
 If  you  can  help  me,  I'll  apreciate  it.
 
 Thanks  for  all   Wink
Back to top
View user's profile Send private message Visit poster's website
Teo



Gender: Gender:Male
Joined: Jul 17, 2009
Age: 36
Posts: 491
Location: In your GF's bed!!
Reputation: 70.2
votes: 3
italy.png


Status: Offline
PostPosted: Tue Jan 26, 2016 4:59 am Post subject: No icon Re: deprecate error in calendar module Reply with quote

 try  with  this:
 
 
                                                 
PHP:                
$var preg_replace_callback('/(.)@(.)/se'create_function('$m','return "&#" .sprintf("%03d", ord("\\".$m[1]."")) .";@&#" .sprintf("%03d", ord("\\".$m[2]."")) . ";";'), $var);                 
Back to top
View user's profile Send private message Visit poster's website Visit member's Facebook: 232833186770739
Sponsor
phpstorm.jpg
Thorgrim




Joined: Aug 05, 2015
Posts: 10

Reputation: 1.3
spain.png


Status: Offline
PostPosted: Tue Jan 26, 2016 8:28 am Post subject: No icon Re: deprecate error in calendar module Reply with quote

 No,  Teo.  Now  shows  the  next  error.
 
 
                                                 
Quote:                
Parse  error:  syntax  error,  unexpected  '"))  ."'  (T_CONSTANT_ENCAPSED_STRING)  in  /home/u261651248/public_html/modules/Calendar/includes/functions.php(1325)  :  runtime-created  function  on  line  1
 
 Warning:  preg_replace_callback():  Requires  argument  2,  '',  to  be  a  valid  callback  in  /home/u261651248/public_html/modules/Calendar/includes/functions.php  on  line  1325                

 
   Confused
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:
Post new topic  Reply to topic   printer-friendly view   Thank Post Evolution-Xtreme Forum Index ->  Modules All times are UTC - 5 Hours
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts Moving a topic to another forum 1 feeblemedic 2286 Sat Feb 05, 2011 8:13 pm
SgtLegend View latest post
No new posts Another Block Title Question... 1 Mortician 1928 Thu Dec 23, 2010 5:40 pm
SgtLegend View latest post
No new posts Transfering forum posts from one site to another 3 redrock 2715 Thu Dec 09, 2010 6:08 pm
mrsmith25 View latest post
No new posts another error 4 SCT951 2637 Sat Nov 06, 2010 10:15 pm
SCT951 View latest post
No new posts Another question 3 sixthfury 3480 Fri Oct 29, 2010 4:50 pm
coopvet2000 View latest post
 




Powered by phpBB © 2001, 2006 phpBB Group
EvoXtreme Theme by SgtLegend ©
Forums ©