Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error re libphonenumber/PhoneNumberUtil.php upon enabling on 5.2.x #11

Closed
petednz opened this issue Jun 18, 2018 · 6 comments
Closed

Comments

@petednz
Copy link

petednz commented Jun 18, 2018

Just reporting that I got this when testing this extension on 5.2.x

Fatal error: require_once(): Failed opening required 'libphonenumber/PhoneNumberUtil.php' (include_path='/srv/www/fmc/fmc.fudev.co.nz/sites/all/civicrm/extensions/com.cividesk.normalize/:/srv/www/fmc/fmc.fudev.co.nz/sites/all/civicrm/extensions/nz.co.fuzion.civitoken/:/srv/www/fmc/fmc.fudev.co.nz/sites/all/civicrm/extensions/uk.co.vedaconsulting.mosaico/:/srv/www/fmc/fmc.fudev.co.nz/sites/all/civicrm/extensions/org.civicrm.flexmailer/:/srv/www/fmc/fmc.fudev.co.nz/sites/all/civicrm/extensions/org.civicrm.shoreditch/:/srv/www/fmc/fmc.fudev.co.nz/sites/all/civicrm/extensions/nz.co.fuzion.civixero/:/srv/www/fmc/fmc.fudev.co.nz/sites/all/civicrm/extensions/nz.co.fuzion.accountsync/:/srv/www/fmc/fmc.fudev.co.nz/sites/all/civicrm/extensions/nz.co.fuzion.fmcmembership/:/srv/www/fmc/fmc.fudev.co.nz/sites/all/civicrm/extensions/nz.co.fuzion.transactional/:/srv/www/fmc/fmc.fudev.co.nz/sites/all/civicrm/extensions/nz.co.fuzion.omnipaymultiprocessor/vendor/phpunit/phpunit-mock-objects:/srv/www/fmc/fmc.fudev.co.nz/sites/all/civicrm/ext in /srv/www/fmc/fmc.fudev.co.nz/sites/all/civicrm/extensions/com.cividesk.normalize/CRM/Utils/Normalize.php on line 25

@petednz
Copy link
Author

petednz commented Jun 18, 2018

And thereafter I get

Warning: require_once(libphonenumber/PhoneNumberUtil.php): failed to open stream: No such file or directory in require_once() (line 25 of /srv/www/fmc/fmc.fudev.co.nz/sites/all/civicrm/extensions/com.cividesk.normalize/CRM/Utils/Normalize.php).

sites/all/civicrm/extensions/com.cividesk.normalize/packages/libphonenumber/PhoneNumberUtil.php

does exist at that path

@nganivet
Copy link
Contributor

@petednz Seems like it is not finding the includes. We alter the path in function function normalize_civicrm_config(&$config), maybe you can add some traces there to see what is happening.

@mlutfy
Copy link
Contributor

mlutfy commented Sep 14, 2018

I didn't run into this. Seems OK on 5.3+.

@nganivet
Copy link
Contributor

@mlutfy Thanks for the report. @petednz Have you been able to resolve this? If so, can you provide a PR? Thanks.

@nganivet
Copy link
Contributor

nganivet commented Jan 9, 2019

Closed as non-reproducible.

@nganivet nganivet closed this as completed Jan 9, 2019
@andyburnsco
Copy link

andyburnsco commented May 27, 2020

Received same error (#11 (comment)) when trying to update from version 1.0 to 1.1 on Civi 5.24.4. When revisiting the extensions page it says it is enabled and version 1.1. Should I not worry?

Fatal error: require_once(): Failed opening required 'libphonenumber/PhoneNumberUtil.php' (include_path='/wp-content/uploads/civicrm/ext/com.cividesk.normalize/:/wp-content/uploads/civicrm/ext/minifier/:/wp-content/uploads/civicrm/ext/org.civicoop.emailapi/:/wp-content/uploads/civicrm/ext/com.joineryhq.profcond/:/wp-content/uploads/civicrm/ext/firewall/:/wp-content/uploads/civicrm/ext/stripe-5.4.1/:/wp-content/uploads/civicrm/ext/com.iatspayments.civicrm/:/wp-content/uploads/civicrm/ext/custompermissions/:/wp-content/uploads/civicrm/ext/com.aghstrategies.eventmembershipsignup/:/wp-content/uploads/civicrm/ext/org.civicrm.profileimageurl/:/wp-content/uploads/civicrm/ext/mjwshared/:/wp-content/uploads/civicrm/ext/nz.co.fuzion.relatedpermissions/:/wp-content/uploads/civicrm/ext/org.civicrm.contactlayout/:/wp-content/uploads/civicrm/e in /wp-content/uploads/civicrm/ext/com.cividesk.normalize/CRM/Utils/Normalize.php on line 25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants