LG Better Meta Error with version 1.8.0 - Unknown column ‘append_default_keywords’ in ‘field list’
Posted: 18 June 2009 01:45 PM   [ Ignore ]  
Grad Student
Avatar
Rank
Total Posts:  62
Joined  05-14-2008

Hi guys,

Just upgraded to LG Better Meta version 1.8.0 from 1.4 to get MSM support. Installed and configured fine and the default Site Title and Metas are displaying on the site no problem. However, when I go to add Meta data for an entry on the Publish screen, I get the following MySQL error;

MySQL ERROR:

Error Number1054

Description
Unknown column 'append_default_keywords' in 'field list'

QueryINSERT INTO `exp_lg_better_meta` (`title`, `description`, `keywords`, `entry_id`, `url_title`, `weblog_id`, `append_default_keywords`) VALUES ('Page Title''Meta Description''''121''page''2'''

Anyone else having this problem?

It looks like it’s just an INT column, so if this is the case does anyone know if it’ll be OK just to go and manually add an append_default_keywords column to the database?

Running EE version v 1.6.3.

Thanks.

 Signature 

Website >  -  Twitter >  -  Google+

Profile
 
 
Posted: 18 June 2009 05:08 PM   [ Ignore ]   [ # 1 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1336
Joined  01-24-2006

Hmmm looks like something may have been out of kilter with your upgrade. Run the following SQL and you should have no issues:

ALTER TABLE exp_lg_better_meta
ADD `canonical_url` VARCHAR( 255 ) NOT NULL,
ADD `region` VARCHAR( 255 ) NOT NULL ,
ADD `placename` VARCHAR( 255 ) NOT NULL ,
ADD `latitude` VARCHAR( 25 ) NOT NULL ,
ADD `longitude` VARCHAR( 25 ) NOT NULL ,
ADD `append_default_keywords` TINYINT( 1 ) NOT NULL

 Signature 

EE-Garage.com - All my ExpressionEngine 2 Addons!


EE2 - NSM Better Meta - SEO Meta & XML Sitemap Generator
EE2 - NSM Live Look - Real entry previews


Newism - Newcastle - ExpressionEngine Experts

Profile
 
 
Posted: 19 June 2009 08:33 AM   [ Ignore ]   [ # 2 ]  
Grad Student
Avatar
Rank
Total Posts:  62
Joined  05-14-2008

Hi Leevi and thanks for your reply.

I’ve run the code and the table has been updated and the error now no longer shows. However I’ve encountered what appears to be another couple of bugs:

1) When I enter some data for the Meta Title, Description etc. and click on Update to save the entry, it updates successfully. However, if I do the same and click Quick Save, the data isn’t saved and the fields come out blank.

2) When I successfully save the Meta data using Update, it doesn’t show on the website. All I get is the Better Meta defaults that I set on the extension Settings page (page title,  description etc.). I’m using:

{exp:lg_better_meta_pl:template} 

in my template.

Any ideas this time..?

Thanks!

 Signature 

Website >  -  Twitter >  -  Google+

Profile
 
 
Posted: 20 June 2009 12:15 PM   [ Ignore ]   [ # 3 ]  
Summer Student
Total Posts:  15
Joined  05-09-2009

I’m also using 1.8 and also only see the default meta information. I posted in another thread about it.

However, I think the code you’re using may need the entry_id= or url_title= parameter per the instructions on Leevi’s site:

“7.2. Add entry specific meta data

To output entry specific meta you must add either the entry_id= or url_title= parameter to the {exp:lg_better_meta_pl:template} tag.

Lucky for us it is a requirement of the ExpressionEngine templating system that either an entry_id or the url_title in the url for specific entry pages. Knowing this allows us to use segment variables inside the {exp:lg_better_meta_pl:template} tag.”

In my case, Leevi recommended that I use the code:

{exp:lg_better_meta_pl:template url_title="{segment_1}"

with the segment number changing depending on your URL structure (EE documentation about segements.)  Regardless I still only see the default meta information like you so I’m not sure what’s going on with mine yet. I attached some screen shots, etc. on the post referenced above asking for help. Anyway, if the “entry_id=” or “url_title=” parameter works please for you let me know. Otherwise, I’ll know it’s not something I’ve done wrong.

Good luck,

Jerry

Profile
 
 
Posted: 22 June 2009 09:35 AM   [ Ignore ]   [ # 4 ]  
Grad Student
Avatar
Rank
Total Posts:  62
Joined  05-14-2008

Thanks for the reply. In terms of problem 2) above, yes, looks like I hadn’t read the instructions properly and adding the entry_id parameter works.

However problem 1) still occurs:

When I enter some data for the Meta Title, Description etc. and click on Update to save the entry, it updates successfully. However, if I do the same and click Quick Save, the data isn’t saved and the fields come out blank.

 Signature 

Website >  -  Twitter >  -  Google+

Profile
 
 
Posted: 22 June 2009 05:23 PM   [ Ignore ]   [ # 5 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1336
Joined  01-24-2006
ska_mna - 22 June 2009 01:35 PM

Thanks for the reply. In terms of problem 2) above, yes, looks like I hadn’t read the instructions properly and adding the entry_id parameter works.

However problem 1) still occurs:

When I enter some data for the Meta Title, Description etc. and click on Update to save the entry, it updates successfully. However, if I do the same and click Quick Save, the data isn’t saved and the fields come out blank.

What other extensions / tabs do you have installed? A lot of 3rd party addons do not support quicksave and throw various errors.

 Signature 

EE-Garage.com - All my ExpressionEngine 2 Addons!


EE2 - NSM Better Meta - SEO Meta & XML Sitemap Generator
EE2 - NSM Live Look - Real entry previews


Newism - Newcastle - ExpressionEngine Experts

Profile
 
 
Posted: 04 September 2009 03:42 PM   [ Ignore ]   [ # 6 ]  
Lab Assistant
RankRank
Total Posts:  286
Joined  02-25-2006

Hello

I am getting the same problem it seems.

FOr some reason on the site i was working on I had updated all the folders for the LG meta meta, such as the lg_better_meta folder in the extensions. I noticed I hadnt upload it and put it up there.

Now I get errors; I noticed that the extension setting’s look changed too.

I get this error now when I try to Upate a entry:

MySQL ERROR:

Error Number1054

Description
Unknown column 'append_default_keywords' in 'field list'

QueryUPDATE `exp_lg_better_metaSET `title` = 'Accolate - Pennsylvania Personal Injury Lawyers, Asthma Treatment, Deadly Side Effects, Liver Damage', `description` = 'Accolate - Pennsylvania Personal Injury Lawyers, Asthma Treatment, Deadly Side Effects, Liver Damage, Prescription Asthma Medication, Nonsteroidal Tablet, Pharmaceutical Attorneys, Stomach Pain', `keywords` = 'Accolate,asthma treatment,deadly side effects,liver damage,prescription asthma medication,nonsteroidal tablet,pharmaceutical attorneys,stomach pain,Pennsylvania personal injury lawyers,reflex sympathetic dystrophy, attorneys,lawyers,attorney,lawyer', `author` = '', `publisher` = '', `rights` = '', `entry_id` = '623', `url_title` = 'accolate.html', `weblog_id` = '47', `append_default_keywords` = '' WHERE entry_id 623 

Also when I view the actual page in the site I see this error at top of page:

NoticeUndefined indexsitemap_defaults in /home/munley/public_html/admin/plugins/pi.lg_better_meta_pi.php on line 259

Notice
Undefined indexsitemap_defaults in /home/munley/public_html/admin/plugins/pi.lg_better_meta_pi.php on line 264

Notice
Undefined indexsitemap_defaults in /home/munley/public_html/admin/plugins/pi.lg_better_meta_pi.php on line 269

Notice
Undefined indexsitemap_defaults in /home/munley/public_html/admin/plugins/pi.lg_better_meta_pi.php on line 259

Notice
Undefined indexsitemap_defaults in /home/munley/public_html/admin/plugins/pi.lg_better_meta_pi.php on line 264

Notice
Undefined indexsitemap_defaults in /home/munley/public_html/admin/plugins/pi.lg_better_meta_pi.php on line 269 

I am not sure how to fix it?

Profile
 
 
Posted: 04 September 2009 05:18 PM   [ Ignore ]   [ # 7 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1336
Joined  01-24-2006

Hi Kevin,

Run the following sql:

ALTER TABLE exp_lg_better_meta
            ADD 
`canonical_urlVARCHAR255 NOT NULL,
            
ADD `regionVARCHAR255 NOT NULL ,
            
ADD `placenameVARCHAR255 NOT NULL ,
            
ADD `latitudeVARCHAR25 NOT NULL ,
            
ADD `longitudeVARCHAR25 NOT NULL ,
            
ADD `append_default_keywordsTINYINTNOT NULL 

Then save your extension settings again. This should fix your issues.

 Signature 

EE-Garage.com - All my ExpressionEngine 2 Addons!


EE2 - NSM Better Meta - SEO Meta & XML Sitemap Generator
EE2 - NSM Live Look - Real entry previews


Newism - Newcastle - ExpressionEngine Experts

Profile
 
 
Posted: 04 September 2009 05:24 PM   [ Ignore ]   [ # 8 ]  
Lab Assistant
RankRank
Total Posts:  286
Joined  02-25-2006

Do I run this with PHPmyAdmin? i see a delimitor option there

Profile
 
 
Posted: 04 September 2009 05:26 PM   [ Ignore ]   [ # 9 ]  
Lab Assistant
RankRank
Total Posts:  286
Joined  02-25-2006

I see this at bottom of SQL window in phpmyadmin

Delimiter ]  Show this query here again


is that right setting?

Profile
 
 
Posted: 04 September 2009 11:38 PM   [ Ignore ]   [ # 10 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1336
Joined  01-24-2006

Hmm I’m not sure what that message means!

Has the exp_lg_better_meta table been updated? Can you save the extension settings?

 Signature 

EE-Garage.com - All my ExpressionEngine 2 Addons!


EE2 - NSM Better Meta - SEO Meta & XML Sitemap Generator
EE2 - NSM Live Look - Real entry previews


Newism - Newcastle - ExpressionEngine Experts

Profile
 
 
Posted: 05 September 2009 09:48 AM   [ Ignore ]   [ # 11 ]  
Lab Assistant
RankRank
Total Posts:  286
Joined  02-25-2006

Hey leevi

im just trying trying to make sure I run the SQL right; I do this in phpmyadmin?

Thanks!

Profile
 
 
Posted: 05 September 2009 11:49 AM   [ Ignore ]   [ # 12 ]  
Lab Assistant
RankRank
Total Posts:  286
Joined  02-25-2006

Hey Leevi, I ran the sql and it got rid of the error in the edit window when you update but still getting the error on the actual page. I will pm you the link.

at top of page it says

NoticeUndefined indexsitemap_defaults in /home/munley/public_html/admin/plugins/pi.lg_better_meta_pi.php on line 259

Notice
Undefined indexsitemap_defaults in /home/munley/public_html/admin/plugins/pi.lg_better_meta_pi.php on line 264

Notice
Undefined indexsitemap_defaults in /home/munley/public_html/admin/plugins/pi.lg_better_meta_pi.php on line 269

Notice
Undefined indexsitemap_defaults in /home/munley/public_html/admin/plugins/pi.lg_better_meta_pi.php on line 259

Notice
Undefined indexsitemap_defaults in /home/munley/public_html/admin/plugins/pi.lg_better_meta_pi.php on line 264

Notice
Undefined indexsitemap_defaults in /home/munley/public_html/admin/plugins/pi.lg_better_meta_pi.php on line 269 
Profile
 
 
Posted: 05 September 2009 02:12 PM   [ Ignore ]   [ # 13 ]  
Lab Assistant
RankRank
Total Posts:  286
Joined  02-25-2006

One more thing, after I ran the SQL, it seems to have taken the page URI away from the Pages module…none of the 1000 pages we added are there.

Why would that SQL do that? The entries are still there but the link went away in the Pages tab back to the default link.

Anyway to get them back?
Thanks!

Profile
 
 
Posted: 05 September 2009 03:21 PM   [ Ignore ]   [ # 14 ]  
Lab Assistant
RankRank
Total Posts:  286
Joined  02-25-2006

More on this, I noticed in Plugins folder I have to plugin files there for the LG better meta: pi.lg_better_meta_pi.php and pi.lg_better_meta_pl.php

I think pi.lg_better_meta_pl.php is for 1.8 and the other one is 1.7. So i think this is why Im getting that sitemap_defaults problem?

How do I fix that problem?

thanks!

Profile
 
 
Posted: 05 September 2009 03:45 PM   [ Ignore ]   [ # 15 ]  
Lab Assistant
RankRank
Total Posts:  286
Joined  02-25-2006

It seems I didnt follow the upgrade instructions at .(JavaScript must be enabled to view this email address) when uploading the 1.8 files.

SO that’s why I am getting the error for sitemap_defailts at top?

Profile
 
 
Posted: 05 September 2009 04:34 PM   [ Ignore ]   [ # 16 ]  
Lab Assistant
RankRank
Total Posts:  286
Joined  02-25-2006

Ok I changed the references in my template to exp:lg_better_meta_pl:template and the error at top of page went away. So I think my issue is fixed other than the problem of the Pages disappearing. Lesson learned! read the update instructions! smile

Profile
 
 
Posted: 05 September 2009 07:26 PM   [ Ignore ]   [ # 17 ]  
Lab Assistant
RankRank
Total Posts:  286
Joined  02-25-2006

One other small issue it seems.

I tried Disabling all the extensions to try to see if there was a conflict with one of the extensions, to try to get the Page URIs back (that didn’t work); now I see in Better Meta preferences setting this error at the top of the pages:

NoticeUndefined offset6 in /home/munley/public_html/admin/extensions/ext.lg_better_meta.php on line 175 

UPDATE: nevermind it seems to have went away after I resubmitted the prefs.

Profile