Jump to content
WebFlake
  • 0

Error 1615


Alex94

Question

Error 1615

So lately the server has been slow and had heavy traffic, so I asked my provider to move to a new server.

Ever since the transition to the new server, I been getting the following SQL error: IPS\Db\Exception: Prepared statement needs to be re-prepared (1615)

I thought updating to the latest IPB software could help but the error is still there.

Link to comment
Share on other sites

Recommended Posts

  • 0

For those that posted its an old error this was fixed in 5.1.2 min requirement for IPS 4.1 to run is 5.6 (maybe it was 5.4 mysql)

So the error is still there but to me it looks like two things

  • Broken database
  • Broken Mysql user

VAEfvMI.png

Liked what i posted remember to feed me a cookie ->
Or you can add a cookie to myCookieJar

Link to comment
Share on other sites

  • 0

Contact your host/provider. Appears to be an issue with their MySQL server relating to the "table_definition_cache" setting from what my research indicates. They will most likely need to alter that setting to something that will allow your site to operate as intended.

Link to comment
Share on other sites

  • 0
9 hours ago, Alex94 said:

Error 1615

So lately the server has been slow and had heavy traffic, so I asked my provider to move to a new server.

Ever since the transition to the new server, I been getting the following SQL error: IPS\Db\Exception: Prepared statement needs to be re-prepared (1615)

I thought updating to the latest IPB software could help but the error is still there.

Can you post the full error message? Might be that you can just run a Query to fix it OR its a permission issue. But as @Jrock kind of said It's more the host that screwed with moving the files on the server (permissions etc) then its your fault :P If all you did was request a server move.

  • Upvote 1

VAEfvMI.png

Liked what i posted remember to feed me a cookie ->
Or you can add a cookie to myCookieJar

Link to comment
Share on other sites

  • 0
SELECT * FROM `core_widget_areas` WHERE app='forums' AND module='forums' AND controller='index'
IPS\Db\Exception: Prepared statement needs to be re-prepared (1615)
#0 /home/u580595389/public_html/system/Db/Select.php(356): IPS\_Db->preparedQuery('/*IPS\\Dispatche...', Array, true)
#1 /home/u580595389/public_html/system/Db/Select.php(418): IPS\Db\_Select->runQuery()
#2 /home/u580595389/public_html/system/Dispatcher/Front.php(427): IPS\Db\_Select->rewind()
#3 /home/u580595389/public_html/system/Dispatcher/Dispatcher.php(131): IPS\Dispatcher\_Front->finish()
#4 /home/u580595389/public_html/index.php(13): IPS\_Dispatcher->run()
#5 {main}

 

Basically each error always has the line: IPS\Db\Exception: Prepared statement needs to be re-prepared (1615)

Here's another error:

SELECT word_key, word_default, word_custom FROM `core_sys_lang_words` WHERE lang_id=1 AND word_key IN('__indefart_content_record_comments_title','__indefart_content_record_reviews_title','content_db_lang_ia_1','__defart_content_record_comments_title','__defart_content_record_reviews_title','content_db_lang_sl_1','content_db_lang_su_1','content_record_comment_title','content_record_review_title','content_record_comments_title','content_record_comments_title_lc','content_record_reviews_title','content_record_reviews_title_lc','content_db_lang_pu_1','content_db_lang_pl_1','content_field_1','content_field_2','forums','select_forum','start_new_topic','toggle_this_category','forums_forum_4','forums_forum_9','forums_forum_9_desc','posts_no_number','view_user_profile','byline_nodate','get_last_post','_date_this_year_short','_date_this_year_long','forums_forum_33','redirect_hits','forums_forum_33_desc','forums_forum_34','redirect_hits','forums_forum_34_desc','forums_forum_5','forums_forum_32','forums_forum_32_desc','posts_no_number','view_user_profile','byline_nodate','f_days_short','_date_this_week_c','forums_forum_10','forums_forum_10_desc','posts_no_number','view_user_profile','byline_nodate','f_hours_short','f_hours','_date_ago_c','forums_forum_11','forums_forum_11_desc','posts_no_number','view_user_profile','byline_nodate','f_days_short','_date_this_week_c','forums_forum_6','forums_forum_12','forums_forum_12_desc','posts_no_number','_date_this_year_short','_date_last_year_long','forums_forum_35','forums_forum_35_desc','posts_no_number','forums_forum_13','forums_forum_13_desc','posts_no_number','f_days_short','_date_this_week_c','forums_forum_7','forums_forum_14','forums_forum_14_desc','posts_no_number','_date_this_year_short','_date_this_year_long','forums_forum_15','forums_forum_27','forums_forum_28','forums_forum_29','forums_forum_15_desc','posts_no_number','f_minutes_short','f_minutes','_date_ago_c','forums_forum_16','forums_forum_45','forums_forum_44','forums_forum_16_desc','posts_no_number','view_user_profile','byline_nodate','f_minutes_short','f_minutes','_date_ago_c','forums_forum_17','forums_forum_24','forums_forum_19','forums_forum_23','forums_forum_20','forums_forum_22','forums_forum_17_desc','posts_no_number','view_user_profile','byline_nodate','f_hours_short','f_hours','_date_ago_c','forums_forum_25','forums_forum_26','forums_forum_25_desc','posts_no_number','view_user_profile','byline_nodate','_date_this_year_short','_date_this_year_long','forums_forum_30','forums_forum_47','forums_forum_30_desc','posts_no_number','f_days_short','_date_yesterday_c','forums_forum_8','forums_forum_31','forums_forum_43','forums_forum_36','forums_forum_40','forums_forum_42','forums_forum_41','forums_forum_46','forums_forum_39','forums_forum_37','forums_forum_38','forums_forum_31_desc','posts_no_number','_date_this_year_short','_date_this_year_long','jump_to_content_desc','jump_to_content','search_everything','advanced_search','search_placeholder','frontnavigation_forums','menu_item_54','form_form_4','form_form_7','form_form_5','menu_item_59','menu_item_33','menu_item_34','menu_item_35','menu_item_36','menu_item_38','menu_item_39','leaderboard_title','more','menu_content','view_my_profile','menu_profile','my_attachments','menu_settings_title','menu_followed_content','edit_account_settings','menu_settings','menu_manage_ignore','menu_modcp','menu_admincp','sign_out','create_menu_title','create_menu','add_announcement','announcement','topic','select_category','file_download','cms_select_category','cms_create_menu_records_1','gallery_image','select_calendar','event','form_submit','userbar_notifications','notification_options','notifications','see_all_notifications','userbar_messages','compose_new','message_sent','inbox','go_to_inbox','userbar_reports','report_center_header','report_center_link','stream_title_1','mark_site_read','mark_site_read_button','home','block_announcements','block_whosOnline','block_whos_online_info_members','block_whos_online_info_anonymous','block_whos_online_info_guests','see_full_list','block_Blocks','widget_title_27ba48f54c2ab62df982ededea0ab094','view_user_profile','replies_number','view_this_topic','byline_nodate','_date_this_week_c','topic_started_date','replies_number','view_this_topic','_date_this_week_c','topic_started_date','replies_number','view_this_topic','_date_this_year_short','_date_this_year_long','topic_started_date','view_user_profile','replies_number','view_this_topic','byline_nodate','_date_this_year_short','_date_this_year_long','topic_started_date','replies_number','view_this_topic','_date_this_week_c','topic_started_date','replies_number','featured','view_this_topic','_date_this_year_short','_date_this_year_long','topic_started_date','replies_number','view_this_topic','_date_this_week_c','topic_started_date') and word_js=0
IPS\Db\Exception: Prepared statement needs to be re-prepared (1615)
#0 /home/u580595389/public_html/system/Db/Select.php(356): IPS\_Db->preparedQuery('/*IPS\\_Lang::pa...', Array, true)
#1 /home/u580595389/public_html/system/Db/Select.php(418): IPS\Db\_Select->runQuery()
#2 /home/u580595389/public_html/system/Lang/Lang.php(1446): IPS\Db\_Select->rewind()
#3 /home/u580595389/public_html/system/Widget/Widget.php(754): IPS\_Lang->parseOutputForDisplay('\n\n\t<h3 class='i...')
#4 /home/u580595389/public_html/system/Theme/Theme.php(780) : eval()'d code(13650): IPS\_Widget->__toString()
#5 /home/u580595389/public_html/system/Theme/SandboxedTemplate.php(57): IPS\Theme\class_core_front_global->widgetContainer('sidebar', 'vertical')
#6 /home/u580595389/public_html/system/Theme/Theme.php(780) : eval()'d code(11342): IPS\Theme\_SandboxedTemplate->__call('widgetContainer', Array)
#7 /home/u580595389/public_html/system/Theme/SandboxedTemplate.php(57): IPS\Theme\class_core_front_global->sidebar('right')
#8 /home/u580595389/public_html/system/Theme/Theme.php(780) : eval()'d code(5216): IPS\Theme\_SandboxedTemplate->__call('sidebar', Array)
#9 /home/u580595389/public_html/system/Theme/SandboxedTemplate.php(57): IPS\Theme\class_core_front_global->globalTemplate('98ec2b7ca8b1dce...', '\n\n\n<div class='...', Array)
#10 /home/u580595389/public_html/system/Dispatcher/Dispatcher.php(149): IPS\Theme\_SandboxedTemplate->__call('globalTemplate', Array)
#11 /home/u580595389/public_html/system/Dispatcher/Standard.php(104): IPS\_Dispatcher->finish()
#12 /home/u580595389/public_html/system/Dispatcher/Front.php(524): IPS\Dispatcher\_Standard->finish()
#13 /home/u580595389/public_html/system/Dispatcher/Dispatcher.php(131): IPS\Dispatcher\_Front->finish()
#14 /home/u580595389/public_html/index.php(13): IPS\_Dispatcher->run()
#15 {main}

 

Edited by Cookie Monster
Added code syntax
Link to comment
Share on other sites

  • 0
12 minutes ago, Alex94 said:

SELECT * FROM `core_widget_areas` WHERE app='forums' AND module='forums' AND controller='index'
IPS\Db\Exception: Prepared statement needs to be re-prepared (1615)
#0 /home/u580595389/public_html/system/Db/Select.php(356): IPS\_Db->preparedQuery('/*IPS\\Dispatche...', Array, true)
#1 /home/u580595389/public_html/system/Db/Select.php(418): IPS\Db\_Select->runQuery()
#2 /home/u580595389/public_html/system/Dispatcher/Front.php(427): IPS\Db\_Select->rewind()
#3 /home/u580595389/public_html/system/Dispatcher/Dispatcher.php(131): IPS\Dispatcher\_Front->finish()
#4 /home/u580595389/public_html/index.php(13): IPS\_Dispatcher->run()
#5 {main}

 

That to me looks like your missing .htaccess, are you able to access AdminCP at all ?

VAEfvMI.png

Liked what i posted remember to feed me a cookie ->
Or you can add a cookie to myCookieJar

Link to comment
Share on other sites

  • 0

Well putting it into the htaccess didn't help, just the same error. The message is:

A57zmqv.jpg

Sorry for just the image, the forums thought the error messages was spam.

EDIT: sorry I forgot to make the changes live. Here's what it does when I put it into htaccess.

5drMUbu.jpg

Link to comment
Share on other sites

  • 0
24 minutes ago, Alex94 said:

Well putting it into the htaccess didn't help, just the same error. The message is:

A57zmqv.jpg

Sorry for just the image, the forums thought the error messages was spam.

EDIT: sorry I forgot to make the changes live. Here's what it does when I put it into htaccess.

5drMUbu.jpg

Don't put SQL in .htaccess :P 

Here is a htaccess file you can fill

<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map)(\?|$) /404error.php [L,NC]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

 

VAEfvMI.png

Liked what i posted remember to feed me a cookie ->
Or you can add a cookie to myCookieJar

Link to comment
Share on other sites

  • 0

Yea <.< just trying to make it work. lol

Ok I just updated the htaccess and the error is still occurring.

Originally the htacces was:

<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map)(\?|$) /404error.php [L,NC]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

<IfModule mod_security2.c>
SecRuleRemoveById 340009
</IfModule>

This is the only advice the host support is saying: "I can confirm this error is probably related to your laravel configuration."

Link to comment
Share on other sites

  • 0
Just now, Alex94 said:

Yea <.< just trying to make it work. lol

Ok I just updated the htaccess and the error is still occurring.

Originally the htacces was:

<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map)(\?|$) /404error.php [L,NC]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

<IfModule mod_security2.c>
SecRuleRemoveById 340009
</IfModule>

Ok so the problem is not htaccess the problem is the database and the mysql.

So i would suggest to do the following, create a new database, export the old one import it into a new one.

Then Set up a new USER (Cpanel right?) give it all permissions, then in conf_global.php change the db user, db name, password and see if that fixes it.

VAEfvMI.png

Liked what i posted remember to feed me a cookie ->
Or you can add a cookie to myCookieJar

Link to comment
Share on other sites

  • 0

Just curious how long does importing take? Exporting was just a second, but uploading seems to be longer. Through phpMyAdmin, the upload is still at 0% with a counter clockwise circle on the web tab :/

Hopefully my google fiber kicks in some time soon. :P

Link to comment
Share on other sites

  • 0
Just now, Alex94 said:

Just curious how long does importing take? Exporting was just a second, but uploading seems to be longer. Through phpMyAdmin, the upload is still at 0% with a counter clockwise circle on the web tab :/

Hopefully my google fiber kicks in some time soon. :P

Depends on your connection and how big the file is. What i can suggest is to make sure you ZIP the file, and use REPLACE instead of INSERT INTO

This makes the cycle easier, as it doesn't have to check if there is anything in the table before you insert it, it will just replace it.

Also try HeidiSQL just make sure you have RemoteSQL activated (So in Cpanel you need to add either % or your IP) to allow connection to the server, consider it like a firewall.

With HeidiSQL you can do all sorts of things you can do with PHPmyAdmin but its easier to execute and a bit faster.

VAEfvMI.png

Liked what i posted remember to feed me a cookie ->
Or you can add a cookie to myCookieJar

Link to comment
Share on other sites

  • 0

Every time I try to import, it keeps saying no database selected. Do you know the correct syntax? I tried using DROP XXX ,CREATE XXX, and USE XXX. Even tried just importing the way it was when I export it. 

Also I tried connected through HeidiSQL and even allowed my IP, but it still says Host X.X.X.X is now allowed to connect to this MariaDB server

EDIT: Good news, I'm finally inside of HeidiSQL

Edited by Alex94
Link to comment
Share on other sites

  • 0
11 hours ago, Alex94 said:

Every time I try to import, it keeps saying no database selected. Do you know the correct syntax? I tried using DROP XXX ,CREATE XXX, and USE XXX. Even tried just importing the way it was when I export it. 

Also I tried connected through HeidiSQL and even allowed my IP, but it still says Host X.X.X.X is now allowed to connect to this MariaDB server

EDIT: Good news, I'm finally inside of HeidiSQL

Did HeidiSQL work? 

I'd you can't create xxx

Check your permissions for the user ? 

VAEfvMI.png

Liked what i posted remember to feed me a cookie ->
Or you can add a cookie to myCookieJar

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...