uc_gbase.module
line 520

  $node_link->addAttribute('href',$base_url.'/'.drupal_get_path_alias('node/'.$node->nid));
CommentFileSizeAuthor
#1 uc_gbase-use-pathalias-975884-1.patch836 bytesreinvented

Comments

reinvented’s picture

Status: Active » Needs review
StatusFileSize
new836 bytes

Rolled this into a patch.

birdrockdesigns’s picture

Issue tags: +url, +google base, +drupal path alias

Tried the patch, but get this error:

    * warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 1: parser error : Start tag expected, '<' not found in /home/content/78/6698978/html/modules/uc_gbase/uc_gbase.module on line 601.
    * warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: [Line 2, Column 797, element link] Illegal character in path at index 56: https: in /home/content/78/6698978/html/modules/uc_gbase/uc_gbase.module on line 601.
    * warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in /home/content/78/6698978/html/modules/uc_gbase/uc_gbase.module on line 601.

as well as this

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/content/78/6698978/html/modules/uc_gbase/uc_gbase.module:601 Stack trace: #0 /home/content/78/6698978/html/modules/uc_gbase/uc_gbase.module(601): SimpleXMLElement->__construct('[Line 2, Column...') #1 /home/content/78/6698978/html/modules/uc_gbase/uc_gbase.module(465): _uc_gbase_insert_xml(Object(stdClass), 'Cash$Check$Visa...', '') #2 /home/content/78/6698978/html/modules/uc_gbase/uc_gbase.module(378): uc_gbase_insert_item(Object(stdClass)) #3 /home/content/78/6698978/html/modules/node/node.module(679): uc_gbase_nodeapi(Object(stdClass), 'update', NULL, NULL) #4 /home/content/78/6698978/html/modules/node/node.module(932): node_invoke_nodeapi(Object(stdClass), 'update') #5 /home/content/78/6698978/html/modules/node/node.pages.inc(456): node_save(Object(stdClass)) #6 /home/content/78/6698978/html/includes/form.inc(780): node_form_submit(Array, Array) #7 /home/content/78/6698978/html/includes/form.inc(420): form_execute_han in /home/content/78/6698978/html/modules/uc_gbase/uc_gbase.module on line 601

Suggestions please.

klet’s picture

thanks for patch

avpaderno’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Issue summary: View changes
Priority: Critical » Normal
Status: Needs review » Closed (outdated)
Issue tags: -url, -google base, -drupal path alias

I am closing this issue, since it is for a Drupal version that now is not supported.
Please re-open it if the issue is also relevant for other project branches that require a supported Drupal version.