Jump to content

[solved]why do i get this error please


Recommended Posts

Parse Error: syntax error, unexpected 'isset' (T_ISSET)

500 Internal Server Error - FatalErrorException
image.gif.3cdf4c435e26a40f4a374bbe54be01cc.gif

Stack Trace

  1. in modules/xipblog/classes/xippostsclass.php at line 292  image.gif.969175d0482861bffe8dca5c41e95579.gif
    1.             return false;
    2.         $sql 'SELECT xc.`id_xipposts` FROM `'._DB_PREFIX_.'xipposts` xc WHERE xc.`post_type` = "'.($post_type $post_type 'post').'" AND xc.active = 1 AND xc.`id_xipposts` = '.$id_post;
    3.         $rslts Db::getInstance()->getrow($sql);
    4.             return (isset($rslts['id_xipposts']) && !empty(isset($rslts['id_xipposts']))) ? true false;
    5.     }
    6.     public static function get_the_rewrite($id NULL,$post_type 'post')
    7.     {

Logs  image.gif.27089aec45d989637799af1132877f8c.gif

1 error
  1. INFO - Matched route "admin_module_catalog".
  2. DEBUG - Read existing security token from the session.
  3. DEBUG - User was reloaded from a user provider.
  4. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
  5. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelRequest".
  6. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
  7. DEBUG - Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\SessionListener::onKernelRequest".
  8. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest".
  9. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
  10. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
  11. DEBUG - Notified event "kernel.request" to listener "PrestaShopBundle\EventListener\UserLocaleListener::onKernelRequest".
  12. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\TranslatorListener::onKernelRequest".
  13. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\Security\Http\Firewall::onKernelRequest".
  14. DEBUG - Notified event "kernel.request" to listener "PrestaShop\PrestaShop\Adapter\Security\Admin::onKernelRequest".
  15. DEBUG - Notified event "kernel.request" to listener "PrestaShop\PrestaShop\Adapter\Security\SslMiddleware::onKernelRequest".
  16. DEBUG - Notified event "kernel.request" to listener "PrestaShopBundle\EventListener\TokenizedUrlsListener::onKernelRequest".
  17. DEBUG - Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
  18. DEBUG - Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController".
  19. DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController".
  20. DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController".
  21. DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController".
  22. DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelController".
  23. DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController".
  24. INFO - The Twig_Node::getLine method is deprecated since version 1.27 and will be removed in 2.0. Use getTemplateLine() instead.
  25. WARNING - Translation not found.
  26. WARNING - Translation not found.
  27. DEBUG - SELECT p0_.id AS id_0, p0_.id_employee AS id_employee_1, p0_.id_module AS id_module_2, p0_.date_add AS date_add_3, p0_.date_upd AS date_upd_4 FROM psjq_module_history p0_ WHERE p0_.id_employee = ?
  28. CRITICAL - Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalErrorException: "Parse Error: syntax error, unexpected 'isset' (T_ISSET)" at /home/easymamg/public_html/modules/xipblog/classes/xippostsclass.php line 292
  29. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
  30. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelRequest".
  31. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
  32. DEBUG - Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\SessionListener::onKernelRequest".
  33. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest".
  34. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
  35. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
  36. DEBUG - Notified event "kernel.request" to listener "PrestaShopBundle\EventListener\UserLocaleListener::onKernelRequest".
  37. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\TranslatorListener::onKernelRequest".
  38. DEBUG - Notified event "kernel.request" to listener "Symfony\Component\Security\Http\Firewall::onKernelRequest".
  39. DEBUG - Notified event "kernel.request" to listener "PrestaShop\PrestaShop\Adapter\Security\Admin::onKernelRequest".
  40. DEBUG - Notified event "kernel.request" to listener "PrestaShop\PrestaShop\Adapter\Security\SslMiddleware::onKernelRequest".
  41. DEBUG - Notified event "kernel.request" to listener "PrestaShopBundle\EventListener\TokenizedUrlsListener::onKernelRequest".
  42. DEBUG - Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
  43. DEBUG - Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController".
  44. DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController".
  45. DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController".
  46. DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController".
  47. DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelController".
  48. DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController".

Stack Trace (Plain Text)  image.gif.d8ddac0c91b5063efe69bb7173d75924.gif

Link to comment
Share on other sites

You are getting this error, because the file of your xipblog is wrong coded and cannot trespass the php-version you are using, delivering an error.

So there are two possibilities for to debug the problem:

1) correct the php error - ask for developer of xipblog to debug the problem

2) change the php-version in use on server and see if error disappears. In most cases this help, but it's not a guarantee, better to ask developer to debug his erroneous code.

Link to comment
Share on other sites

From what I can see there is a closing clamp/round bracket on wrong place on the line 292 of the file modules/xipblog/classes/xippostsclass.php .

Line should be, (try it out by changing that line): If you don't know how, please ask developer fo the module to fix the error.

  return (isset($rslts['id_xipposts'])) && !empty(isset($rslts['id_xipposts'])) ? true : false;
Link to comment
Share on other sites

On 12/29/2017 at 10:36 AM, selectshop.at said:

You are getting this error, because the file of your xipblog is wrong coded and cannot trespass the php-version you are using, delivering an error.

So there are two possibilities for to debug the problem:

1) correct the php error - ask for developer of xipblog to debug the problem

2) change the php-version in use on server and see if error disappears. In most cases this help, but it's not a guarantee, better to ask developer to debug his erroneous code.

Thanks for the help. I changed my php version and the problem was solved!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...