Announcement

Collapse
No announcement yet.

This day in History??

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    my hosting tech are fools lol

    PHP Code:
    [26-Apr-2023 23:25:29 UTCPHP Warning: Use of undefined constant vsa_onlinecountup_prefix assumed 'vsa_onlinecountup_prefix' (this will throw an Error in a future version of PHPin /home/james/public_html/forum/includes/class_core.php(4684) : eval()'d code on line 10
    [26-Apr-2023 23:25:29 UTC] PHP Warning: Use of undefined constant vsa_onlinecountup_hours_enable - assumed '
    vsa_onlinecountup_hours_enable' (this will throw an Error in a future version of PHP) in /home/james/public_html/forum/includes/class_core.php(4684) : eval()'d code on line 42
    [26-Apr-2023 23:25:29 UTCPHP Warning: Use of undefined constant vsa_onlinecountup_hours_enable assumed 'vsa_onlinecountup_hours_enable' (this will throw an Error in a future version of PHPin /home/james/public_html/forum/includes/class_core.php(4684) : eval()'d code on line 79
    [26-Apr-2023 23:25:29 UTC] PHP Warning: Use of undefined constant vsa_onlinecountup_minutes_enable - assumed '
    vsa_onlinecountup_minutes_enable' (this will throw an Error in a future version of PHP) in /home/james/public_html/forum/includes/class_core.php(4684) : eval()'d code on line 96
    [26-Apr-2023 23:25:29 UTCPHP Warning: Use of undefined constant vsa_onlinecountup_seconds_enable assumed 'vsa_onlinecountup_seconds_enable' (this will throw an Error in a future version of PHPin /home/james/public_html/forum/includes/class_core.php(4684) : eval()'d code on line 108
    [26-Apr-2023 23:25:29 UTC] PHP Warning: Use of undefined constant vsa_onlinecountup_suffix - assumed '
    vsa_onlinecountup_suffix' (this will throw an Error in a future version of PHP) in /home/james/public_html/forum/includes/class_core.php(4684) : eval()'d code on line 120
    [26-Apr-2023 23:25:29 UTCPHP Warning: Use of undefined constant memberaction_dropdown_items assumed 'memberaction_dropdown_items' (this will throw an Error in a future version of PHPin /home/james/public_html/forum/includes/functions.php(3273) : eval()'d code on line 26
    [26-Apr-2023 23:25:29 UTC] PHP Warning: Use of undefined constant modtools_basic - assumed '
    modtools_basic' (this will throw an Error in a future version of PHP) in /home/james/public_html/forum/includes/class_core.php(4684) : eval()'d code on line 12
    [26-Apr-2023 23:25:29 UTCPHP Warning: Use of undefined constant modtools_adv assumed 'modtools_adv' (this will throw an Error in a future version of PHPin /home/james/public_html/forum/includes/class_core.php(4684) : eval()'d code on line 12
    [26-Apr-2023 23:25:29 UTC] PHP Warning: Use of undefined constant forumid - assumed '
    forumid' (this will throw an Error in a future version of PHP) in /home/james/public_html/forum/includes/functions_forumlist.php(466) : eval()'d code(4) : eval()'d code on line 1
    [26-Apr-2023 23:25:29 UTC] PHP Warning: Use of undefined constant memberaction_dropdown_items - assumed '
    memberaction_dropdown_items' (this will throw an Error in a future version of PHP) in /home/james/public_html/forum/includes/functions.php(3273) : eval()'d code on line 26
    [26-Apr-2023 23:25:29 UTCPHP Warning: Use of undefined constant modtools_basic assumed 'modtools_basic' (this will throw an Error in a future version of PHPin /home/james/public_html/forum/includes/class_core.php(4684) : eval()'d code on line 12
    [26-Apr-2023 23:25:29 UTC] PHP Warning: Use of undefined constant modtools_adv - assumed '
    modtools_adv' (this will throw an Error in a future version of PHP) in /home/james/public_html/forum/includes/class_core.php(4684) : eval()'d code on line 12
    [26-Apr-2023 23:25:29 UTCPHP Warning: Use of undefined constant forumid assumed 'forumid' (this will throw an Error in a future version of PHPin /home/james/public_html/forum/includes/functions_forumlist.php(466) : eval()'d code(4) : eval()'d code on line 1
    [26-Apr-2023 23:25:29 UTCPHP Warning: Use of undefined constant forumid assumed 'forumid' (this will throw an Error in a future version of PHPin /home/james/public_html/forum/includes/functions_forumlist.php(466) : eval()'d code(4) : eval()'d code on line 1
    [26-Apr-2023 23:25:29 UTCPHP Warning: Use of undefined constant memberaction_dropdown_items assumed 'memberaction_dropdown_items' (this will throw an Error in a future version of PHPin /home/james/public_html/forum/includes/functions.php(3273) : eval()'d code on line 26
    [26-Apr-2023 23:25:29 UTC] PHP Warning: Use of undefined constant modtools_basic - assumed '
    modtools_basic' (this will throw an Error in a future version of PHP) in /home/james/public_html/forum/includes/class_core.php(4684) : eval()'d code on line 12
    [26-Apr-2023 23:25:29 UTCPHP Warning: Use of undefined constant modtools_adv assumed 'modtools_adv' (this will throw an Error in a future version of PHPin /home/james/public_html/forum/includes/class_core.php(4684) : eval()'d code on line 12
    [26-Apr-2023 23:25:29 UTC] PHP Warning: Use of undefined constant forumid - assumed '
    forumid' (this will throw an Error in a future version of PHP) in /home/james/public_html/forum/includes/functions_forumlist.php(466) : eval()'d code(4) : eval()'d code on line 1
    [26-Apr-2023 23:25:29 UTC] PHP Warning: Use of undefined constant memberaction_dropdown_items - assumed '
    memberaction_dropdown_items' (this will throw an Error in a future version of PHP) in /home/james/public_html/forum/includes/functions.php(3273) : eval()'d code on line 26
    [26-Apr-2023 23:25:29 UTCPHP Warning: Use of undefined constant modtools_basic assumed 'modtools_basic' (this will throw an Error in a future version of PHPin /home/james/public_html/forum/includes/class_core.php(4684) : eval()'d code on line 12
    [26-Apr-2023 23:25:29 UTC] PHP Warning: Use of undefined constant modtools_adv - assumed '
    modtools_adv' (this will throw an Error in a future version of PHP) in /home/james/public_html/forum/includes/class_core.php(4684) : eval()'d code on line 12
    [26-Apr-2023 23:25:29 UTCPHP Warning: Use of undefined constant forumid assumed 'forumid' (this will throw an Error in a future version of PHPin /home/james/public_html/forum/includes/functions_forumlist.php(466) : eval()'d code(4) : eval()'d code on line 1
    [26-Apr-2023 23:25:29 UTCPHP Warning: Use of undefined constant memberaction_dropdown_items assumed 'memberaction_dropdown_items' (this will throw an Error in a future version of PHPin /home/james/public_html/forum/includes/functions.php(3273) : eval()'d code on line 26
    [26-Apr-2023 23:25:29 UTC] PHP Warning: Use of undefined constant modtools_basic - assumed '
    modtools_basic' (this will throw an Error in a future version of PHP) in /home/james/public_html/forum/includes/class_core.php(4684) : eval()'d code on line 12
    [26-Apr-2023 23:25:29 UTCPHP Warning: Use of undefined constant modtools_adv assumed 'modtools_adv' (this will throw an Error in a future version of PHPin /home/james/public_html/forum/includes/class_core.php(4684) : eval()'d code on line 12
    [26-Apr-2023 23:25:29 UTC] PHP Warning: Use of undefined constant forumid - assumed '
    forumid' (this will throw an Error in a future version of PHP) in /home/james/public_html/forum/includes/functions_forumlist.php(466) : eval()'d code(4) : eval()'d code on line 1
    [26-Apr-2023 23:25:29 UTC] PHP Warning: Use of undefined constant memberaction_dropdown_items - assumed '
    memberaction_dropdown_items' (this will throw an Error in a future version of PHP) in /home/james/public_html/forum/includes/functions.php(3273) : eval()'d code on line 26
    [26-Apr-2023 23:25:29 UTCPHP Warning: Use of undefined constant modtools_basic assumed 'modtools_basic' (this will throw an Error in a future version of PHPin /home/james/public_html/forum/includes/class_core.php(4684) : eval()'d code on line 12
    [26-Apr-2023 23:25:29 UTC] PHP Warning: Use of undefined constant modtools_adv - assumed '
    modtools_adv' (this will throw an Error in a future version of PHP) in /home/james/public_html/forum/includes/class_core.php(4684) : eval()'d code on line 12
    [26-Apr-2023 23:25:29 UTCPHP Warning: Use of undefined constant forumid assumed 'forumid' (this will throw an Error in a future version of PHPin /home/james/public_html/forum/includes/functions_forumlist.php(466) : eval()'d code(4) : eval()'d code on line 1
    [26-Apr-2023 23:25:29 UTCPHP Warning: Use of undefined constant memberaction_dropdown_items assumed 'memberaction_dropdown_items' (this will throw an Error in a future version of PHPin /home/james/public_html/forum/includes/functions.php(3273) : eval()'d code on line 26
    [26-Apr-2023 23:25:29 UTC] PHP Warning: Use of undefined constant modtools_basic - assumed '
    modtools_basic' (this will throw an Error in a future version of PHP) in /home/james/public_html/forum/includes/class_core.php(4684) : eval()'d code on line 12
    [26-Apr-2023 23:25:29 UTCPHP Warning: Use of undefined constant modtools_adv assumed 'modtools_adv' (this will throw an Error in a future version of PHPin /home/james/public_html/forum/includes/class_core.php(4684) : eval()'d code on line 12
    [26-Apr-2023 23:25:29 UTC] PHP Warning: Use of undefined constant forumid - assumed '
    forumid' (this will throw an Error in a future version of PHP) in /home/james/public_html/forum/includes/functions_forumlist.php(466) : eval()'d code(4) : eval()'d code on line 1
    [26-Apr-2023 23:25:29 UTC] PHP Warning: Use of undefined constant memberaction_dropdown_items - assumed '
    memberaction_dropdown_items' (this will throw an Error in a future version of PHP) in /home/james/public_html/forum/includes/functions.php(3273) : eval()'d code on line 26
    [26-Apr-2023 23:25:29 UTCPHP Warning: Use of undefined constant modtools_basic assumed 'modtools_basic' (this will throw an Error in a future version of PHPin /home/james/public_html/forum/includes/class_core.php(4684) : eval()'d code on line 12​ 

    Comment


      #17
      I can give you access, sorry Im not good at that kinda stuff

      Comment


        #18
        Those are just PHP warnings (not technically errors) which shouldn't cause HTTP 500 server error unless you're using PHP 8+ (which the log is referring to as future PHP versions throwing an error instead of warning). Lower PHP versions are more forgiving with those kinds of "undefined constants" warnings. Although ideally those warnings should be fixed but right now they shouldn't cause any error that would stop a web page from loading properly. And besides, the undefined constants mentioned don't seem to be used in the PHP script you posted. They must be coming from other PHP script(s) or vB4 templates.

        Try temporarily enabling debug mode in the /includes/config.php file and adding this line and see if it's going to show error stack trace on the page.

        PHP Code:
        $config['Misc']['debug'] = true
        Helpful? Donate. Thanks!
        Buy me a coffeePayPal QR Code
        Fast VPS Host for vBulletin:
        A2 Hosting & IONOS

        Comment


          #19
          That's what the gave me, I can give you access too look?

          Comment


            #20
            Try enabling debug mode first and it might provide detailed error message on the page.
            Helpful? Donate. Thanks!
            Buy me a coffeePayPal QR Code
            Fast VPS Host for vBulletin:
            A2 Hosting & IONOS

            Comment


              #21
              How I do that via cp or vb admin?

              Comment


                #22
                As I mentioned in post #18, add it in the /includes/config.php file. You can edit the file using FTP, cPanel or similar tool you are using to access the files from the server.
                Helpful? Donate. Thanks!
                Buy me a coffeePayPal QR Code
                Fast VPS Host for vBulletin:
                A2 Hosting & IONOS

                Comment


                  #23
                  ok that worked, tis is what i got

                  PHP Code:
                  syntax errorunexpected '&'expecting end of file on line 25 in /home/james/public_html/forum/includes/block/html.php(95) : eval()'d code
                  #0 /home/james/public_html/forum/includes/class_block.php(130): vB_BlockType_Html->getData()
                  #1 /home/james/public_html/forum/includes/class_block.php(1088): vB_Block->getBlockHTML()
                  #2 /home/james/public_html/forum/includes/class_block.php(1101): vB_BlockManager->getBlockHTML(4, Array)
                  #3 /home/james/public_html/forum/forum.php(649): vB_BlockManager->getSidebarHTML()
                  #4 {main}​ 

                  Comment


                    #24
                    This is the same error as before. I can't find where in my suggested code would cause that syntax error. Can you try to revert to your original code and see if it works?
                    Helpful? Donate. Thanks!
                    Buy me a coffeePayPal QR Code
                    Fast VPS Host for vBulletin:
                    A2 Hosting & IONOS

                    Comment


                      #25
                      The block code?

                      Comment


                        #26
                        the other code wasnt working and gave only 500 error
                        i put this code in and it works

                        PHP Code:
                        ob_start();
                        global 
                        $db,$vbulletin;


                        $mydate =  mktime(000date("m"), date("d")-1date("Y"));
                        $show_count =10;

                        $query sprintf("    SELECT * FROM ".TABLE_PREFIX."event
                                            WHERE visible = 1
                                            AND (dateline_from >= '
                        $mydate' || (dateline_from >= '$mydate' AND dateline_to <= '$mydate' ) || ('$mydate' BETWEEN dateline_from AND dateline_to))
                                            ORDER BY dateline_from ASC LIMIT 
                        $show_count");

                        $event_get vB::$db->query_read($query);

                        $output_bits '';
                        while(
                        $event vB::$db->fetch_array($event_get)) {

                             if(
                        $event['dateline_to'] == )
                             {
                                 
                        $format sprintf("On %s",vbdate('D M jS Y',$event['dateline_from'],false,true,false,true));
                             } else {
                                 
                        $format sprintf("From %s to %s",vbdate('D M jS Y',$event['dateline_from'],false,true,false,true),vbdate('jS M Y',$event['dateline_to'],false,true,false,true));
                             }

                             
                        $output_bits .= sprintf('
                                <div class = "cms_widget_post_bit"><h4 class="cms_widget_post_header"><a href="calendar.php?do=getinfo&e=%d">%s</a></h4>
                                    <p class="cms_widget_post_content">%s</p>
                                 </div>
                                '
                        ,$event['eventid'],$event['title'],$format);

                        }
                        $output $output_bits;

                        ob_end_clean();​ 

                        Comment


                          #27
                          Originally posted by oldfan View Post
                          i put this code in and it works
                          Now use that code that you said is working and then replace the $query part with the one I provided. Does it work?
                          Helpful? Donate. Thanks!
                          Buy me a coffeePayPal QR Code
                          Fast VPS Host for vBulletin:
                          A2 Hosting & IONOS

                          Comment


                            #28
                            II added the code and I get no errors, but the block doesn't show up

                            Comment


                              #29
                              this is what I have now..

                              PHP Code:
                              ob_start();
                              global 
                              $db,$vbulletin;


                              $mydate =  mktime(000date("m"), date("d")-1date("Y"));
                              $show_count =10;


                              $query sprintf("SELECT * FROM " TABLE_PREFIX "event    WHERE visible = 1    AND (       (            MONTH(FROM_UNIXTIME(dateline_from)) = MONTH(NOW()) AND DAY(FROM_UNIXTIME(dateline_from)) = DAY(NOW())       )       OR       (            MONTH(FROM_UNIXTIME(dateline_to)) = MONTH(NOW()) AND DAY(FROM_UNIXTIME(dateline_to)) = DAY(NOW())       )    )    ORDER BY dateline_from ASC LIMIT $show_count");




                              $event_get vB::$db->query_read($query);

                              $output_bits '';
                              while(
                              $event vB::$db->fetch_array($event_get)) {

                                   if(
                              $event['dateline_to'] == )
                                   {
                                       
                              $format sprintf("On %s",vbdate('D M jS Y',$event['dateline_from'],false,true,false,true));
                                   } else {
                                       
                              $format sprintf("From %s to %s",vbdate('D M jS Y',$event['dateline_from'],false,true,false,true),vbdate('jS M Y',$event['dateline_to'],false,true,false,true));
                                   }

                                   
                              $output_bits .= sprintf('
                                      <div class = "cms_widget_post_bit"><h4 class="cms_widget_post_header"><a href="calendar.php?do=getinfo&e=%d">%s</a></h4>
                                          <p class="cms_widget_post_content">%s</p>
                                       </div>
                                      '
                              ,$event['eventid'],$event['title'],$format);

                              }
                              $output $output_bits;

                              ob_end_clean();​ 

                              Comment


                                #30
                                Maybe there are no events in the calendar that match today's date? Try running the SQL query in phpMyAdmin to see if there are records returned.

                                Helpful? Donate. Thanks!
                                Buy me a coffeePayPal QR Code
                                Fast VPS Host for vBulletin:
                                A2 Hosting & IONOS

                                Comment

                                Users Viewing This Page

                                Collapse

                                There is 1 user viewing this forum topic.

                                • Guest Guest

                                Latest Posts

                                Collapse

                                Working...
                                X
                                Searching...Please wait.
                                An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

                                Please push the back button and reload the previous window.'
                                An unexpected error was returned: 'Your submission could not be processed because the token has expired.

                                Please push the back button and reload the previous window.'
                                An internal error has occurred and the module cannot be displayed.
                                There are no results that meet this criteria.
                                Search Result for "|||"