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 v1.8.0 not working on EE 1.6.7

Development and Programming

Carlo Poso's avatar
Carlo Poso
35 posts
16 years ago
Carlo Poso's avatar Carlo Poso

Hi all, I’ve installed LG Better Meta v1.8.0 by Leevi Graham on my EE1.6.7. The extension installation goes fine, but when I go into the extension Settings everything is screwed up.

The installation process (http://leevigraham.com/cms-customisation/expressionengine/lg-better-meta/#toc-user_guide:installation) says (at point 9):

Copy the contents of /themes/site_themes/cp_global_images/ to /themes/site_themes/cp_global_images directory

Fact is: there is no cp_global_images folder inside the zip. Don’t know if this is the problem.

Have you experienced the same problem?

Carlo

       
mooo's avatar
mooo
168 posts
16 years ago
mooo's avatar mooo

I’m having the same problem. When I click on Settings, I get: Fatal error: Undefined class name ‘self’ in /nfs/home/l/site.com/public_html/system/extensions/ext.lg_better_meta.php on line 149

       
Carlo Poso's avatar
Carlo Poso
35 posts
16 years ago
Carlo Poso's avatar Carlo Poso

Installed v.1.7.1 and it worked for me…

       
mooo's avatar
mooo
168 posts
16 years ago
mooo's avatar mooo

I think I’m going to have to revert to 1.7.1 as well. I was hoping to upgrade it for my client, but I’ll just wait until it’s fixed.

       
noluckmurphy's avatar
noluckmurphy
8 posts
16 years ago
noluckmurphy's avatar noluckmurphy

Installed Better Meta 1.8.0 fresh on a fresh 1.6.7 install and had this same problem.

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

Hey guys,

To fix the issues you have described please update your PHP install to version 5 and enable PHP short tags. I’m currently working on fixes in the extension and they should be available next week,

       
jerrycharles's avatar
jerrycharles
10 posts
16 years ago
jerrycharles's avatar jerrycharles

Leevi, I purchased and downloaded the extension this morning and installed everything until the last line, when I noticed the file was missing. I don’t know how to enable php short tags (another thing I need to learn!) and perhaps should wait for a fix. Will I just copy new version files over the ones I’ve currently installed? Thanks, I’ve heard really great things about this extension and look forward to using it.

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

You might be able to enable short tags in your .htaccess file by adding the following:

php_flag short_open_tag on

FYI I’ll be removing all the short tags in the next update.

       
jerrycharles's avatar
jerrycharles
10 posts
16 years ago
jerrycharles's avatar jerrycharles

Thanks Leevi, I’ll give that a try. Is it a problem that there is no cp_global_images folder inside the zip file? I checked several times. The last line of installation instructions said to “Copy the contents of /themes/site_themes/cp_global_images/ to /themes/site_themes/cp_global_images directory”.

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

You can ignore that step. I need to remove it from the docs.

       
jerrycharles's avatar
jerrycharles
10 posts
16 years ago
jerrycharles's avatar jerrycharles

Leevi, it seems to be enabled correctly now but, I can’t seem to get it working on specific entries – just the default. I am using the following code between the head tag.

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

Here’s an example url structure:

http://www.mysitename.com/index.php/about-us/

To make sure I wasn’t making a mistake with the URL structure I changed segement_1 to segment_2, etc. Regardless of what I do, it shows the default meta information on the settings page and nothing weblog specific. The meta information is enabled on settings, and I’ve entered unique content there so I could test.

Any help would be appreciated.

Jerry

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham
Leevi, it seems to be enabled correctly now but, I can’t seem to get it working on specific entries – just the default. I am using the following code between the head tag.
{exp:lg_better_meta_pl:template entry_id="{segment_1}"}
Here’s an example url structure:
http://www.mysitename.com/index.php/about-us/
To make sure I wasn’t making a mistake with the URL structure I changed segement_1 to segment_2, etc. Regardless of what I do, it shows the default meta information on the settings page and nothing weblog specific. The meta information is enabled on settings, and I’ve entered unique content there so I could test. Any help would be appreciated. Jerry

Looks like you are using the url title not the entry id.

You’ll want to try:

{exp:lg_better_meta_pl:template url_title="{segment_1}"}
       
jerrycharles's avatar
jerrycharles
10 posts
16 years ago
jerrycharles's avatar jerrycharles

Leevi, still no luck. I’ve attached relevant screen shots to show you the various pages. I’m only displaying a few meta items on the publish page for testing purposes right now. Note that the default meta information is the only thing showing on my final source code. And it lists all meta information, even though I’ve only specified that I want to include title, description, and keywords.

Also, here’s an excerpt from my head template:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html >
<head>

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

  <link rel='stylesheet' type='text/css' media='screen' href='{stylesheet=stylesheets/reset}' />
  <link rel='stylesheet' type='text/css' media='screen' href='{stylesheet=stylesheets/text}' />
  <link rel='stylesheet' type='text/css' media='screen' href='{stylesheet=stylesheets/960}' />
  <link rel='stylesheet' type='text/css' media='screen' href='{stylesheet=stylesheets/layout}' />
  <link rel='stylesheet' type='text/css' media='screen' href='{stylesheet=stylesheets/dropmenu}' />
  <title>{embed:title}</title>
       
jerrycharles's avatar
jerrycharles
10 posts
16 years ago
jerrycharles's avatar jerrycharles

Any ideas on the post above? If this helps, here’s the code I’m using in an about_us template. Note that it is embedding the head template that I included a pic of in my previous post.

{embed="includes/head"}
</head> 


<body>
        <div id="wrapper" class="container_12">
    
        {embed="includes/header"}

    {embed="includes/navigation" loc="about"}

                    
    <div class="grid_8">
                 {exp:weblog:entries weblog="about" disable="trackbacks|member_data|pagination"}
        <div class="entry">
        <h3 class="green">{title}</h3>
                {simplecontent}
             
        <div class="clear"></div>
        </div>
                {/exp:weblog:entries}
        {embed="includes/contact_form"}
        </div>
    <div class="grid_4">
         {embed="includes/sidebar"}
        </div>


    <div class="clear"></div>
    
    {embed="includes/footer"}    
    
        </div> <!--close id=wrapper -->

{embed="includes/analytics"}
</body>
</html>

Any help would be appreciated.

Jerry

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

Hey Jerry,

It might help if we start with something a bit simpler. Can you create a template which just has the following in it:

{exp:lg_better_meta_pl:template entry_id="_an_entry_id_"}

and replace “an_entry_id” with the actual entry id of the about page?

       
1 2

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.