'ello all.

I have an issue where data is not being populated by fetch()

It works in all other directories and scripts except this one.

$out = $smarty->fetch(_SMARTY_TEMPLATES_PATH . CONTACT_MANAGER_DIR . $tpl);
$smarty->assign('contact_manager', $out);

$out is empty. There are no errors. The file and path exist. I can print the file contents with file_get_contents. This is a fully functional site that was cloned to another server. Replacing $out with a literal string displays the proper content.

Does anyone have any ideas? I already updated Smarty (even though that should not have been the issue anyways). I am at a loss here.

TIA!

    Just a guess and I'm probably way wrong on this, but could it be a php version issue? What version of php did you have on the old server in comparison to the new one?

      There is a difference in the PHP versions.

      The working server has 5.0.4 and the new one has 5.2.4

      Can you think of anything between the versions that would cause this?

      Thanks for your reply.

        Also, replacing the contents of the included template with plain text yields no difference.

          Unfortunately this issue was resolved using Plesk's built in migration manager so I do not know the exact cause of the problem.

            Write a Reply...