We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

LG Better Meta 1.7.x - Now with sitemap meta and generator! - Official Support Thread

Development and Programming

hothousegraphix's avatar
hothousegraphix
851 posts
16 years ago
hothousegraphix's avatar hothousegraphix

Just updated my EE install to 1.6.7 and now when updating the Better Meta Extension settings, I get:

Notice: Undefined index: weblogs in /home/mysite/public_html/cms/extensions/ext.lg_better_meta.php on line 759 Warning: Invalid argument supplied for foreach() in /home/mysite/public_html/cms/extensions/ext.lg_better_meta.php on line 759 Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/cms/extensions/ext.lg_better_meta.php:759) in /home/mysite/public_html/cms/core/core.functions.php on line 296

I’ve uninstalled and re-installed the extension but this did not correct the problem.

Any Ideas on how to address?

       
Casey Reid's avatar
Casey Reid
82 posts
16 years ago
Casey Reid's avatar Casey Reid

The default values in the extension setting are only allowing me to enter 100 characters for text inputs. I need to include more than 100 characters for the default keywords. I see that maxlength=”100” is being used on those input fields.

Is there a way for me to remove that restriction, even if it involves hacking the extension in this case. Really just setting the maxlength to “” is what I need to do.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham
Wondering if anyone might be able to answer my question above. It seems Leevi refers to the ability to include multiple weblogs here unless I’m misunderstanding the reference to “weblog parameter” and he’s not referring to it with this extension in mind. The trouble I’ve run into is that though the {exp:lg_better_meta_pi:entries} tag seems to accept multiple weblogs I see no way to distinguish content from one weblog over another which results in incorrect locations. Maybe I’ve missed something (this wouldn’t surprise me one bit)? Anybody have advice? Thanks

So let me get this straight :D Entries from both weblogs are being shown in the loop but you are having trouble differentiating the two. If that is the case your previous code is only the way to do what you are trying to achieve in a single loop.

Your second option is to create a separate loops for each weblog.

<?xml version="1.0" encoding="UTF-8"?>
<urlset >
    {exp:lg_better_meta_pi:entries
        weblog="blog"
        disable="categories|custom_fields|category_fields|custom_fields|member_data|pagination|trackbacks"
        dynamic="off"
        rdf="off"
        status="not closed"
    }
    <url>
        <loc>http://my_site.com/blog/post/{url_title}/</loc>
        <lastmod>{edit_date format="%Y-%m-%d"}</lastmod>
        <changefreq>{change_frequency}</changefreq>
        {priority}</priority>
    </url>
    {/exp:lg_better_meta_pi:entries}
    {exp:lg_better_meta_pi:entries
        weblog="blog"
        disable="categories|custom_fields|category_fields|custom_fields|member_data|pagination|trackbacks"
        dynamic="off"
        rdf="off"
        status="not closed"
    }
    <url>
        <loc>http://my_site.com/vote/entry/{url_title}/</loc>
        <lastmod>{edit_date format="%Y-%m-%d"}</lastmod>
        <changefreq>{change_frequency}</changefreq>
        {priority}</priority>
    </url>
    {/exp:lg_better_meta_pi:entries}
</urlset>
       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham
Just updated my EE install to 1.6.7 and now when updating the Better Meta Extension settings, I get:
Notice: Undefined index: weblogs in /home/mysite/public_html/cms/extensions/ext.lg_better_meta.php on line 759 Warning: Invalid argument supplied for foreach() in /home/mysite/public_html/cms/extensions/ext.lg_better_meta.php on line 759 Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/cms/extensions/ext.lg_better_meta.php:759) in /home/mysite/public_html/cms/core/core.functions.php on line 296
I’ve uninstalled and re-installed the extension but this did not correct the problem. Any Ideas on how to address?

Is this error appearing when you try and save the extension settings? From your previous questions is it safe to assume you have atleast one weblog setup?

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham
The default values in the extension setting are only allowing me to enter 100 characters for text inputs. I need to include more than 100 characters for the default keywords. I see that maxlength=”100” is being used on those input fields. Is there a way for me to remove that restriction, even if it involves hacking the extension in this case. Really just setting the maxlength to “” is what I need to do.

You can hack the extension around line 1530 but it’s unsupported and not advised. Keywords are set to 100 characters to avoid making them spammy and forcing the publisher to determine what is actually important in the content.

       
Triad's avatar
Triad
44 posts
16 years ago
Triad's avatar Triad

Hi

Sorry to ask, but i’m stuck, and its probably something reallllly stupid.

We have an embedded header file (Template name - embeds/.header)and we have the following code in…

{exp:lg_better_meta_pi:template
  entry_id=”{embed:entry_id}”
  weblog_id=”{embed:weblog_id}”
  url_title=”{embed:url_title}”
  title=”{embed:title}”
  title_suffix=”{embed:title_suffix}”
  title_prefix=”{embed:title_prefix}”
  hide_site_title=”{embed:hide_site_title}”
  description=”{embed:description}”
  keywords=”{embed:keywords}”
  author=”{embed:author}”
  publisher=”{embed:publisher}”
  rights=”{embed:rights}”
  date_created=”{embed:date_created}”
  date_modified=”{embed:date_modified}”
  date_valid=”{embed:date_valid}”
  identifier=”{embed:identifier}”
  robots_index=”{embed:robots_index}”
  robots_follow=”{embed:robots_follow}”
  robots_archive=”{embed:robots_archive}”
  }

We have Better Meta enabled for all weblogs, and when i edit one of the weblogs, i fill out the meta desc / keywords for that weblog - it saves ok, but when viewing the page, all thats shown in the code is the default desc/keywords thats been set in the Extensions section.

Basically its not displaying when i set desc/keywords on a weblog by weblog basis…. just the default set.

Obviously missing something, but don’t know what.

Any ideas?

Many thanks Matt

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham

In your primary template are you passing through the entry_id or url_title?

{embed="embeds/.header" entry_id="{segment_3}"}
       
Triad's avatar
Triad
44 posts
16 years ago
Triad's avatar Triad
In your primary template are you passing through the entry_id or url_title?
{embed="embeds/.header" entry_id="{segment_3}"}

this is what we have in the template - this is the one for about us page…Still doesn’t pull through the desc/keywords set in the weblog for About us

{embed="embeds/.header" extra_title="About Us" leftmenu="about" pageid="aboutPage" entry_id="{segment_3}"}
       
BackBeat Media's avatar
BackBeat Media
76 posts
16 years ago
BackBeat Media's avatar BackBeat Media

I see this error appear on my entry pages from time to time: Notice: Undefined index: date_modified in /var/www/bbm/ee_system/plugins/pi.lg_better_meta_pi.php on line 272

I’m using “Embedded Header template” method.

Is this something I should be concerned about?

       
mr_tim's avatar
mr_tim
43 posts
16 years ago
mr_tim's avatar mr_tim

Does anyone have any insight into how to use Better Meta with Repeet?

Rather than using the url_title=”{segment_2}” with traditional urls (e.g. index.php?/news/my-news-article)a Repeet url looks like index.php?/calendar/2009/05/10/ so I’m struggling to see how to use the two together.

Many thanks

       
lithiumdave's avatar
lithiumdave
215 posts
16 years ago
lithiumdave's avatar lithiumdave

As per my previous post, I’m still unable to get LG Better Meta working with LG Tiny MCE. If I have the latter enabled I get a blank page when trying to edit an entry in the CP.

I’m running the following:

  • EE 1.6.7
  • PHP 5.2.6
  • Apache 2
  • LG Better Meta 1.7.0
  • LG Tiny MCE 1.3.3

Just wondering if anyone else had a similar problem? It makes LG Better Meta a bit useless for me really!

Thanks.

       
Fernando Bernall's avatar
Fernando Bernall
58 posts
16 years ago
Fernando Bernall's avatar Fernando Bernall

I’m a little lost here… I purchased the extension in order to have a sitemap for the site.

Not sure I understand but here’s my take:

I make a page on one of my template groups with this code:

<?xml version="1.0" encoding="UTF-8"?>
<urlset >
    {exp:lg_better_meta_pi:entries
        weblog="blog"
        disable="categories|custom_fields|category_fields|member_data|pagination|trackbacks"
        dynamic="off"
        rdf="off"
        status="not closed"
    }
    <url>
        <loc>http://test.com/blog/post/{entry_id}/{url_title}/</loc>
        <lastmod>{edit_date format="%Y-%m-%d"}</lastmod>
        <changefreq>{change_frequency}</changefreq>
        {priority}</priority>
    </url>
    {/exp:lg_better_meta_pi:entries}
</urlset>

I then copy that little php script from the wiky. I submit that script to Google. And that’s it?

Do I need to change anything to this part of the xml file?:

<url>
        <loc>http://test.com/blog/post/{entry_id}/{url_title}/</loc>
        <lastmod>{edit_date format="%Y-%m-%d"}</lastmod>
        <changefreq>{change_frequency}</changefreq>
        {priority}</priority>
    </url>

Alright, ya’ll can stop laughin’ now… I thank you…

       
ronanmcmahon's avatar
ronanmcmahon
13 posts
16 years ago
ronanmcmahon's avatar ronanmcmahon

Hello,

I’m also having the same problem as a few other people in this thread, from what I’ve read it seems it still hasn’t been solved.

This occured when I tried to change the Description on the LG Better Meta settings. After that everytime I try to update an entry in weblog I get the following error:

Notice: unserialize() [function.unserialize]: Error at offset 499 of 3906 bytes in /home/mysite/system/extensions/ext.lg_better_meta.php on line 811

Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/system/extensions/ext.lg_better_meta.php:811) in /home/mysite/system/core/core.functions.php on line 296

When the extension is disable the problem stops. I’ve tried uninstalling and reinstalling, still having the same issue.

I’m running EE 1.6.7 Commercial, with extensions; Playa, Solspace Tag Module, LG HTACCESS Generator, LG Better Meta.

Anyone know how to fix this? It was working fine until I tried to change the Description on Better Meta settings page.

       
ronanmcmahon's avatar
ronanmcmahon
13 posts
16 years ago
ronanmcmahon's avatar ronanmcmahon

I’ve tried a few things since my previous post and it seems the issue is with the Meta Description Setting.

Everytime this setting goes between 130-150 characters, it returns the error. I’ve tried changing the exp_extensions ‘setting’ to LONGTEXT and MEDIUMTEXT, but I still get the same error.

Right now the only option is to have less than 130 characters on the Meta Descriptions. Google allows for up to 160 characters, Mr. Graham, please help resolve this issue not only myself but others have had this issue. This is a paid extension, and I would at least expect it to work correctly.

       
Fernando Bernall's avatar
Fernando Bernall
58 posts
16 years ago
Fernando Bernall's avatar Fernando Bernall

It would be nice to have some support from the extension’s creator.. It only makes good business sense.

       
First 8 9 10 11

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.