#2899 - restore.php error on line 197

  • By
  • Added
  • 5 views
Identifier #2899
Issue type Major issue (breaks an entire feature)
Title restore.php error on line 197
Status Completed
Handling member Chris Graham
Addon backup
Description Had a need to restore (from multiple copies of backup-all doing same thing).
Getting following error:

Parse error: syntax error, unexpected '', '' (T_CONSTANT_ENCAPSED_STRING) in /home/foxglo5/public_html/foxcms/restore.php on line 197

Short code example:
function require_code($codename)
{
global $FILE_ARRAY, $REQUIRED_BEFORE;
if (array_key_exists($codename, $REQUIRED_BEFORE)) {
return;
}
$REQUIRED_BEFORE[$codename] = 1;
if (@is_array($FILE_ARRAY)) {
$file = file_array_get('sources/' . $codename . '.php');
$file = str_replace('<?php', '', $file);
$file = str_replace('', '', $file);

I use Notepad++ as my editor. It shows the text after the 1st single quote in the 2nd $file = statement as grayed out. The grayed out continues into the next function (function safe_ini_set($var,$value)) till just after the 'return false;' statement. See the attached screen capture file.
Steps to reproduce

Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated