PHP and MySQL advise?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • voyger
    Senior Member
    • Jun 2017
    • 381

    #16
    still my can't sort out my problem check all template there is no error
    is there any simplify help to sort out ?
    voyger.: In Almighty God I trust, everyone else has to provide evidence."

    vBulletin Version 5.5.5

    Comment

    • In Omnibus
      Senior Member
      • Apr 2010
      • 2310

      #17
      It sounds like you deleted your theme. I'm using PHP 7.3 without any issues.

      Comment

      • voyger
        Senior Member
        • Jun 2017
        • 381

        #18
        never delete any theme are you talk about the VB default theme?
        voyger.: In Almighty God I trust, everyone else has to provide evidence."

        vBulletin Version 5.5.5

        Comment

        • Wayne Luke
          vBulletin Technical Support Lead
          • Aug 2000
          • 73976

          #19
          I can't recreate the warnings using PHP 7.3. However, they are just warnings and shouldn't affect the display of your page at this time. You should run production servers with display errors and warnings off. The only way to really know where it is occurring is to get a fatal error and see where the processing stops.
          Translations provided by Google.

          Wayne Luke
          The Rabid Badger - a vBulletin Cloud demonstration site.
          vBulletin 5 API

          Comment

          • voyger
            Senior Member
            • Jun 2017
            • 381

            #20
            how i do run production servers with display errors and warnings off
            from the server?

            thanks for helping
            voyger.: In Almighty God I trust, everyone else has to provide evidence."

            vBulletin Version 5.5.5

            Comment

            • Wayne Luke
              vBulletin Technical Support Lead
              • Aug 2000
              • 73976

              #21
              The best method is to set the display_error directive to False in your php.ini file. If you don't have access to the php.ini file, then you should ask your hosting provider for the best method to do this in their server environment.
              Translations provided by Google.

              Wayne Luke
              The Rabid Badger - a vBulletin Cloud demonstration site.
              vBulletin 5 API

              Comment

              • voyger
                Senior Member
                • Jun 2017
                • 381

                #22
                sorry for the silly question can you tell where I found this
                php.ini?
                need step by step guide pleas

                PS on server core/include found
                init.php is this the right one?

                on core/include inut.php is set on false this what I got



                PHP Code:
                if ($pass_ref_check == false)
                   {
                    die(
                'In order to accept POST requests originating from this domain, the admin must add the domain to the whitelist.');
                   }
                  }
                 }
                }


                // Google Web Accelerator can display sensitive data ignoring any headers regarding caching
                // it's a good thing for guests but not for anyone else
                if ($vbulletin->userinfo['userid'] > AND isset($_SERVER['HTTP_X_MOZ']) AND strpos($_SERVER['HTTP_X_MOZ'], 'prefetch') !== false)
                {
                 
                http_response_code(403);
                 die(
                'Prefetching is not allowed due to the various privacy issues that arise.');
                }

                // use the session-specified style if there is one
                if (vB::getCurrentSession()->get('styleid') != 0)
                {
                 
                $vbulletin->userinfo['styleid'] = vB::getCurrentSession()->get('styleid');
                }

                if (isset(
                $languageid))
                {
                 
                $vbulletin->userinfo['languageid'] = $languageid;

                Last edited by voyger; Tue 12 Feb '19, 12:53am.
                voyger.: In Almighty God I trust, everyone else has to provide evidence."

                vBulletin Version 5.5.5

                Comment

                • Mark.B
                  vBulletin Support
                  • Feb 2004
                  • 24286
                  • 6.0.X

                  #23
                  php.ini is a srver file, not a vBulletin file. It has nothing to do with init.php, please do not edit any vBulletin files.
                  You would need to speak to your host about this, as per Wayne's post.
                  MARK.B
                  vBulletin Support
                  ------------
                  My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
                  My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

                  Comment

                  • voyger
                    Senior Member
                    • Jun 2017
                    • 381

                    #24
                    well contact my host they saying the error come from the code
                    as stated by the message the error comes from th file prova/includes/vb5/template.php(369) : eval()'d code on line 23
                    got
                    template.php on my desktop what i need to edit?
                    voyger.: In Almighty God I trust, everyone else has to provide evidence."

                    vBulletin Version 5.5.5

                    Comment

                    • Wayne Luke
                      vBulletin Technical Support Lead
                      • Aug 2000
                      • 73976

                      #25
                      Originally posted by voyger
                      sorry for the silly question can you tell where I found this [LEFT][COLOR=#252C2F][FONT=inherit]php.ini?
                      need step by step guide pleas
                      This is a question we can't answer. It will be listed in your PHPInfo though. AdminCP -> Maintenance -> View PHP Info.

                      Click image for larger version

Name:	2019-02-12_9-04-42.png
Views:	105
Size:	113.4 KB
ID:	4408493

                      Translations provided by Google.

                      Wayne Luke
                      The Rabid Badger - a vBulletin Cloud demonstration site.
                      vBulletin 5 API

                      Comment

                      • voyger
                        Senior Member
                        • Jun 2017
                        • 381

                        #26
                        this what I got must be a way how to fix this error can't upgrade to PHP 7.3 till I solve this problem



                        Click image for larger version

Name:	Capture.PNG
Views:	111
Size:	253.9 KB
ID:	4408500
                        voyger.: In Almighty God I trust, everyone else has to provide evidence."

                        vBulletin Version 5.5.5

                        Comment

                        • Wayne Luke
                          vBulletin Technical Support Lead
                          • Aug 2000
                          • 73976

                          #27
                          So your file is most likely at /opt/php7.3/lib/php.ini. If you can't access this file and edit it, then you will need to discuss this issue with your hosting provider. They are the best and only source for support on Server Configuration. Changing your PHP Settings is Server Configuration. You can get documentation on configuring PHP at https://php.net.
                          Translations provided by Google.

                          Wayne Luke
                          The Rabid Badger - a vBulletin Cloud demonstration site.
                          vBulletin 5 API

                          Comment

                          • voyger
                            Senior Member
                            • Jun 2017
                            • 381

                            #28
                            maybe I haven't explaining myself properly the picture above is from PHP 7.1 as I said can't upgrade to 7.3 because get a error

                            now when I upgrade to PHP7.3 get error on front page hope you get what I mean
                            the error is still here
                            prova/includes/vb5/template
                            .php(369) : eval()'d code on line 23

                            thanks for your patient


                            Click image for larger version  Name:	Capture_LI.jpg Views:	0 Size:	414.4 KB ID:	4408508

                            Click image for larger version  Name:	Capture2_LI.jpg Views:	0 Size:	541.1 KB ID:	4408509
                            voyger.: In Almighty God I trust, everyone else has to provide evidence."

                            vBulletin Version 5.5.5

                            Comment

                            • Wayne Luke
                              vBulletin Technical Support Lead
                              • Aug 2000
                              • 73976

                              #29
                              Then you will need to use PHP 7.1 at this time.

                              None of those are actual Errors. They are Warnings. This can be disabled in your php.ini file by setting the value of display_error to FALSE. This setting should never be set to True on production servers. Since you're not willing to do this, you will have to use the older version of PHP.

                              If they were errors, they would be easier to resolve because the system would halt immediately and the page would not show completely. They are easier to trace. Though if I were to guess, I would suspect that addon showing in your image. It hasn't been updated for years and probably does not completely support newer versions of PHP.
                              Last edited by Wayne Luke; Tue 12 Feb '19, 12:49pm.
                              Translations provided by Google.

                              Wayne Luke
                              The Rabid Badger - a vBulletin Cloud demonstration site.
                              vBulletin 5 API

                              Comment

                              • voyger
                                Senior Member
                                • Jun 2017
                                • 381

                                #30
                                wayne Wrote

                                PHP Code:
                                I would suspect that addon showing in your imageIt hasn't been updated for years and probably does not completely support newer versions of PHP. 
                                can you elaborate when you saying the
                                image. It hasn't been updated for years and probably does not completely support newer versions of PHP
                                what image you talking about

                                thanks
                                voyger.: In Almighty God I trust, everyone else has to provide evidence."

                                vBulletin Version 5.5.5

                                Comment

                                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                                Working...