CuteNews

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> htmlspecialchars() and preg_match() errors., having trouble with the news showing on my website.
Kupokaze
post Jul 7 2012, 09:18 PM
Post #1


Newbie
*

Group: Members
Posts: 2
Joined: 7-July 12
Member No.: 77,743



Hello~ I'm having some trouble with getting the news on my website to show. I'm having some errors, which I have shown below.

WARNING: htmlspecialchars() expects parameter 1 to be string, array given in /HOME/SKYBLADE/PUBLIC_HTML/RAPTURE/CUTENEWS/INC/FUNCTIONS.INC.PHP on line 66

CODE
line 66: $start_from = htmlspecialchars($start_from);

WARNING: preg_match() expects parameter 2 to be string, array given in /HOME/SKYBLADE/PUBLIC_HTML/RAPTURE/CUTENEWS/SHOW_NEWS.PHP on line 44

CODE
line 44: else{ die("Error!<br>the template <b>".htmlspecialchars($template)."</b> does not exists, note that template ...etc

What can I do to fix this up so that everything works again? It's the only thing on my website that is stumping me. ^^;
Thank you for the help!

This post has been edited by Kupokaze: Jul 7 2012, 09:23 PM
Go to the top of the page
 
+Quote Post
FUNimations
post Jul 9 2012, 10:33 AM
Post #2


CuteNews Support Crew Pimp
***

Group: Support
Posts: 16,501
Joined: 28-August 05
From: Belgium
Member No.: 5,662



QUOTE
WARNING: preg_match() expects parameter 2 to be string, array given in /HOME/SKYBLADE/PUBLIC_HTML/RAPTURE/CUTENEWS/SHOW_NEWS.PHP on line 44
your line 44 doesn't have th function preg_match
So it's probably some lines around 44. This can be different depending on the editor (doesn't happen often but it can)

Also please check if example2.php that came with the cn zip does work. if so, it's likely that some other php script on your page is causing trouble.
And then a code rewrite needs to be done.


--------------------

General FAQ
Spam Protection In Cutenews
Comments get deleted
_______________________
<< If you appreciate my help
Go to the top of the page
 
+Quote Post
Kupokaze
post Jul 9 2012, 11:46 PM
Post #3


Newbie
*

Group: Members
Posts: 2
Joined: 7-July 12
Member No.: 77,743



Okay, thank you! I am using a script that seems to be running cutenews into error. I was hoping there was a quick fix for it. I appreciate the reply!
Go to the top of the page
 
+Quote Post

Fast ReplyReply to this topicStart new topic

 



RSS Lo-Fi Version Time is now: 22nd May 2013 - 11:45 PM