• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

BUG Page Not Found Error

Messages
6
Likes
0
Points
1
#1
My snippets code was working fine and all of a sudden they stopped working and also if I try to update the code it will return page not found error

Bellow is the code content:

PHP:
@include 'connection.php';

?>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>MESSAGES BY CATEGORIES</title>

</head>



<body>



<br />

<br />

<br />





<?PHP

$query = "select * from by_alphabitical WHERE message_cat='MIRACLE SERVICES' ORDER BY message_sn DESC";

$result = mysql_query($query);   

                      



        @$total2 = mysql_num_rows(@$result);

        

if($total2<=0){ echo "<center>Nill</center>";}

if($total2>0){

echo '<table width= 95%  border=1  style="border: thin; border-color:violet" cellpadding="0" cellspacing="0" align="center">

<tr align="Center">

<td width= 6%><strong><font style="font-size:16px"> SN</font></strong></td>

<td width= 75%><strong><font style="font-size:16px">MESSAGE TITLE</font></strong></td>

<td width= 14%><strong><font style="font-size:16px">DOWNLOAD</font></strong></td>

</tr>

';



                   @$sn=0;           

                while (@$row3 = mysql_fetch_array(@$result)) {

                @extract(@$row3);

                 @$sn=$sn+1;

                  

                echo "

               <tr valign='middle'"; if($sn % 2 == 0){

        echo "bgcolor='#CC99FF'";}

        echo " ><td width=6% valign='middle' align='center'><font style='font-size:14px'>  $sn";

                            

            

                      

            echo "</font></td>

            <td width= 75%>    <font style='font-size:14px'>         

               $message_title

              

               </font></td>

              

               <td width= 14% align='center'>             

                <a href='http://koinoniadownloads.org/messages/$message_title.mp3'><img src='http://koinoniadownloads.org/images/DOWNLOAD.png' width='30' height='30' /></a>
               </td>
               </tr>";
                }
                echo '</table>'; }
?>

</body>
</html>
 
Last edited by a moderator:

Temyk

Support team
Staff member
Messages
538
Likes
26
Points
28
#2
Hello.

I need more information. What are the snippet settings? What does "stopped working" mean? Returns an error or is displayed incorrectly?
 
Messages
6
Likes
0
Points
1
#3
Attached is the settings.

Innitially they were working fine but not its returning nill results.
Secondly if I try to edit and update the snippets code it will take me to a page giving page not found error.
 

Attachments

Temyk

Support team
Staff member
Messages
538
Likes
26
Points
28
#4
Not plugin settings, but the snippet settings.

Do you have the OneSignal Push Notifications plugin installed?
 

Temyk

Support team
Staff member
Messages
538
Likes
26
Points
28
#6
You can find SNIPPET settings on the snippet editing page!

And also send the URL from the browser when the page not found error is displayed
 

Temyk

Support team
Staff member
Messages
538
Likes
26
Points
28
#8
It looks like this is some kind of conflict with another plugin. Are your regular posts saved normally?

If you have recently updated plugins or installed new ones, try deactivating them and checking that the snippets are saved
 
Messages
6
Likes
0
Points
1
#10
I feel like something is wrong with my code, if I try to create new snippet with a simple or shorter codes it will save fine but if its this particular code I pasted above it wont work.
 

Temyk

Support team
Staff member
Messages
538
Likes
26
Points
28
#11
I tried inserting your code into the snippet and saving it, and there were no errors. The only thing I removed the extra lines, maybe they had a problem. Try copying and using it on your site

PHP:
@include 'connection.php';
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MESSAGES BY CATEGORIES</title>
</head>
<body>
<br />
<br />
<br />
<?php
$query = "select * from by_alphabitical WHERE message_cat='MIRACLE SERVICES' ORDER BY message_sn DESC";
$result = mysql_query($query);   
@$total2 = mysql_num_rows(@$result);
if($total2<=0){ echo "<center>Nill</center>";}
if($total2>0){
echo '<table width= 95%  border=1  style="border: thin; border-color:violet" cellpadding="0" cellspacing="0" align="center">
<tr align="Center">
<td width= 6%><strong><font style="font-size:16px"> SN</font></strong></td>
<td width= 75%><strong><font style="font-size:16px">MESSAGE TITLE</font></strong></td>
<td width= 14%><strong><font style="font-size:16px">DOWNLOAD</font></strong></td>
</tr>';
                   @$sn=0;           
                while (@$row3 = mysql_fetch_array(@$result)) {
                @extract(@$row3);
                @$sn=$sn+1;
                echo "
               <tr valign='middle'"; if($sn % 2 == 0){
        echo "bgcolor='#CC99FF'";}
        echo " ><td width=6% valign='middle' align='center'><font style='font-size:14px'>  $sn";
            echo "</font></td>
            <td width= 75%>    <font style='font-size:14px'>         
               $message_title
               </font></td>
               <td width= 14% align='center'>             
                <a href='http://koinoniadownloads.org/messages/$message_title.mp3'><img src='http://koinoniadownloads.org/images/DOWNLOAD.png' width='30' height='30' /></a>
               </td>
               </tr>";
                }
                echo '</table>'; }
?>
</body>
</html>