MyBB Community Forums

Full Version: Problem with Update to 1.8x
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

First, I demand that anyone answer this my discussion, is a member of Mybb Staff, or otherwise aware and is sure of his answer.

Thanks.

Since the problem is serious, I expect as much seriousness in answering.

Ah, thank you in advance anyone who reaches out to help me.

The problem is the following:



Today I decided to upgrade my Mybb (1.6.15) to the series 1.8x

To do so, of course I opened the guide in a browser window> http://docs.mybb.com/1.8/install/upgrade/

So I closed my board and I put .htaccess.

Then I updated the various files by the procedure explained, but something went wrong ....

So I used the site backup and database backup to recover everything.

I did not care, because I could restore everything and start again

But still the site (the two backups are successfully uploaded) has many bugs.

First, the responses sent by the box "Quick Reply" are not sent, the post in the shoutbox are not send succesfully, the shoutbox do not work correctly> http://yugiohspirits.altervista.org/forum.php

Second, the "lastpost" are not displayed, but messages appear SQL Error> http://yugiohspirits.altervista.org/show...n=lastpost (<example)

There is a problem with profile of users > http://yugiohspirits.altervista.org/memb...ile&uid=87 (< example)

There is this warning then, in the bottom of the forum>

MyBB SQL Error

MyBB Has experienced an internal SQL error and can not continue.

SQL Error:
1054 - Unknown column 'longlastip' in 'field list'
query:
UPDATE mybb_users September lastvisit = '1416151653', lastactive = '1416166670', lastip .160.170.54 = '94 ', longlastip =' 1587587638 'WHERE uid = '87'

Please contact the MyBB Group for support.


Help me please D:
in simple words, it looks like earlier version files are not fully restored.
if admin panel login is working, run file verification tool available at tools & maintenance section to find the
changed / missing files. ignore files reported in install folder. you may have to replace most of the reported files.
Thanks .m. Smile

If I delete all , reinstall MyBB, load the two backups ( website and database) ? Would solve the problem?

In tools and maintenance - > file verification the system said: " destination not allowed , unlocks the connection panel AlterVista ( Resources> PHP Settings ) "

What do I do ?
if you have recent backups of files and database (both taken while forum is kept offline) then
you can delete everything (files & database) and upload both the backups (no need of installing)
.m. you have a private message Smile
Hi,


A member of my forum, pretty expert - or at least that's what he says - in Mybb and the various codes like that, said this:


"Disabled, uninstalled all plugins.
Do a good backup, and database servers.
Install MyBB 1.8.2: http://www.mybb.com/download.
Extract the zip.
Load the contents of the upload folder in the root of your forum.
Run the upgrade script I turn to the install folder from the browser: http://www.iltuodominio.it/install.
After running the upgrade script, you should have successfully installed MyBB 1.8.2, at this point you need to go to:
Update the package of Italian with the one available for the 1.8.x version of MyBB.
Upgrade the plugins, check for each plugin installed if the respective author has updated, checking for the new site for the MyBB mods: http://community.mybb.com/mods.php?actio...y= plugins. If that is not present, you can try changing the compatibility function _info plugin.
Update the template. I recommend to do it again from scratch or install a new one, as mentioned above, so that it is optimized to 100%. Or alternatively, you can try to see this guide: Basic Theme Upgrading 1.6 to 1.8, but it is not assured that the template is fully optimized for the 1.8.x series, if the template is quite customized."



I would like to ask you a few things regarding this procedure:

1) Following this procedure, would solve my problems?

2) But doing as he says, the settings for MyBB, users and their posts and threads are lost?

3) The errors disappear?

4) That is done by ACP a database backup? If not, how do I do that?

5) And how do I make a backup of the server?



Thanks for the answers
upgrading to MyBB 1.8.2 in correct procedure as given above (run install/upgrade.php file) might solve the issues

however all the plugins should be deactivated before upgrading and most of them might not be compatible with MyBB 1.8.2

users, threads & posts are retained if upgrade is done. plugins settings might be lost.

admin control panel has database backup facility.

web host control panel should be having files backup facility and also database backup facility.
How can I make a server backup?

Database backup from ACP?

So, I ran upgrading and it's all ok.

Except for various bugs, but surely due to the issue that is being used to 1.6x.

Any error is only one, when you log on to ACP:

Fatal error: Call to undefined method pluginSystem :: run_hooks_by_ref () in /membri/yugiohspirits/admin/modules/portal/module_meta.php on line 26

And of course I checked the line that causes this error:


 $plugins-> run_hooks_by_ref ("admin_portal_menu", $ sub_menu); 

I have to cancel proportal then?

Thinking about it, however, if you delete it, I have to replace forum.php in index.php index.php and in portale.php, otherwise happens a monstrous mess.

How to fix?

AH, and that line of code is part of this whole:

<?php
/***************************************************************
 * ProPortal
 * Copyright © 2010 ProMyBB, All Rights Reserved
 *
 * Website: http://www.promybb.com/
 * License: http://creativecommons.org/licenses/by-nc-sa/3.0/
 ***************************************************************/

// Disallow direct access to this file for security reasons
if(!defined("IN_MYBB"))
{
	die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}

function portal_meta()
{
	global $page, $lang, $plugins;
	
	$sub_menu = array();
	$sub_menu['10'] = array("id" => "info", "title" => $lang->portal_info, "link" => "index.php?module=portal/info");
	$sub_menu['20'] = array("id" => "blocks", "title" => $lang->portal_block_management, "link" => "index.php?module=portal/blocks");
	$sub_menu['30'] = array("id" => "pages", "title" => $lang->portal_page_management, "link" => "index.php?module=portal/pages");
	$sub_menu['40'] = array("id" => "settings", "title" => $lang->portal_settings, "link" => "index.php?module=portal/settings");
	
	$plugins->run_hooks_by_ref("admin_portal_menu", $sub_menu);

	$page->add_menu_item($lang->portal, "portal", "index.php?module=portal", 10, $sub_menu);

	return true;
}

function portal_action_handler($action)
{
	global $page, $lang, $plugins;
	
	$page->active_module = "portal";
	
	$actions = array(
		'settings' => array('active' => 'settings', 'file' => 'settings.php'),
		'blocks' => array('active' => 'blocks', 'file' => 'blocks.php'),
		'pages' => array('active' => 'pages', 'file' => 'pages.php'),
		'info' => array('active' => 'info', 'file' => 'info.php')
	);
	
	$plugins->run_hooks_by_ref("admin_portal_action_handler", $actions);
	
	if(isset($actions[$action]))
	{
		$page->active_action = $actions[$action]['active'];
		return $actions[$action]['file'];
	}
	else
	{
		$page->active_action = "info";
		return "info.php";
	}
}

?> 

proportal is this? Have I reason?