• Resolved liujunjie688

    (@liujunjie688)


    Hello Pierre,

    I have just installed the Weather Station plugin and am yet to be able to use it.
    The PHP version, cURL support and JSON support checks are all OK. But I am receiving error “Internationalization support is not installed on your server. Weather Station can not run!”

    I am using shared server hosting with cPanel. Via cPanel I tried installing the following Internationalization PHP packages:
    I18N 1.0.0
    I18N_UnicodeNormalizer 1.0.0
    I18N_UnicodeString 0.3.1
    I18Nv2 0.11.4
    The error still persisted, even after deactivating/removing/installing/activating the plugin.
    The cPanel package installer screen provided an include statement, which I later pasted into the top of the live-weather-station.php file:
    ini_set(“include_path”, ‘/home/xxxxxx/php:’ . ini_get(“include_path”) );
    Note the Internationalization packages are installed in paths /home/xxxxxx/php/I18N and in /home/xxxxxx/php/I18Nv2

    The error still persists.

    Questions:
    1/ Am I installing the correct/expected Internationalization packages?
    2/ Is there anything I need to do in the weather station plugin to recognize the installation of the Internationalization packages?
    3/ Any other hints?

    Thank you

    Regards,
    Sean

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello Liunjunjle688!

    Sorry for this late answer…

    I will try to answer yours questions although I do not know much about cPanel.
    1/ I don’t thing it is the right ones. PHP intl is a single extension.
    2/ No, there’s nothing to add in Weather Station source files. The intl extension for php is done in apache/php, not on applications “resting” on this stack. Weather Station is ready-to-use, provided you have the right modules on your server.
    3/ First of all, verify if there is something called “modules” (for php) or something similar in cpanel – the “standard” slug for what you’re searching for is “php-intl”. If you can find it, maybe could you contact your hosting service to ask it?
    After installing/activating, you have nothing to do for Weather Station starts: it will start ??

    Sorry for this short answer: I don’t know well cPanel…

    Don’t hesitate to ask questions if you have more. Or if you have failed or succeeded…

    Pierre

    Thread Starter liujunjie688

    (@liujunjie688)

    Hello Pierre,

    Thank you for the hint about “PHP intl”. My PHP version was 5.4 “native”. Seems this “native” version is the default when you start hosting with this particular hosting company. The “native” version does not allow for the selection of packages. I selected a change to non-native PHP 5.4 version. I was then presented a screen with ability to set select packages. “intl” was one of the options. I ended up selecting latest PHP 5.6 and re-installed your plugin. Now it works. Again, thanks for the hint.

    Another question, when using OpenWeatherMap API, I would like the ability to dynamically set the station details based on the user’s location and timezone. I already have the means to obtain these details. Question is, where within your plugin would be best place for me modify the code to insert these details (i.e. override a manual station entry)? I see where I could modify the ‘owm’ API query, but is there somewhere earlier that would be preferable? No worries if you prefer not to answer. I’m just after a hint to help me get started quicker.

    Thank you.

    Regards,
    Sean

    Hi Sean!

    First of all, it’s a great news the plugin is now operational for you! I’m aware cPanel is a great “help” for people, but sometimes it make things more “tricky” than it would be. Nevertheless, you found the answer, cool…

    Regarding your question, I’m very happy if I can help you to modify Weather Station, it is why it’s published under open source license ??

    I don’t know if it is really feasible, because Weather Station is more a way to display data from real or virtual weather stations than a plugin to display weather “on the fly” (taking parameters from visitors). If you would do that, you must bypass all croned updates and DB storage. And so, you must rewrite all DB queries (before displaying), to GET owm values from their API rather than querying your DB…

    In any case I’m very interested by what you will do to achieve it… ??

    Pierre

    I have the same problem but I’m on shared hosting and cannot add php internationalization. Would it be possible for this requirement to be stopped?

    It’s not possible to “stop” this requirement. It is a requirement because it is actively used by Weather Station… Without it, Weather Station can’t run.

    Ok, thanks for the reply. My hosting provider says they will be updating php in a few months so hopefully they can add php int.

    Is it possible to run this on a synology NAS? (Off topic)

    Yes. If WordPress can run on it (and it’s the case with synology), and if this NAS has access to internet, you can run Weather Station.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Internationalization support is not installed’ is closed to new replies.