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

Getting siteUrl throws a PHP notice : Array to string conversion #19

Closed
slelorrain opened this issue Feb 29, 2016 · 3 comments
Closed

Comments

@slelorrain
Copy link

Hello,

I just updated CPNav to 1.7.3 and i'm getting an "array to string conversion" notice.

According to the documentation, siteUrl accepts:

A string set to any valid URL, or an array that maps locale IDs to locale-specific URLs

Regards

siteurl_notice

@slelorrain slelorrain changed the title Getting siteUrl throw a PHP notice : Array to string conversion Getting siteUrl throws a PHP notice : Array to string conversion Feb 29, 2016
@engram-design
Copy link
Member

Thanks for getting in touch. Can you confirm your siteUrl value as defined in your general.php file? Is it an array or a string?

@slelorrain
Copy link
Author

It's an array (containing 'en', 'fr', 'de' and 'es' as key)

I also made a commit, do you want a pull request ?

@engram-design
Copy link
Member

Awesome - one step ahead!

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

2 participants