vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Showing Latest Posts on FORUMHOME (https://vborg.vbsupport.ru/showthread.php?t=326167)

MarkFL 03-06-2018 04:08 AM

1 Attachment(s)
I have attached a "first draft" of the product. Please give this a try and let me know of any changes you would like. :)

scottkoz20 03-06-2018 01:50 PM

Quote:

Originally Posted by MarkFL (Post 2593303)
I have attached a "first draft" of the product. Please give this a try and let me know of any changes you would like. :)

hey Mark -

When I enable this, my Forumhome triggers this SQL error - the rest of the forum is fine.

Code:

Database error in vBulletin 4.2.2:

Invalid SQL:

                SELECT post.*, thread.title, thread.forumid, thread.prefixid, thread.iconid, thread.postuserid, thread.dateline AS t_dateline, thread.pollid, thread.sticky, user.*, icon.iconpath, icon.title AS icon_title
                FROM post AS post
                INNER JOIN thread AS thread
                ON thread.threadid = post.threadid
                INNER JOIN user AS user
                ON user.userid = post.userid
                LEFT JOIN icon AS icon
                ON icon.iconid = thread.iconid
                LEFT JOIN phrase AS phrase
                ON phrase.varname = CONCAT('prefix_', thread.prefixid, '_title_rich')
                WHERE post.visible = 1
                ORDER BY post.dateline DESC;

MySQL Error  : Incorrect key file for table '/tmp/#sql_24f2_2.MYI'; try to repair it
Error Number  : 126
Request Date  : Tuesday, March 6th 2018 @ 09:42:49 AM
Error Date    : Tuesday, March 6th 2018 @ 09:43:55 AM
Script        : http://www.sportscardforum.com/forum.php
Referrer      : https://www.sportscardforum.com/admincp/index.php?do=head
IP Address    : 74.77.177.253
Username      : scottkoz20
Classname    : vB_Database_MySQLi
MySQL Version : 5.6.38

I have it off at the moment - I need to rebuild my dev site this week as I blew it up (had to try this live :erm: )

MarkFL 03-06-2018 02:18 PM

1 Attachment(s)
Ah, I didn't take into account running this query on a large database. I have put a limit on the query...try this updated version please. :)

scottkoz20 03-06-2018 02:32 PM

same error

Code:

Database error in vBulletin 4.2.2:

Invalid SQL:

                SELECT post.*, thread.title, thread.forumid, thread.prefixid, thread.iconid, thread.postuserid, thread.dateline AS t_dateline, thread.pollid, thread.sticky, user.*, icon.iconpath, icon.title AS icon_title
                FROM post AS post
                INNER JOIN thread AS thread
                ON thread.threadid = post.threadid
                INNER JOIN user AS user
                ON user.userid = post.userid
                LEFT JOIN icon AS icon
                ON icon.iconid = thread.iconid
                LEFT JOIN phrase AS phrase
                ON phrase.varname = CONCAT('prefix_', thread.prefixid, '_title_rich')
                WHERE post.visible = 1
                ORDER BY post.dateline DESC
                LIMIT 10;

MySQL Error  : Incorrect key file for table '/tmp/#sql_24f2_2.MYI'; try to repair it
Error Number  : 126
Request Date  : Tuesday, March 6th 2018 @ 10:23:52 AM
Error Date    : Tuesday, March 6th 2018 @ 10:25:35 AM
Script        : http://www.sportscardforum.com/forum.php
Referrer      : https://www.sportscardforum.com/admincp/index.php?do=head
IP Address    : 74.77.177.253
Username      : scottkoz20
Classname    : vB_Database_MySQLi
MySQL Version : 5.6.38

--------------- Added [DATE]1520354018[/DATE] at [TIME]1520354018[/TIME] ---------------

i wonder if the issue is on my /tmp directory

MarkFL 03-06-2018 02:37 PM

Hmm...I have never encountered that error before, and doing a search led me to believe it was due to a disk space issue on your server as a result of a query on all your posts. So, I figured limiting the query would cure it.

Dave 03-06-2018 02:45 PM

Looks like OP needs to run a repair & optimize query against his database.

scottkoz20 03-06-2018 02:58 PM

Quote:

Originally Posted by MarkFL (Post 2593316)
Hmm...I have never encountered that error before, and doing a search led me to believe it was due to a disk space issue on your server as a result of a query on all your posts. So, I figured limiting the query would cure it.

is it possible to limit the query to the last day (24 hours)

In the meantime, I am working on table optimization and checking space issue on /tmp on my server

MarkFL 03-06-2018 03:39 PM

1 Attachment(s)
Quote:

Originally Posted by scottkoz20 (Post 2593319)
is it possible to limit the query to the last day (24 hours)

In the meantime, I am working on table optimization and checking space issue on /tmp on my server

I've added an optional "Hours Limit" setting that will allow you to select posts made only during the last x hours.

CAG CheechDogg 03-06-2018 04:30 PM

Where exactly is this supposed to display and what does it look like ? lol ...

MarkFL 03-06-2018 04:42 PM

1 Attachment(s)
Quote:

Originally Posted by CAG CheechDogg (Post 2593321)
Where exactly is this supposed to display and what does it look like ? lol ...

It displays on the index script (home) as well as other selected scripts, a block containing links to the most recent posts. Here's a screenshot from my local dev site:

https://vborg.vbsupport.ru/attachmen...1&d=1520361685


All times are GMT. The time now is 05:00 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01313 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete