By Sergey on Wednesday, 03 February 2016
Posted in Technical Issues
Likes 0
Views 441
Votes 0
Hello
I bought you a blog. But it does not work when you create a post wrote Unexpected token and sends a notification by e-mail
Hey there,

It seems like your plugin is generating some errors on page when EasyBlog tries to save the blog post,


Fatal error: Call to undefined method JDocumentRaw::addCustomTag() in /var/www/neonser81/data/www/krutim-all.ru/plugins/system/completetextstyles/completetextstyles.php on line 103


I have applied some fixes in your plugin file /plugins/system/completetextstyles/completetextstyles.php at line 102 by adding the codes below:



You should pass this snippet to the plugin developer because the way they are writing their php script is wrong!

There is also another issue with your Joomla installation as the column term_id is missing from your Smart Search extension.


Unknown column 'term_id' in 'field list' SQL=INSERT INTO `r0hq9_finder_tokens_aggregate`


You need to check your database structure but the temporary fix I did was to disable all smart search plugin.
·
Wednesday, 03 February 2016 20:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi sergey,

can you try to check you setting at settings -> general -> composer -> keep session alive -> Yes

Hope this help.
·
Wednesday, 03 February 2016 19:44
·
0 Likes
·
0 Votes
·
0 Comments
·
This setting me included. Even if I create a post in the 10 seconds I do not exactly jump out the error and does not redirect to the page of the blog. respectively, and notifications are sent to subscribers.
·
Wednesday, 03 February 2016 20:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you very much!!!!!
Say the table and what is responsible for the smart search. Can I just drag the worksheet to another site through phpmyadmin?
·
Wednesday, 03 February 2016 21:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Sergey,

It depends on how you upgraded I joomla. I believe the table structure is messed up because of your upgrade. You can try to export those smart search tables from a different database



By the way, please remember to assign your domain to your license to obtain for support in the future. You can do so by accessing your license area at http://stackideas.com/dashboard
·
Wednesday, 03 February 2016 21:03
·
0 Likes
·
0 Votes
·
0 Comments
·
I replaced the table smart search

CREATE TABLE IF NOT EXISTS `r0hq9_finder_tokens_aggregate` (
`term_id` int(10) unsigned NOT NULL,
`map_suffix` char(1) NOT NULL,
`term` varchar(75) NOT NULL,
`stem` varchar(75) NOT NULL,
`common` tinyint(1) unsigned NOT NULL DEFAULT '0',
`phrase` tinyint(1) unsigned NOT NULL DEFAULT '0',
`term_weight` float unsigned NOT NULL,
`context` tinyint(1) unsigned NOT NULL DEFAULT '2',
`context_weight` float unsigned NOT NULL,
`total_weight` float unsigned NOT NULL,
`language` char(3) NOT NULL DEFAULT ''
) ENGINE=MEMORY DEFAULT CHARSET=utf8;

--
-- Индексы сохранённых таблиц
--

--
-- Индексы таблицы `r0hq9_finder_tokens_aggregate`
--
ALTER TABLE `r0hq9_finder_tokens_aggregate`
ADD KEY `token` (`term`),
ADD KEY `keyword_id` (`term_id`);

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

I took original
You could not turn back that he was working to check
·
Wednesday, 03 February 2016 21:07
·
0 Likes
·
0 Votes
·
0 Comments
·
You can't just copy this because the table already exist but there are missing columns. You need to add the correct columns back
·
Wednesday, 03 February 2016 21:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, it was an upgrade from Joomla 2.5 to 3
I entrusted my table and original. His preserved and then removed from the database, and the original set.
Here is my
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- База данных: ``
--

-- --------------------------------------------------------

--
-- Структура таблицы `r0hq9_finder_tokens_aggregate`
--

CREATE TABLE IF NOT EXISTS `r0hq9_finder_tokens_aggregate` (
`language` int(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;


Here is the original

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- База данных: ``
--

-- --------------------------------------------------------

--
-- Структура таблицы `r0hq9_finder_tokens_aggregate`
--

CREATE TABLE IF NOT EXISTS `r0hq9_finder_tokens_aggregate` (
`term_id` int(10) unsigned NOT NULL,
`map_suffix` char(1) NOT NULL,
`term` varchar(75) NOT NULL,
`stem` varchar(75) NOT NULL,
`common` tinyint(1) unsigned NOT NULL DEFAULT '0',
`phrase` tinyint(1) unsigned NOT NULL DEFAULT '0',
`term_weight` float unsigned NOT NULL,
`context` tinyint(1) unsigned NOT NULL DEFAULT '2',
`context_weight` float unsigned NOT NULL,
`total_weight` float unsigned NOT NULL,
`language` char(3) NOT NULL DEFAULT ''
) ENGINE=MEMORY DEFAULT CHARSET=utf8;

--
-- Индексы сохранённых таблиц
--

--
-- Индексы таблицы `r0hq9_finder_tokens_aggregate`
--
ALTER TABLE `r0hq9_finder_tokens_aggregate`
ADD KEY `token` (`term`),
ADD KEY `keyword_id` (`term_id`);

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

Or did I do wrong?
·
Wednesday, 03 February 2016 21:30
·
0 Likes
·
0 Votes
·
0 Comments
·
You cannot just run the "CREATE TABLE IF NOT EXISTS" because the table does exist and your SQL query is not executed.
·
Wednesday, 03 February 2016 21:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry I translate through Google
I deleted the phpmyadmin table. Then he took the net with a new site takuyuzhe table and imported into the database. Then plug in the included Administrator psmart search and everything works well. What I did is not right?
If I did not do right if there any other solution?
·
Wednesday, 03 February 2016 21:56
·
0 Likes
·
0 Votes
·
0 Comments
·
If you have enabled the finder plugins and the blog saving is working fine, then it should be working fine now
·
Wednesday, 03 February 2016 22:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you very much!
·
Wednesday, 03 February 2016 23:12
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome
·
Wednesday, 03 February 2016 23:13
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post