# issues pop up news for iCrewLite

**URL:** <https://forum.phpvms.net/t/issues-pop-up-news-for-icrewlite/13453>\
**Category:** General Support\
**Created:** [November 4, 2020, 9:22pm UTC](https://forum.phpvms.net/t/issues-pop-up-news-for-icrewlite/13453 "2020-11-04T21:22:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SimR](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/s/3d9bf3/32.png) [@SimR](https://forum.phpvms.net/u/SimR)\
**Post date:** [November 4, 2020, 9:22pm UTC](https://forum.phpvms.net/t/issues-pop-up-news-for-icrewlite/13453/1 "2020-11-04T21:22:37Z")

</div>

Hi,&nbsp;

Im new here so if this is the wrong place I apologise in advance,&nbsp;I just tried to install the popupnews plugin for my va via the plugin manager for the iCrewLite skin and followed the installation manual&nbsp;and the the plugin works locally but when deploying it live I get this problem showing,

&nbsp;

Parse error: syntax error, unexpected ‘[’, expecting ‘)’ in lib/skins/iCrewLITE/popupnews/popupnews\_list.php&nbsp;on line&nbsp;17

&nbsp;

and it completely destroys the dashboard but when I disable it the styling comes back as intended.

&nbsp;

any ideas what I have to change to make it work?&nbsp;

Thank you in advance.

Have a nice evening.

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![ProAvia](https://forum.phpvms.net/user_avatar/forum.phpvms.net/proavia/32/135_2.png) [@ProAvia](https://forum.phpvms.net/u/ProAvia)\
**Post date:** [November 4, 2020, 9:41pm UTC](https://forum.phpvms.net/t/issues-pop-up-news-for-icrewlite/13453/2 "2020-11-04T21:41:42Z")

</div>

Post line 17 from&nbsp;lib/skins/iCrewLITE/popupnews/popupnews\_list.php&nbsp;

---

<div class="post-metadata">

**Author:** ![SimR](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/s/3d9bf3/32.png) [@SimR](https://forum.phpvms.net/u/SimR)\
**Post date:** [November 4, 2020, 9:55pm UTC](https://forum.phpvms.net/t/issues-pop-up-news-for-icrewlite/13453/3 "2020-11-04T21:55:04Z")

</div>

> 11 minutes ago, ProAvia said:
> 
> Post line 17 from&nbsp;lib/skins/iCrewLITE/popupnews/popupnews\_list.php&nbsp;

Hi ProAvia

&nbsp;

\<li\>\<?php  
&nbsp; &nbsp; foreach($news as $item) {  
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;  
&nbsp; &nbsp; }  
&nbsp; &nbsp; &nbsp;$hashtag\_string = str\_replace([‘!’, ‘\’, ‘/’, ‘\*’, ’ ‘], ‘’,$item-\>subject); &nbsp;// Line 17 in the file  
&nbsp; &nbsp; &nbsp;$lowercase = strtolower($hashtag\_string);  
&nbsp; &nbsp; &nbsp;echo ‘\<a href="’.SITE\_URL.’/index.php/PopUpNews/popupnewsitem/‘.$item-\>id.’"\>\<font color=“white”\>#‘.$lowercase.’\</font\>\</a\>';  
&nbsp; &nbsp; &nbsp;$posted\_month = date(m, $item-\>postdate);  
&nbsp; &nbsp; &nbsp;$current\_month = date(‘m’);  
&nbsp; &nbsp; &nbsp;if($posted\_month == $current\_month)  
&nbsp; &nbsp; &nbsp;{  
&nbsp; &nbsp; &nbsp; echo ‘\<span class=“pull-right”\>  
&nbsp; &nbsp; &nbsp; &nbsp; \<i class=“material-icons”\>trending\_up\</i\>  
&nbsp; &nbsp; &nbsp; \</span\>’;&nbsp;  
&nbsp; &nbsp; &nbsp;}  
&nbsp; &nbsp; &nbsp;else  
&nbsp; &nbsp; &nbsp;{  
&nbsp; &nbsp; &nbsp; &nbsp;‘’;  
&nbsp; &nbsp; &nbsp;}  
&nbsp; &nbsp; &nbsp;  
?\>\</li\>

&nbsp;

this is the code and I posted the function and highlighted the line 17.&nbsp;

it works fine locally but not live.&nbsp;

---

<div class="post-metadata">

**Author:** ![ProAvia](https://forum.phpvms.net/user_avatar/forum.phpvms.net/proavia/32/135_2.png) [@ProAvia](https://forum.phpvms.net/u/ProAvia)\
**Post date:** [November 4, 2020, 11:25pm UTC](https://forum.phpvms.net/t/issues-pop-up-news-for-icrewlite/13453/4 "2020-11-04T23:25:34Z")

</div>

Save a copy of popupnews\_list.php first, then

&nbsp;

replace&nbsp;

$hashtag\_string = str\_replace([‘!’, ‘\’, ‘/’, ‘\*’, ’ '], ‘’,$item-\>subject); &nbsp;// Line 17 in the file

&nbsp;

with

$hashtag\_string = str\_replace(‘[’!', ‘\’, ‘/’, ‘\*’, ’ ‘]’, ‘’,$item-\>subject); &nbsp;// Line 17 in the file

&nbsp;

or

$hashtag\_string = str\_replace((‘!’, ‘\’, ‘/’, ‘\*’, ’ '), ‘’,$item-\>subject); &nbsp;// Line 17 in the file

&nbsp;

And see if that resolves it or not. I don’t use that skin and my popupnews\_list file is slightly different. Maybe &nbsp;has a fix.

---

<div class="post-metadata">

**Author:** ![SimR](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/s/3d9bf3/32.png) [@SimR](https://forum.phpvms.net/u/SimR)\
**Post date:** [November 6, 2020, 11:31pm UTC](https://forum.phpvms.net/t/issues-pop-up-news-for-icrewlite/13453/5 "2020-11-06T23:31:49Z")

</div>

> On 11/5/2020 at 12:25 AM, ProAvia said:
> 
> Save a copy of popupnews\_list.php first, then
> 
> &nbsp;
> 
> replace&nbsp;
> 
> $hashtag\_string = str\_replace([‘!’, ‘\’, ‘/’, ‘\*’, ’ '], ‘’,$item-\>subject); &nbsp;// Line 17 in the file
> 
> &nbsp;
> 
> with
> 
> $hashtag\_string = str\_replace(‘[’!', ‘\’, ‘/’, ‘\*’, ’ ‘]’, ‘’,$item-\>subject); &nbsp;// Line 17 in the file
> 
> &nbsp;
> 
> or
> 
> $hashtag\_string = str\_replace((‘!’, ‘\’, ‘/’, ‘\*’, ’ '), ‘’,$item-\>subject); &nbsp;// Line 17 in the file
> 
> &nbsp;
> 
> And see if that resolves it or not. I don’t use that skin and my popupnews\_list file is slightly different. Maybe &nbsp;has a fix.

Hi,

thank you for the suggestion but it didn’t work for me but I changed skin to suit my va’s styling a bit more.&nbsp;

&nbsp;

have a nice weekend and I appreciate your time
