The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hide links to users
#11
The issue is in your navigation right? If so, please paste that.

Your issue is most likely this spacing you have in here
<? Php if (checkMenu (2, $ user-> data () -> id)) {?> <! - Link -> <? Php}?>

Try this:
Code:
<?php if(checkMenu(2,$user->data()->id)) {?><a href="#" Link</a><?php } ?>
  Reply
#12
Many thanks to everyone for their support, they were definitely not the spaces and try with
Code:
hasPerm
and
Code:
checkMenu
but everything went wrong. I guess I have to forget that blog, thank you very much.
  Reply
#13
Is the error coming from your navigation? What is the whole error including file and line? Can you paste that file?
  Reply
#14

<pre>
Code:
<aside id="sidebar-left" class="sidebar-left">
                
                    <div class="sidebar-header">
                        <div class="sidebar-title">
                            Barra de navegación
                        </div>
                        <div class="sidebar-toggle hidden-xs" data-toggle-class="sidebar-left-collapsed" data-target="html" data-fire-event="sidebar-left-toggle">
                            <i class="fa fa-bars" aria-label="Toggle sidebar"></i>
                        </div>
                    </div>
                
                    <div class="nano">
                        <div class="nano-content">
                            <nav id="menu" class="nav-main" role="navigation">
                                <ul class="nav nav-main">
                                    <?php if (checkMenu(2,$user->data()->id)){  //Links for permission level 2 (default admin) ?>
                                    <li><a href="escritorio.php"><i class="fa fa-home" aria-hidden="true"></i><span>Escritorio</span></a></li>
                                    <li class="nav-parent">
                                        <a>
                                            <i class="fa fa-tasks" aria-hidden="true"></i>
                                            <span>Blog</span>
                                        </a>
                                        <ul class="nav nav-children">
                                            <li>
                                                <a href="../blog">
                                                     Ver blog
                                                </a>
                                            </li>
                                            <li>
                                                <a href="administrar-blog.php">
                                                     Administrar blog
                                                </a>
                                            </li>
                                            <li>
                                                <a href="nuevo-post.php">
                                                     Agregar post
                                                </a>
                                            </li>
                                        </ul>
                                    </li>
                                    <li><a href="administrar-paginas.php"><i class="fa fa-copy" aria-hidden="true"></i><span>Páginas</span></a></li>
                                    <li><a href="admin_permissions.php"><i class="fa fa-lock" aria-hidden="true"></i><span>Permisos</span></a></li>
                                    <li><a href="admin_users.php"><i class="fa fa-user" aria-hidden="true"></i><span>Usuarios</span></a></li>
                                    <li><a href="email_settings.php"><i class="fa fa-paper-plane" aria-hidden="true"></i><span>Configuración Email</span></a></li>
                                    <?php } // is user an admin ?>
                                    <li>
                                        <a href="mailbox-folder.html">
                                            <span class="pull-right label label-primary"><?=$msgC?></span>
                                            <i class="fa fa-envelope" aria-hidden="true"></i>
                                            <span>Mensajes</span>
                                        </a>
                                    </li>
                                    <li>
                                        <a href="http://shoropiolabs.com/" target="_blank">
                                            <i class="fa fa-external-link" aria-hidden="true"></i>
                                            <span>Example <em class="not-included">(http://ejemplo.php/)</em></span>
                                        </a>
                                    </li>
                                </ul>
                            </nav>
                
                        </div>
                
                    </div>
                
                </aside>
</pre>
  Reply
#15
Sorry, https://hastebin.com/uwoboboqot.xml
  Reply
#16
https://hastebin.com/zedekoqopi.xml
  Reply
#17
What changes did you make to the admin blog? Can you post that code?
administrar-blog.php
  Reply
#18
This https://hastebin.com/xuyevorapo.xml
  Reply
#19
Try moving
Code:
$query = $db->query("SELECT * FROM blog ORDER BY datetime");
Line 8 above the foreach statement on line 90. Did it break after you added this header on line 47 and this lateral on line 50?
  Reply
#20
I work, congratulations friend you are good.
  Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)