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
Looking for coRpSE? He is gone till May. General Chat coRpSE 8 Mon May 29, 2017 5:56 pm
coRpSE View latest post
admin access help needed General Support Soulfly 5 Mon May 29, 2017 9:11 am
Soulfly View latest post
Refresh a single block Blocks allrocknmetal 1 Mon May 29, 2017 8:53 am
coRpSE View latest post
login as admin strange error General Support Worfwarrior 9 Fri May 26, 2017 4:40 pm
Worfwarrior View latest post
Does Anyone Have a Media Player Mod? Modules goosse 0 Mon May 01, 2017 9:17 am
goosse View latest post
head and body help General Support hercountrybuck 8 Tue Apr 04, 2017 2:08 pm
Sp0rAdiC View latest post
babstats nuke evo PHP 5.6 Modules pd35 4 Mon Mar 27, 2017 5:45 pm
Ragonese View latest post
Think I got hit with malware somehow General Support bobdude 10 Sun Mar 26, 2017 6:44 pm
coRpSE View latest post

[FIXED] Attachment Mod - Deprecated: preg_replace():
Goto page 1, 2  Next
 
Post new topic    Reply to topic    printer-friendly view   Thank Post    Evolution-Xtreme Forum Index -> General Support
View previous topic :: View next topic  
Author Message
DarkCarmine



Gender: Gender:Male
Joined: Nov 14, 2013
Posts: 13

Reputation: 1.6
blank.png


Status: Offline
PostPosted: Sun Dec 11, 2016 8:04 pm Post subject: Note [FIXED] Attachment Mod - Deprecated: preg_replace(): Reply with quote

 A  good  friend  of  mine  let  me  use  his  server  for  a  Xtreme  test  site  using  the  Xtreme  package  for  PHP5.6.  This  test  site  is  installed  in  a  sub-folder  directory.
 
 My  problem  is  with  the  attachment  mod,  I  get  2  problems.  I  fixed  1  already,  but  not  sure  about  the  2nd  one,  want  to  make  sure  I  got  the  code  fix  right.
 
 [  ERROR  ]
 Deprecated:  preg_replace():  The  /e  modifier  is  deprecated,  use  preg_replace_callback  instead  in  
 \modules\Forums\attach_mod\posting_attachments.php  on  line  1200
 
 There  is  2  lines...  (original  coded  lines)
 
 
                                                 
Code:                
$this->attach_filename  =  preg_replace("/([\xC2\xC3])([\x80-\xBF])/e",  "chr(ord('\\1')<<6&0xC0|ord('\\2')&0x3F)",  $this->attach_filename);                

 
 
                                                 
Code:                
$this->attach_filename  =  preg_replace("/(%[0-9A-F]{1,2})/i",  '',  $this->attach_filename);                

 
 One  other  problem  I  am  getting  is  the  path  with  Image  &  ZIP  attachments,  is  wrong  after  you  click  on  it.
 
 Carmine


Last edited by DarkCarmine on Mon Dec 12, 2016 4:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
Lonestar
Site Admin
Site Admin
Xtreme Developer
Xtreme Developer




Joined: Oct 09, 2008
Posts: 425

Reputation: 58.3
votes: 3
blank.png


Status: Offline
PostPosted: Mon Dec 12, 2016 1:46 pm Post subject: No icon Re: Attachment Mod - Deprecated: preg_replace(): Reply with quote

 It's  quite  simple  to  fix,  the  error  message  tells  you  the  fix  :P
 
 simply  replace
 
                                                 
Code:                
$this->attach_filename  =  preg_replace("/([\xC2\xC3])([\x80-\xBF])/e",  "chr(ord('\\1')<<6&0xC0|ord('\\2')&0x3F)",  $this->attach_filename);                

 
 With
 
                                                 
Code:                
$this->attach_filename  =  preg_replace("/([\xC2\xC3])([\x80-\xBF])/",  "chr(ord('\\1')<<6&0xC0|ord('\\2')&0x3F)",  $this->attach_filename);                
Back to top
View user's profile Send private message Send e-mail
DarkCarmine



Gender: Gender:Male
Joined: Nov 14, 2013
Posts: 13

Reputation: 1.6
blank.png


Status: Offline
PostPosted: Mon Dec 12, 2016 2:12 pm Post subject: No icon Re: Attachment Mod - Deprecated: preg_replace(): Reply with quote

 That's  it,  you  simply  remove  the  "E"  modifier.  That's  simple  enough.  I  guess  the...  "use  preg_replace_callback"  text  threw  me  off.
 
 I  take  it  that  I  remove  the...  /i  from  the  other  line  then  ?
 
 Thank  you  Lonestar  for  replying  and  for  the  fix.
 
 Now  I  just  need  to  figure  out  why  the  Image  &  ZIP  attachments  paths  are  wrong  after  you  click  on  an  attached  image  or  zip  file.   Confused
Back to top
View user's profile Send private message
Sponsor
phpstorm.jpg
DarkCarmine



Gender: Gender:Male
Joined: Nov 14, 2013
Posts: 13

Reputation: 1.6
blank.png


Status: Offline
PostPosted: Mon Dec 12, 2016 4:54 pm Post subject: No icon Re: [FIXED] Attachment Mod - Deprecated: preg_replace(): Reply with quote

 Thank  you  Lonestar,  that  fixed  the  2nd  problem  and  the  fix  I  did  to  the  other  file  fixed  my  1st  problem.  Very Happy  
 
 But  the  Xtreme  v2.0.9d  software  still  has  a  problem  when  you  attach  either  and  image  or  a  zip  using  the  attachment  feature.  After  you  click  on  it,  the  path  to  the  image  or  file  is  wrong.  I  had  thought  that  it  was  due  to  being  installed  in  a  Sub-Folder  directory,  but  I  just  did  a  clean  install  on  a  regular  domain  and  does  the  same  thing  on  both  sites.
 
 Lonestar,  I  was  wondering  if  you  could  take  a  look  at  the  problem  and  see  about  fixing  it  please.  I  will  pm  you  login  details  in  case  you  time  to  check  out  and  fix.  If  not,  no  big  deal.
 
 Carmine
Back to top
View user's profile Send private message
Lonestar
Site Admin
Site Admin
Xtreme Developer
Xtreme Developer




Joined: Oct 09, 2008
Posts: 425

Reputation: 58.3
votes: 3
blank.png


Status: Offline
PostPosted: Mon Dec 12, 2016 5:05 pm Post subject: No icon Re: [FIXED] Attachment Mod - Deprecated: preg_replace(): Reply with quote

 I  will  take  a  look  on  tuesday  night  m8,  As  i  am  not  at  home  right  now.
Back to top
View user's profile Send private message Send e-mail
DarkCarmine



Gender: Gender:Male
Joined: Nov 14, 2013
Posts: 13

Reputation: 1.6
blank.png


Status: Offline
PostPosted: Mon Dec 12, 2016 5:06 pm Post subject: No icon Re: [FIXED] Attachment Mod - Deprecated: preg_replace(): Reply with quote

 Ok,  thank  you.  I  pm'd  you  the  login  information,  ok.
 
 Thank  you
 
 Carmine
Back to top
View user's profile Send private message
Sponsor
webstorm.jpg
Lonestar
Site Admin
Site Admin
Xtreme Developer
Xtreme Developer




Joined: Oct 09, 2008
Posts: 425

Reputation: 58.3
votes: 3
blank.png


Status: Offline
PostPosted: Tue Dec 13, 2016 8:34 am Post subject: No icon Re: [FIXED] Attachment Mod - Deprecated: preg_replace(): Reply with quote

 Due  to  the  title  edit,  Am  i  to  assume  you  got  this  fixed?
Back to top
View user's profile Send private message Send e-mail
DarkCarmine



Gender: Gender:Male
Joined: Nov 14, 2013
Posts: 13

Reputation: 1.6
blank.png


Status: Offline
PostPosted: Tue Dec 13, 2016 11:20 am Post subject: No icon Re: [FIXED] Attachment Mod - Deprecated: preg_replace(): Reply with quote

                                                   
Lonestar  wrote  (View  Post):                
Due  to  the  title  edit,  Am  i  to  assume  you  got  this  fixed?                

 
 That  was  only  for  ZIP  file  attachments.  The  one  for  images  (png,  jpg,  gif),  still  does  not  work,  which  is  what  I  wanted  you  to  take  a  look  at  and  fixing  it.
 
 Thanks
 
 Carmine
Back to top
View user's profile Send private message
Lonestar
Site Admin
Site Admin
Xtreme Developer
Xtreme Developer




Joined: Oct 09, 2008
Posts: 425

Reputation: 58.3
votes: 3
blank.png


Status: Offline
PostPosted: Tue Dec 13, 2016 12:54 pm Post subject: No icon Re: [FIXED] Attachment Mod - Deprecated: preg_replace(): Reply with quote

 I  have  just  taken  a  look  on  you're  site,  and  the  attachments  seem  to  work  just  fine.
 
 I  attached  an  image  and  a  simple  sprite  in  a  .zip  file  and  both  showed  and  downloaded  without  a  problem  :)
 
 When  using  the  Sub  domain,  Did  you  update  your  preferences  and  change  the  "Site  URL"  to  the  sub  domain?
Back to top
View user's profile Send private message Send e-mail
Sponsor
webstorm.jpg
DarkCarmine



Gender: Gender:Male
Joined: Nov 14, 2013
Posts: 13

Reputation: 1.6
blank.png


Status: Offline
PostPosted: Tue Dec 13, 2016 1:03 pm Post subject: No icon Re: [FIXED] Attachment Mod - Deprecated: preg_replace(): Reply with quote

                                                   
Lonestar  wrote  (View  Post):                
I  have  just  taken  a  look  on  you're  site,  and  the  attachments  seem  to  work  just  fine.
 
 I  attached  an  image  and  a  simple  sprite  in  a  .zip  file  and  both  showed  and  downloaded  without  a  problem  :)
 
 When  using  the  Sub  domain,  Did  you  update  your  preferences  and  change  the  "Site  URL"  to  the  sub  domain?                

 
 I  believe  it  did,  but  it  would  be  like  this,  right...
 
 
                                                 
Code:                
www.siteurl.com/subfoldername                

 
 If  that's  how  it  should  be,  then  yes.
Back to top
View user's profile Send private message
Lonestar
Site Admin
Site Admin
Xtreme Developer
Xtreme Developer




Joined: Oct 09, 2008
Posts: 425

Reputation: 58.3
votes: 3
blank.png


Status: Offline
PostPosted: Tue Dec 13, 2016 1:04 pm Post subject: No icon Re: [FIXED] Attachment Mod - Deprecated: preg_replace(): Reply with quote

 Ok  move  you're  website  into  a  sub  domain  and  let  me  done  when  you  have  finished,  I  will  then  take  another  look  for  you.
Back to top
View user's profile Send private message Send e-mail
DarkCarmine



Gender: Gender:Male
Joined: Nov 14, 2013
Posts: 13

Reputation: 1.6
blank.png


Status: Offline
PostPosted: Tue Dec 13, 2016 1:06 pm Post subject: No icon Re: [FIXED] Attachment Mod - Deprecated: preg_replace(): Reply with quote

 ok,  give  me  a  minute  to  change.
Back to top
View user's profile Send private message
Sponsor
webstorm.jpg
Lonestar
Site Admin
Site Admin
Xtreme Developer
Xtreme Developer




Joined: Oct 09, 2008
Posts: 425

Reputation: 58.3
votes: 3
blank.png


Status: Offline
PostPosted: Tue Dec 13, 2016 1:08 pm Post subject: No icon Re: [FIXED] Attachment Mod - Deprecated: preg_replace(): Reply with quote

 Did  you  update  the  domain  name  in  you're  forum  admin  aswell
 
 it  is  located  in  "Configuration",  Update  with  your  subdomain  so  it  looks  like  "siteurl.com/subfoldername"
Back to top
View user's profile Send private message Send e-mail
DarkCarmine



Gender: Gender:Male
Joined: Nov 14, 2013
Posts: 13

Reputation: 1.6
blank.png


Status: Offline
PostPosted: Tue Dec 13, 2016 1:11 pm Post subject: No icon Re: [FIXED] Attachment Mod - Deprecated: preg_replace(): Reply with quote

 Yes,  I  had  used  Technocrats  Correct  Cooking  settings  file  he  gave  me.  So  it  was  setup  correctly.
 
 Login  to  the  ftp,  I  changed  it  into  a  subfolder  called...  x209
Back to top
View user's profile Send private message
DarkCarmine



Gender: Gender:Male
Joined: Nov 14, 2013
Posts: 13

Reputation: 1.6
blank.png


Status: Offline
PostPosted: Tue Dec 13, 2016 1:18 pm Post subject: No icon Re: [FIXED] Attachment Mod - Deprecated: preg_replace(): Reply with quote

 Ok,  moved  to  a  Subfolder  and  changed  the  settings  and  check  the  image  and  zip  attachments,  and  they  both  work.  The  image  one,  works  sporadically,  but  does  work.
 
 Looks  like  it  is  good  then.
 
 Thank  you  for  taking  the  time  to  check  it  for  me,  I  appreciate  it.
Back to top
View user's profile Send private message
Sponsor
phpstorm.jpg
Display posts from previous:
Post new topic  Reply to topic   printer-friendly view   Thank Post Evolution-Xtreme Forum Index ->  General Support All times are UTC - 5 Hours
Goto page 1, 2  Next
Page 1 of 2


 
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 Error Log - Module PDO already loaded 9 tsac 5667 Sat Jul 16, 2011 6:03 am
tsac View latest post
No new posts You might already use. 7 Soulkeeper 5243 Fri Apr 29, 2011 7:44 am
forgotz View latest post
No new posts Forums Header Already Sent Errors 2 ClanJC 3335 Mon Jan 17, 2011 4:12 pm
Wicked View latest post
No new posts Installed 2.0.9 and having heaps of problems 7 Pahkiller 3745 Sun Jan 09, 2011 4:50 am
Pahkiller View latest post
No new posts Installed 2.0.9 but site says 2.0.7 at bottom 3 Evil_Blue 2186 Fri Sep 24, 2010 11:54 am
Evil_Blue View latest post
 




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