Home

Primary links

  • top o the deck
  • Drupal for Beginners
  • about
  • links
  • give me some sugar

Drupal stuff

  • EDAM
  • STARDOM
  • Question Bank
  • Drupal musings
  • Drupal tips
Home Blogs Drupalace's blog

Key stuff on this site

Easy Drupal Admin Manual (EDAM)

SEO, Traffic and Revenue: Drupalace's Online Manual (STARDOM)

Drupal for Beginners

Subscribe to posts by RSS or email

Subscribe to Drupal Ace by RSS feed RSS feed 

Subscribe to Drupal Ace by Email

Donate towards my web hosting bill! Get a great host!

Share and save

Share/Save

Random piece of content

Tip for friendlier content creation

Manuals on this site

  • Easy Drupal Admin Manual (EDAM)
    • Welcome to Your Site
    • First Steps: Please Read!
      • Understanding These Instructions
      • Important Terminology!
      • Best Practices for Site Admins
    • Super Quick Guide (for the experienced and the brave)
    • Logging In
    • Your Administrator Tools
    • Setting Site Basics
      • Setting Site Information
      • Configuring Your Theme
    • Creating Content
      • Node Types
      • Create a Page Node
      • Create a Story Node
      • Create a Blog Entry Node
      • Making Images and Other Files Available
      • Using Text and Image Editors
    • Organizing Your Content
      • Terms, Vocabularies, and Taxonomy: "Tagging" Your Content
        • Taxonomy Suggestions
      • Menus, Links, and Paths: Navigating the Site
        • Content Paths and URLs
        • Creating Links
        • Working with Menus: Administration Form (Drupal 6)
        • Working with Menus: Administration Form (Drupal 5)
        • Creating Menu Items on the Fly
        • Placing Menus on Your Pages
      • Placing Content on pages
        • Creating a page from a Single Node
        • Creating a page from a List of Nodes
        • Setting the Front Page
      • Working with Blocks
    • Maintenance Stuff
      • Maintenance and Construction Notices
    • Other Fun Things
      • Changing Color of Garland Theme
      • Free Aliases!
  • SEO, Traffic and Revenue: Drupalace's Online Manual (STARDOM)
    • Set a Clear Goal
    • Make a Good Site
      • Put out the Welcome Mat
      • Make Great Content
      • Build a Great Brand
      • Make Navigation Easy
      • Tune Site Performance
    • Drive Traffic
      • Promote your Site
      • Get Found with SEO
    • Build a Community
      • Build an Offsite Community
    • Monitor and Improve
    • One-Page Checklist
    • Drupal and the Blogging Starter Checklist
      • Drupal and the Blogging Starter Checklist, Part 1
      • Drupal and the Blogging Starter Checklist, Part 2
      • Drupal and the Blogging Starter Checklist, Part 3
      • Drupal and the Blogging Starter Checklist, Part 4
      • Drupal and the Blogging Starter Checklist, Part 5
      • Drupal and the Blogging Starter Checklist, Part 6
      • Drupal and the Blogging Starter Checklist, Part 7

You said it!

  • Dive Shop Singapor...

     

    I’m still learning from you, as I’m trying to reach my goals. I...

  • Blog Entry

    As per Search Engine Optimization, a blog is better than a webpage,...

  • This is a fantasti...

    This is a fantastic website and I can not recommend you guys enough. Full of useful resource and...

  • What stage is your...

    I am totally buying this article! The humor contained in this can bring you aftershocks of...

  • Tough one to Inves...

    I have heard and read stories such as this one before, and their common denominator is Drupal...

more

Checking out Drupal 6: Dipping into new site creation

Submitted by Drupalace on Wed, 2009-01-21 15:27
  • Drupal 6
  • site design
Drupal 6

Following up on Checking out Drupal 6: Installation: I was back to playing with Drupal 6 again, as I'm really itching to upgrade all of my old Drupal 5 sites. 

This time, I went beyond playing with my "sandbox" site; I got started on constructing two new, fresh sites. (Of course, I do so on the back of that sandbox site's database; that was the purpose of making the thing!)

Module trouble!

Enabling a number of spiffy D6 modules knocked my Modules form out of action, leaving it to forlornly display only this error:

Fatal error: Unsupported operand types in <path to my Drupal installation>/includes/common.inc on line 1376

Blech. Other pages still worked, but life's no fun with the Modules form AWOL. Gotta find and shut down the offending module(s)... but, oops, how to do that when I can't even see the form?

No trouble for the pros; there are doubtless many ways to tackle the problem. But for fellow pre-pros who might be thrown into panic by something like this, here's my own fumbling way of going about a fix:

Check the forums

First, I searched the Drupal.org forums for similar discussions. I couldn't find many at all involving the same error with "line 1376". Other responses for similar errors suggested clearing cache tables in the database, such as cache_views. But that didn't help me.

Remove the offending line(s)

Well, if Drupal doesn't like that line 1376 in the file common.inc, let's excise the offender and see what happens!

First, I made a safe backup of /includes/common.inc, then opened the file in a text editor to find line 1376. (Note: You'll definitely want to use a text editor that shows line numbers, like the SubEthaEdit I use. Unless you really like counting.)

That line only consists of

 );

which isn't too helpful! Clearly, it's the closing part of a longer statement, which – checking parentheses to properly grab the whole thing – appears to be:

 $options += array(
    'fragment' => '',
    'query' => '',
    'absolute' => FALSE,
    'alias' => FALSE,
    'prefix' => ''
  ); 

So. I remove that, save the file, and see what happens... Good! As expected, the codectomy let my Modules form properly load again. After that, troubleshooting was a matter of following these steps:

1) disable one possible offending module

2) put the removed code back into commons.inc, and save

3) try reloading Modules form

3a) If form now reloads, the last module removed was the offender. Go to 7)

3b) If form still doesn't reload, the last module removed wasn't the offender

4) remove the problem code again from commons.inc and save

5) reload Modules form

6) Go to 1) 

7) note offending module and leave it disabled

8) make sure commons.inc is returned to original form 

Yes, that's very elementary. And time-consuming. (Hello, inauguration speech videos!) But it worked for me, and spelling things out like that might give another newbie confidence to try such troubleshooting. 

J'accuse!

Text Link Ads Integration module, you're the one who caused me such heartbreak today. I banish you, at least until I can troubleshoot whether you've got a problem with Drupal 6.x in general (might be so!) or whether you're just quarreling with some other contributed module I'm using. 

No XML Sitemap module?

Ah, here's a minor disappointment: One of the items on my checklist for new site setup is making sure the XML Sitemaps module (née Google Sitemaps) works, and then submitting that sitemap to Google. Alas, the Drupal 6 versions warn of not yet being ready for production. All right, I'll just have to place a hold on that action and check again later.

New site checklist

Here I had a checklist used to quickly create sites in Drupal 5.x. and then 6.x. I've moved that to a page of its own: Drupal New Site Setup Checklist. 

More Drupal 6 fun to come!

Share/Save
  • Drupalace's blog
  • Printer-friendly version
  • Quote
Suzain's picture

What does Drupal CMS

Submitted by Suzain (not verified) on Thu, 2009-07-30 14:59.

What does Drupal CMS do?

Thanks,

<a href="http://www.webmarketingexperts.com.au/">SEO</a>

  • reply
  • quote
Drupalace's picture

What does Drupal do?

Submitted by Drupalace on Fri, 2009-07-31 01:36.

See Drupal for Beginners.

  • reply
  • quote
online adverteren's picture

I'm glad I found this

Submitted by online adverteren (not verified) on Thu, 2009-05-21 05:10.

I'm glad I found this article, I'm having the same problems upgrading. An amusing read :) thanks

  • reply
  • quote
Evan Donovan's picture

Re: Checking out Drupal 6: Dipping into new site creation

Submitted by Evan Donovan (not verified) on Sat, 2009-04-04 04:49.

This is a problem with the syntax of the url() function in a module. If you do a backtrace, you can figure out where it comes from: see http://justinhileman.info/articles/unsupported-operand-types-in-drupal-6x.

  • reply
  • quote
Drupalace's picture

Re: Checking out Drupal 6: Dipping into new site creation

Submitted by Drupalace on Mon, 2009-04-13 12:59.

Thank you! I've seen "unsupported operand type" errors before, so I'm glad to have that link on hand. Good info.

  • reply
  • quote

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><br><p>
  • You may quote other posts using [quote] tags.
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options


Relevant Content

The Drupal Ace logo has dealt these content suggestions from the deck.

  • Safari 4 and Drupal 6
  • Checking out Drupal 6: What's going on around here!?
  • Upgrading from Drupal 6 to Drupal 7: problems and solutions
  • Creating a Drupal 7 sandbox site
  • Drupal site recipes
  • Tip for friendlier content creation
  • Drupal New Site Setup Checklist

Learn Drupal, hands-on

Get the beginner-friendly ebook that teaches community site building via a live case study.

Drupal 6 Ultimate Community Site Guide

Read the review

It's a deal!

Dreamhost dealsDrupal Ace presides over his domain, proudly ensconced in his DreamHost eyrie. Won't you join me?

Promo code deal!

Just enter the code 49ER when you register for an account, and save $49 off the already-low price. No strings!

Read my hosting service review

Drupal mini tip

An obvious but important tip: When installing a new module, be sure to check for READ ME files or other instructions! It's easy to forget that not all modules are simple "plug and play"; some require special preparation, such as modifications to the site's Theme, to work their magic.

Remember, modules often make changes to your ste's database, its very "DNA". Take their installation seriously: read modules' instructions, and back up the database before installation too. 

Powered by Drupal, an open source content management system

Copyright 2007 and forever after. Made with Drupal, of course. On OS X, of course. Served up by DreamHost. DreamHost

RoopleTheme