Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6815

Re: Error after restore: File not found, sorry.

$
0
0
by sadaf sadafian.  

i use my ow created plugin to use a service of VOD. i use wrong syntax in

\public_html\mod\MYOWNPLUGIN\backup\moodle2\backup_MYOWNPLUGIN_activity_task.class.php


$search = "/(".$base."\//mod\/MYOWNPLUGIN\/index.php\?id\=)([0-9]+)/";
$content = preg_replace($search, '$@MYOWNPLUGIN*$2@$', $content);

// Link to choice view by moduleid.
$search = "/(".$base."\//mod\/MYOWNPLUGIN\/view.php\?id\=)([0-9]+)/";
$content = preg_replace($search, '$@MYOWNPLUGIN*$2@$', $content);

when i change that to:

$search = '/('.$base.'\/mod\/MYOWNPLUGIN\/index.php\?id\=)([0-9]+)/';
$content = preg_replace($search, '$@MYOWNPLUGIN*$2@$', $content);

// Link to choice view by moduleid.
$search = '/('.$base.'\/mod\/MYOWNPLUGIN\/view.php\?id\=)([0-9]+)/';
$content = preg_replace($search, '$@MYOWNPLUGIN*$2@$', $content);

the problem resolved...
thank you KEN .

Viewing all articles
Browse latest Browse all 6815

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>