Php not processing in localhost

  • Hi,
    an old client ask me to replicate a site that was only in live version. When I replicate it on Mamp's localhost, the site did not process PHP.


    Cracking on the first PHP code it finds

    Screenshot-2022-12-01-at-19-03-06.png


    Perch debug is giving me this error in red:


    Code
    1. Array
    2. (
    3. [type] => 2
    4. [message] => include(): Failed opening '/Users/raulserrano/Sites/localhost/italiavacaciones/perch/core/runway/apps/apps.php' for inclusion (include_path='.:/Applications/MAMP/bin/php/php7.2.34/lib/php')
    5. [file] => /Users/raulserrano/Sites/localhost/italiavacaciones/perch/core/lib/PerchAdmin.class.php
    6. [line] => 100
    7. )


    Rest of debug:


    Diagnosis





    Any idea whats going on?

  • Actually, PHP is working on previous lines that are just PHP includes, but it crash on the first Perch PHP's


    PHP
    1. <?php $string = perch_content('Telefono', true); $res = preg_replace('/[^a-zA-Z0-9]/', '', $string); echo $res; ?>

    If I take out that line it crashes on the next Perch's PHP line of code...