Getting a Drupal "page not found" error in the iframe when trying to use the [graph] command.

Analysis
The relative URL is incorrect: http://mydomain.test/node/sites/all/modules/mathfilter/includes/graphfra... (/node should not be there).

Fix
Prepended a '/' to drupal_get_path() on line 83 to make the returned path relative to the server root.

$graph_path = '/'.drupal_get_path('module', 'mathfilter') .'/includes/graphframe.php?';

Fix seems to work fine on both the LInux server and Windows XP, both using Apache 2. Otherwise, the current DEV version seems to work great.

Comments

dwees’s picture

Status: Active » Needs review

Thanks for the feedback, that does seem like an easy fix. Alternatively we could use file_get_path or something similar to resolve to an absolute path.

If I ever get a chance to commit any changes I'll test this fix.

Dave

RobertOak’s picture

This works, with the path change above and so far the 6.x-1.x-dev is working. The ones with their zip file, it doesn't work and also if you're upgrading from 5.x it will break all of your existing equations in your content.