-
AuthorPosts
-
July 9, 2013 at 8:49 pm #188810
Hi All,
I’m having an issue when trying to install the JS Comment component. I get this error message:
054 Unknown column ‘p0’ in ‘tubzv_jacomment_items’ SQL=ALTER TABLE `tubzv_jacomment_items` ADD `latitude` CHAR(255) COLLATE utf8_general_ci NULL DEFAULT NULL AFTER `p0`
Fresh install of J3.1with numerous other extensions installed.
Any suggestions?
TIA
Keith
MoonSailor FriendMoonSailor
- Join date:
- November 2011
- Posts:
- 1106
- Downloads:
- 0
- Uploads:
- 245
- Thanks:
- 89
- Thanked:
- 248 times in 223 posts
July 10, 2013 at 2:17 am #498466Hi quayfee,
If possible, you can send pm to me with admin login info for closer checking.
Regards
webjwn Friendwebjwn
- Join date:
- March 2011
- Posts:
- 161
- Downloads:
- 94
- Uploads:
- 48
- Thanks:
- 51
- Thanked:
- 5 times in 2 posts
July 17, 2013 at 4:25 pm #499335Same thing here.
I think this is a bug – there is NO ‘p0’ column in the table ‘#___jacomment_items’.
MoonSailor FriendMoonSailor
- Join date:
- November 2011
- Posts:
- 1106
- Downloads:
- 0
- Uploads:
- 245
- Thanks:
- 89
- Thanked:
- 248 times in 223 posts
July 18, 2013 at 1:47 am #499369Hi webjwn,
Pls send pm to me admin login info of your site, I will check for you further.
Regards
July 18, 2013 at 2:15 pm #499469I have the same problem =(
webjwn Friendwebjwn
- Join date:
- March 2011
- Posts:
- 161
- Downloads:
- 94
- Uploads:
- 48
- Thanks:
- 51
- Thanked:
- 5 times in 2 posts
July 18, 2013 at 3:17 pm #499479Hi MoonSailor,
I looked into it, the ‘p0’ was added in update to version v1.2.1. I don’t know how that works, but when you do an fresh installation of the ja_comment, the upgrade script v1.2.1 was not executed before v2.5.1.
I took out after ‘p0’ in the v2.5.1 update my scritp, and it went through.
What is the executing sequence of all the files in the ‘sql’ folder?
Thanks,
jwn
MoonSailor FriendMoonSailor
- Join date:
- November 2011
- Posts:
- 1106
- Downloads:
- 0
- Uploads:
- 245
- Thanks:
- 89
- Thanked:
- 248 times in 223 posts
July 19, 2013 at 2:09 am #499517Hi Andrey,
It’s fixed, pls check again.
<blockquote>
I looked into it, the ‘p0’ was added in update to version v1.2.1. I don’t know how that works, but when you do an fresh installation of the ja_comment, the upgrade script v1.2.1 was not executed before v2.5.1.I took out after ‘p0’ in the v2.5.1 update my scritp, and it went through.
</blockquote>Yes, the fix will be updated in the next version. With your site,pls send PM to me with admin login info, I will fix it for you.
Regards
1 user says Thank You to MoonSailor for this useful post
obliat Friendobliat
- Join date:
- December 2010
- Posts:
- 416
- Downloads:
- 12
- Uploads:
- 64
- Thanks:
- 108
- Thanked:
- 31 times in 1 posts
November 27, 2013 at 9:53 am #513699Trying to install JAC v2.5.3 on J3.1 and getting similar 1054 error. Actually I’m testing Teline IV Responsive version and shomehow upgraded to J3.2 and now I’m unable to install JA Comment
MoonSailor FriendMoonSailor
- Join date:
- November 2011
- Posts:
- 1106
- Downloads:
- 0
- Uploads:
- 245
- Thanks:
- 89
- Thanked:
- 248 times in 223 posts
November 28, 2013 at 2:12 am #513768Hi obliat,
You can PM me URL and admin account of your site then I shall check it for you.
Regards
December 9, 2013 at 10:52 am #514781same thing here. error 1054
MoonSailor FriendMoonSailor
- Join date:
- November 2011
- Posts:
- 1106
- Downloads:
- 0
- Uploads:
- 245
- Thanks:
- 89
- Thanked:
- 248 times in 223 posts
December 10, 2013 at 3:01 am #514888Hi mnisifilos,
Pls PM me admin login info and url of your site, I’ll fix it for you.
Regards
1 user says Thank You to MoonSailor for this useful post
January 2, 2014 at 3:40 pm #517176Same error here. Can you tell me how to fix this? Thanks!
1054 Unknown column ‘p0’ in ‘jos2_jacomment_items’ SQL=ALTER TABLE `jos2_jacomment_items` ADD `latitude` CHAR(255) COLLATE utf8_general_ci NULL DEFAULT NULL AFTER `p0`MoonSailor FriendMoonSailor
- Join date:
- November 2011
- Posts:
- 1106
- Downloads:
- 0
- Uploads:
- 245
- Thanks:
- 89
- Thanked:
- 248 times in 223 posts
January 3, 2014 at 1:51 am #517211Hi vskamme,
Please PM me url, admin and ftp credentials of your site, I will find a fix for you.
August 7, 2014 at 4:10 pm #545072Hello,
I have the newest version of JA Comments component (v2.5.3) and I still get the p0 problem in the 1054 error. What could I do? I’m running Joomla 3.3.3 by the way.
Thank youThanh Nguyen Viet FriendThanh Nguyen Viet
- Join date:
- September 2014
- Posts:
- 1461
- Downloads:
- 0
- Uploads:
- 44
- Thanked:
- 258 times in 217 posts
August 11, 2014 at 4:19 am #545389Hello,
To resolve this issue, please follow steps below:
– extract the installation package
– Open the file in the folder that you just extracted:
site/helpers/jahelper.php– Find the code snippet:
[PHP]$lis_sql_path = JPATH_ADMINISTRATOR . DS . ‘components’ . DS . ‘com_jacomment’ . DS . ‘installer’ . DS . ‘sql’;$regex = ‘/upgrade_(.*?)(.sql)$/i’;
$dk = opendir($lis_sql_path);
while (false !== ($filename = readdir($dk))) {
var_dump($filename);
if (preg_match($regex, $filename)) {
if (JACommentHelpers::table_exists(‘#__jacomment_items’) && $filename == ‘upgrade_v1.2.0.sql’) {
if (! JACommentHelpers::checkField_inserted(‘jacomment_items’, ‘children’) && ! JACommentHelpers::checkField_inserted(‘jacomment_items’, ‘active_children’)) {
JACommentHelpers::populateDB(JPATH_ADMINISTRATOR . DS . ‘components’ . DS . ‘com_jacomment’ . DS . ‘installer’ . DS . ‘sql’ . DS . $filename, $db, $error);
}
}
if (JACommentHelpers::table_exists(‘#__jacomment_items’) && $filename == ‘upgrade_v1.2.1.sql’) {
if (! JACommentHelpers::checkField_inserted(‘jacomment_items’, ‘p0’)) {
JACommentHelpers::populateDB(JPATH_ADMINISTRATOR . DS . ‘components’ . DS . ‘com_jacomment’ . DS . ‘installer’ . DS . ‘sql’ . DS . $filename, $db, $error);
}
}
if (JACommentHelpers::table_exists(‘#__jacomment_items’) && $filename == ‘upgrade_v1.3.0.sql’) {
if (JACommentHelpers::checkField_inserted(‘jacomment_items’, ‘referer’)) {
JACommentHelpers::populateDB(JPATH_ADMINISTRATOR . DS . ‘components’ . DS . ‘com_jacomment’ . DS . ‘installer’ . DS . ‘sql’ . DS . $filename, $db, $error);
}
}
if (JACommentHelpers::table_exists(‘#__jacomment_items’) && $filename == ‘upgrade_v2.5.1.sql’) {
if (! JACommentHelpers::checkField_inserted(‘jacomment_items’, ‘latitude’) &&
! JACommentHelpers::checkField_inserted(‘jacomment_items’, ‘longitude’) &&
! JACommentHelpers::checkField_inserted(‘jacomment_items’, ‘address’)
) {
JACommentHelpers::populateDB(JPATH_ADMINISTRATOR . DS . ‘components’ . DS . ‘com_jacomment’ . DS . ‘installer’ . DS . ‘sql’ . DS . $filename, $db, $error);
}
}
}
}[/PHP]– And replace it with:
[PHP]$lis_sql_path = JPATH_ADMINISTRATOR . DS . ‘components’ . DS . ‘com_jacomment’ . DS . ‘installer’ . DS . ‘sql’;
$versions = array(‘1.2.0’, ‘1.2.1’, ‘1.3.0’, ‘2.5.1’);foreach($versions as $version) {
$filename = sprintf(‘upgrade_v%s.sql’, $version);
if (JACommentHelpers::table_exists(‘#__jacomment_items’) && $filename == ‘upgrade_v1.2.0.sql’) {
if (! JACommentHelpers::checkField_inserted(‘jacomment_items’, ‘children’) && ! JACommentHelpers::checkField_inserted(‘jacomment_items’, ‘active_children’)) {
JACommentHelpers::populateDB($lis_sql_path . DS . $filename, $db, $error);
}
}
if (JACommentHelpers::table_exists(‘#__jacomment_items’) && $filename == ‘upgrade_v1.2.1.sql’) {
if (! JACommentHelpers::checkField_inserted(‘jacomment_items’, ‘p0’)) {
JACommentHelpers::populateDB($lis_sql_path . DS . $filename, $db, $error);
}
}
if (JACommentHelpers::table_exists(‘#__jacomment_items’) && $filename == ‘upgrade_v1.3.0.sql’) {
if (JACommentHelpers::checkField_inserted(‘jacomment_items’, ‘referer’)) {
JACommentHelpers::populateDB($lis_sql_path . DS . $filename, $db, $error);
}
}
if (JACommentHelpers::table_exists(‘#__jacomment_items’) && $filename == ‘upgrade_v2.5.1.sql’) {
if (! JACommentHelpers::checkField_inserted(‘jacomment_items’, ‘latitude’) &&
! JACommentHelpers::checkField_inserted(‘jacomment_items’, ‘longitude’) &&
! JACommentHelpers::checkField_inserted(‘jacomment_items’, ‘address’)
) {
JACommentHelpers::populateDB($lis_sql_path . DS . $filename, $db, $error);
}
}
}[/PHP]– Once done, you need zip this folder to install package, and try again.
FYI: this issue occured because in current upgrade code, it uses readdir function to get a list of sql upgrade file, but this function returns the filenames in the order in which they are stored by the filesystem. So in some case, the version list is not returned with correct order, that’s why upgrading did not worked properly.
I have created issue on our issue tracker system, and we will apply this fix for upcoming version. You can check status of this issue here
http://pm.joomlart.com/browse/JAECCOMCOMMENTJVI-456 -
AuthorPosts
This topic contains 16 replies, has 10 voices, and was last updated by Luna Garden 10 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum