Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Error in Infusions

Asked Modified Viewed 679 times
D
douwe_yntema
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Started this discussions
  • Answered 1 question
asked
Senior Member

When copy an infusion to the infusions folder of my PHP-fusion installation, following error occured:

// Multilanguage table
81 $inf_mlt[] = [
82 "title" => $locale['articles']['title'],
83 "rights" => "AR"
84 ];
85
86 // Multilanguage links
87 $enabled_languages = makefilelist(LOCALE, ".|..", TRUE, "folders");
88 if (!empty($enabled_languages)) {
89 foreach ($enabled_languages as $language) {
90 include LOCALE.$language."/setup.php";
Line 90 -- 17 seconds ago
include(../locale/German/setup.php): failed to open stream: No such file or directory

(Example from the Articles, but the same for news, forum etc.)

This error comes for every infusion in the /infusions folder.

The problem comes, because I installed PHP-fusion 9.03.50 with only English language, but the infusion I tried to install comes with other languages (German in this case).

I.m.o the system should NOT scan the folders of the infusions (line 87), but only check the enabled languages in the PHPFusion settings.
In this case it finds an German language file, but this file does not exist for all the other infusions.

Edit:
In the infusion was included a user field, with german language.
This files where placed in mydomain.com/locale/German/user_fields/...
If I remove the "German" folder, the error disappears.
So it seems the system is assuming the complete language must be available if there is a folder with that name. Even if this only contains a language file for a userfield.
Edited by douwe_yntema on 04-04-2020 18:54,
0 replies
There are no post found.

Labels

None yet

Statistics

  • Views 0 views
  • Posts 0 posts
  • Votes 0 votes
  • Topic users 1 member

1 participant

D
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Started this discussions
  • Answered 1 question

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet