Unsupported operand types
| Project: | Vocabulary Index |
| Version: | 6.x-2.2 |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
Hi Xano
After using vocabulary index page everything was working fine. when I
set the taxonomy category as a primary and secondary link I got the following error
Fatal error: Unsupported operand types in h:\project\htdocs\includes\common.inc on line 1562
I saw a solution for this kind of errors which can fix it temporally i,e putting the following code in the common.inc file
/ **
* Add this code right after the line that says:
*
* `function url($path = NULL, $options = array()) {`
*
* (currently on line 1368)
*/
// Convert arguments and move on...
if (!is_array($options)) {
$options = array();
$args = func_get_args();
if (isset($args[1])) $options['query'] = $args[1];
if (isset($args[2])) $options['fragment'] = $args[2];
if (isset($args[3])) $options['absolute'] = $args[3];
}
/**
* And drop this surprisingly similar code right
* after the line that says:
*
* `function l($text, $path, $options = array()) {`
*
* (currently on line 1541)
*/
// Convert arguments and move on...
$args = func_get_args();
if (count($args) > 3) {
$options = array();
if (isset($args[2])) $options['attributes'] = $args[2];
if (isset($args[3])) $options['query'] = $args[3];
if (isset($args[4])) $options['fragment'] = $args[4];
if (isset($args[5])) $options['absolute'] = $args[5];
if (isset($args[6])) $options['html'] = $args[6];
}
and it starts working but when you try to click on the listed nodes it flicker and the following link is shown on top of the first node and make it hard to click on the link.
• ContentsEdit
• Export
• Clone
And also the links are gone.I could not figure out what the problem is. can you please

#1
Does this still happen with the latest dev version?
#2
Hi Xano
I tried the dev version of 6 and it is giving me the following warning and not bringing the page where you type the path for a page.
warning: Missing argument 2 for theme_table() in h:\project\htdocs\includes\theme.inc on line 1297.
warning: preg_match() expects parameter 2 to be string, array given in h:\project\htdocs\includes\bootstrap.inc on line 771.
please help.
#3
The last error has been fixed in #605046: Table rendering bug at index settings pages and should appear in the development download in less than twelve hours. Could you check again after you obtained that download tomorrow?
#4
Hi Xano
Thank you for the fix. Surprise surprise the module works fine in my home computer (settings :Drupal on Bitnami stack but when I tried it in the school’s computer where drupal is set in a different environment(i.e php,mysql,drupal,Apache all set by on its own)the error unsupported operand is still there. I cannot figure why this is happening. Please shade a light on this.
#5
I can't shed light on anything without information ;) I have no crystall ball on my desk.
Please check if your server environment meets all Drupal's requirements. Vocabulary Index has the same requirements as Drupal core, except that it also needs PHP 5.
#6
Hi Xano. The php version in the school's is php 5.1 and drupal 6.13 .It gives me the
Fatal error: Unsupported operand types in h:\project\htdocs\includes\common.inc on line 1578 still.
but the one which works fine at home is Bitnami stack with drupal 6.13.I tried it on another computer and acts different again(entered the path and no page found error). The information written underneath the path after you type in the path varied from computer to computer. for example on one it says currently located at /admin/navigate and on the other /admin\navigate. Is this supposed to happen? I tried clearing the cache but no luck.
#7
- The backslash problem should not occur at all. This is very likely a typo or a bug in Drupal.
- What version of PHP does the Bitnami stack ship with?
#8
Hi xano
The Bitnami stack ships with
- Drupal 6.14
- Apache 2.2.13
- MySQL 5.1.30
- PHP 5.2.10