When text link ads integration is enabled, navigating to this admin/by-module page produces this error
Fatal error: Unsupported operand types in /var/www/includes/common.inc on line 1265

CommentFileSizeAuthor
#5 textlinkadd_drupal_296677.patch2.99 KBchantra

Comments

greggles’s picture

Status: Active » Postponed (maintainer needs more info)

I can't reproduce this bug.

asimmonds’s picture

bryansd’s picture

Title: Fata error. » Unsupported operand error.

I'm seeing close to the same thing...though slightly different.
Fatal error: Unsupported operand types in ~/public_html/includes/common.inc on line 1369

I agree this is likely a duplicate of http://drupal.org/node/268751 , but since that ticket is closed this seems logical to continue on this issue. I'm running Drupal 6.8 on PHP 5.2.8.

ryan_courtnage’s picture

Status: Postponed (maintainer needs more info) » Needs review

Drupal 6.16.

Just installed TLA module. Hitting admin/by-module results in:

[error] [client xxx.x.xx.xx] PHP Fatal error:  Unsupported operand types in /usr/src/xxxxxx_drupal/drupal/includes/common.inc on line 1426, referer: http://xxx.xxxxx.com/admin/

line 1426 is the url() function right where it tries to merge the $options parameter with the defaults.

Problem is on line 26 of textlinkads.module

      $output .= '<li>'. t('Your site will communicate with the Text-Link-Ads.com site every time cron.php is run. If you have already configured cron jobs for your site ads will start appearing in the block as soon as the next cron run completes (note that Text-Link-Ads.com must sell some links for your site first). If you don\'t have cron tasks enabled follow the <a href="http://drupal.org/cron">directions found on Drupal.org</a> for doing so. You may also consider installing the <a href="http://drupal.org/project/poormanscron">Poormanscron module</a> to help. As a last resort, you can manually trigger cron by %clicking_this_link (will result in the screen going blank... that\'s normal).', array('%clicking_this_link' => url(t('clicking this link'), 'cron.php'))) .'</li>';

That "url(t('clicking this link'), 'cron.php')" should be "l(t('clicking this link'), 'cron.php')"

cheers

chantra’s picture

StatusFileSize
new2.99 KB

comment #4 makes it work.

I attach the patch so it might make it easier to apply the change.

pluginstla_chris’s picture

Assigned: Unassigned » pluginstla_chris
Status: Needs review » Closed (won't fix)