Drupal Bug - Artisteer 2.0 Beta 2


Author Message
gryzzly

Posted: 2/8/2009
Quote message 

Fatal error: Call to undefined function menu_item_link() in /var/www/web24/web/sites/default/themes/artisteer_beta2/template.php on line 66
Due to api.drupal.org there is no such function.
 
Dan E.

Posted: 2/8/2009
Quote message 

Hi can you tell us what the PHP code is from line 66 of that file?

thanks
 
Caroline

Posted: 2/9/2009
Quote message 

Hi gryzzly,

Yes, I get the same error.

Contacting Artisteer support now.

Caroline.
 
Caroline

Posted: 2/9/2009
Quote message 

gryzzly,

Just want to share a workaround for this issue: use different Template and Folder names when exporting your template from Artisteer.

For example, if I use:

Folder: c:\Inetpub\wwwroot\drupal69\themes\Name1
Template Name: Name2

the error disappears and my template starts working properly.

Hope it will help you too.

Caroline.
 
gryzzly

Posted: 2/9/2009
Quote message 

Oh thanks, Caroline.

Moreover I had issues with the new template naming feature. Drupal uses template names in its theme functions - so Artisteer has to sanitize the user provided theme name for this. If you e. g. use a hyphen in your template name, you get tons of errors, because this is not allowed. As a hint from php.net: "Function names follow the same rules as other labels in PHP. A valid function name starts with a letter or underscore, followed by any number of letters, numbers, or underscores. As a regular expression, it would be expressed thus: [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*. " - So template names have to be sanitized.
 
Caroline

Posted: 2/9/2009
Quote message 

gryzzly,

Yeah, this could be a useful feature.
I think we should submit it to Artisteer team. Maybe they will implement it for the final v2 release.

Caroline.