Errors after changes, restored fusionpbx DB and now get blank page with <!--{project_path}--> in a lot of the asset URLs

Status
Not open for further replies.

aitp/nadmin

Member
May 11, 2019
38
2
8
Hi PBXForums community,

I'm having some trouble with the errors attached. I encounter the same types of errors after:
  • Restoring the fusionpbx database from a backup
  • changing any files in /var/www/fusionpbx/theme/default
Does anyone have any idea how i should proceed to troubleshoot? Thanks in advance!

Notice: Undefined variable: default_login in /var/www/fusionpbx/resources/footer.php(76) : eval()'d code on line 489

Notice: Undefined index: menu_brand_text in /var/www/fusionpbx/resources/footer.php(76) : eval()'d code on line 493

Notice: Undefined index: menu_brand_type in /var/www/fusionpbx/resources/footer.php(76) : eval()'d code on line 494

Notice: Undefined index: menu_brand_type in /var/www/fusionpbx/resources/footer.php(76) : eval()'d code on line 494

Notice: Undefined index: menu_brand_image in /var/www/fusionpbx/resources/footer.php(76) : eval()'d code on line 49

  • Notice: Undefined index: menu_main_icons in /var/www/fusionpbx/resources/footer.php(76) : eval()'d code on line 527

  • Notice: Undefined index: menu_main_icons in /var/www/fusionpbx/resources/footer.php(76) : eval()'d code on line 527

  • Notice: Undefined index: menu_main_icons in /var/www/fusionpbx/resources/footer.php(76) : eval()'d code on line 527

  • Notice: Undefined index: menu_main_icons in /var/www/fusionpbx/resources/footer.php(76) : eval()'d code on line 527

  • Notice: Undefined index: menu_main_icons in /var/www/fusionpbx/resources/footer.php(76) : eval()'d code on line 527
 

Attachments

  • Annotation 2019-07-03 194529.png
    Annotation 2019-07-03 194529.png
    132.9 KB · Views: 11
You need to turn off notices in /etc/fusionpbx/config.php remove the comment // in front of this line. Located at the bottom of the file.
error_reporting (E_ALL ^ E_NOTICE); // Report everything except notice
 
Thanks for the detailed response!
I had un-commented the error reporting line while trying to troubleshoot. I had so much trouble with it, I ended up rebuilding the configs by hand (my clicking finger hurts). Working on a better BCDR plan soon. :)

Thanks again for the time and expertise!
 
Hi Mark and PBXForums community.

This is my initial issue after running the scripts here : https://www.pbxforums.com/threads/fusionpbx-restore-backup-to-new-server.2900/
The database looks like it successfully restores, but this is what I get in the webUI when browsing... Some more screenshots for reference.
I unquoted the show errors line while trying to figure out what was broken, but i lack the understanding to continue troubleshooting.

Thanks in advance for the guidance! I'm super grateful for the help!

Tail from /var/log/ngninx/error.log:

2019/07/06 01:05:36 [error] 20754#20754: *5 open() "/var/www/fusionpbx/<!--{project_path}-->/resources/bootstrap/js/bootstrap.min.js" failed (2: No such file or directory), client: 1.1.1.1, server: fusionpbx, request: "GET /%3C!--%7Bproject_path%7D--%3E/resources/bootstrap/js/bootstrap.min.js HTTP/1.1", host: "1.1.1.1", referrer: "https://1.1.1.1/"

2019/07/06 01:05:36 [error] 20754#20754: *4 open() "/var/www/fusionpbx/<!--{project_path}-->/resources/bootstrap/js/bootstrap-datetimepicker.min.js" failed (2: No such file or directory), client: 1.1.1.1, server: fusionpbx, request: "GET /%3C!--%7Bproject_path%7D--%3E/resources/bootstrap/js/bootstrap-datetimepicker.min.js HTTP/1.1", host: "1.1.1.1", referrer: "https://1.1.1.1/"

2019/07/06 01:05:36 [error] 20754#20754: *2 open() "/var/www/fusionpbx/<!--{project_path}-->/resources/bootstrap/js/bootstrap-colorpicker.js" failed (2: No such file or directory), client: 1.1.1.1, server: fusionpbx, request: "GET /%3C!--%7Bproject_path%7D--%3E/resources/bootstrap/js/bootstrap-colorpicker.js HTTP/1.1", host: "1.1.1.1", referrer: "https://1.1.1.1/"

2019/07/06 01:05:36 [error] 20754#20754: *6 open() "/var/www/fusionpbx/<!--{project_path}-->/resources/bootstrap/js/bootstrap-pwstrength.min.js" failed (2: No such file or directory), client: 1.1.1.1, server: fusionpbx, request: "GET /%3C!--%7Bproject_path%7D--%3E/resources/bootstrap/js/bootstrap-pwstrength.min.js HTTP/1.1", host: "1.1.1.1", referrer: "https://1.1.1.1/"

2019/07/06 01:05:36 [error] 20754#20754: *8 open() "/var/www/fusionpbx/<!--{project_path}-->/resources/jquery/jquery.autosize.input.js" failed (2: No such file or directory), client: 1.1.1.1, server: fusionpbx, request: "GET /%3C!--%7Bproject_path%7D--%3E/resources/jquery/jquery.autosize.input.js HTTP/1.1", host: "1.1.1.1", referrer: "https://1.1.1.1/"

2019/07/06 01:05:36 [error] 20754#20754: *2 open() "/var/www/fusionpbx/<!--{project_path}-->/resources/momentjs/moment.js" failed (2: No such file or directory), client: 1.1.1.1, server: fusionpbx, request: "GET /%3C!--%7Bproject_path%7D--%3E/resources/momentjs/moment.js HTTP/1.1", host: "1.1.1.1", referrer: "https://1.1.1.1/"

2019/07/06 01:05:36 [error] 20754#20754: *2 open() "/var/www/fusionpbx/<!--{project_path}-->/resources/bootstrap/js/bootstrap.min.js" failed (2: No such file or directory), client: 1.1.1.1, server: fusionpbx, request: "GET /%3C!--%7Bproject_path%7D--%3E/resources/bootstrap/js/bootstrap.min.js HTTP/1.1", host: "1.1.1.1", referrer: "https://1.1.1.1/"

2019/07/06 01:05:36 [error] 20754#20754: *2 open() "/var/www/fusionpbx/<!--{project_path}-->/resources/bootstrap/js/bootstrap-datetimepicker.min.js" failed (2: No such file or directory), client: 1.1.1.1, server: fusionpbx, request: "GET /%3C!--%7Bproject_path%7D--%3E/resources/bootstrap/js/bootstrap-datetimepicker.min.js HTTP/1.1", host: "1.1.1.1", referrer: "https://1.1.1.1/"

2019/07/06 01:05:36 [error] 20754#20754: *2 open() "/var/www/fusionpbx/<!--{project_path}-->/resources/bootstrap/js/bootstrap-colorpicker.js" failed (2: No such file or directory), client: 1.1.1.1, server: fusionpbx, request: "GET /%3C!--%7Bproject_path%7D--%3E/resources/bootstrap/js/bootstrap-colorpicker.js HTTP/1.1", host: "1.1.1.1", referrer: "https://1.1.1.1/"

2019/07/06 01:05:36 [error] 20754#20754: *2 open() "/var/www/fusionpbx/<!--{project_path}-->/resources/bootstrap/js/bootstrap-pwstrength.min.js" failed (2: No such file or directory), client: 1.1.1.1, server: fusionpbx, request: "GET /%3C!--%7Bproject_path%7D--%3E/resources/bootstrap/js/bootstrap-pwstrength.min.js HTTP/1.1", host: "1.1.1.1", referrer: "https://1.1.1.1/"
 

Attachments

  • pbxfq1.png
    pbxfq1.png
    12.6 KB · Views: 8
Last edited:
Hi @alexoos,

It was so long ago I can't remember exactly what happened and what was done to resolve it.

I think I may have ended up restoring to another debian 9 host just after a vanilla install and it worked again, so I migrated to that host.

Sorry I wasn't able to help.

Respectfully,

Auto/nadmi
 
Try logout.php and login again. The old code that isn’t working could be cached in the session. Second make sure you Upgrades to latest 4.5.x.
 
Thanks for response. I tried running logout.php and it didnt seem to do anything. Also ensured I am using the latest version.

Any other ideas to try?
 
Status
Not open for further replies.