Topic solved
This topic is marked as solved and as such require no attention unless you want to bump this issue.

Bug Subs-SimpleDeskProfile.php Undefined variable: sourcedir

Started by wintstar, November 14, 2015, 01:14:06 PM

Previous topic - Next topic

wintstar

SimpleDesk version: SimpleDesk 2.0.1
SMF version:  SMF 2.1 Beta 2

Latest revision from the GitHub. Download is of branch smf21 from 08.11.2015.

MySQLi version: 5.6.25
PHP: 5.6.11
SMF 2.1 Beta 2 is from the latest revision from the GitHub 08.11.2015

Error by click of  Helpdesk => "OPTIONS"

QuoteNotice: Undefined variable: sourcedir in C:\xampp\htdocs\smf21\Sources\sd_source\Subs-SimpleDeskProfile.php on line 116

Warning: require_once(/Profile-Modify.php): failed to open stream: No such file or directory in C:\xampp\htdocs\smf21\Sources\sd_source\Subs-SimpleDeskProfile.php on line 116

Fatal error:  require_once(): Failed opening required '/Profile-Modify.php' (include_path='.;\xampp\php\PEAR') in C:\xampp\htdocs\smf21\Sources\sd_source\Subs-SimpleDeskProfile.php on line 116

Solution

open root/Sources/sd_source/Subs-SimpleDeskProfile.php
find
function shd_profile_areas(&$profile_areas)
{
    global $modSettings, $context, $txt;


replaces with
function shd_profile_areas(&$profile_areas)
{
     global $sourcedir, $modSettings, $context, $txt;

SleePy

Jeremy D — Spare-Developer