#213 Installation of on Cpanel hosting

Closed
opened 3 years ago by bkmgit · 3 comments
bkmgit commented 3 years ago

Hi, thanks for updating GNU Social. Get the following errors when trying to install the most recent release,1.20.9 , on Cpanel hosting with PHP 7.4

Fatal error: Uncaught Error: Call to undefined function bindtextdomain() in /home/social/lib/plugin.php:152 Stack trace: #0 /home/social/lib/plugin.php(69): Plugin->setupGettext() #1 /home/social/lib/gnusocial.php(82): Plugin->__construct() #2 /home/social/lib/gnusocial.php(214): GNUsocial::addPlugin('ActivityVerb', Array) #3 /home/social/lib/gnusocial.php(147): GNUsocial::initPlugins() #4 /home/social/lib/common.php(27): GNUsocial::init('jamaa.tuvutepam...', NULL, NULL) #5 /home/social/lib/installer.php(531): require_once('/home/tuvutepa/...') #6 /home/social/lib/installer.php(611): Installer->registerInitialUser() #7 /home/social/install.php(298): Installer->doInstall() #8 /home/social/install.php(126): WebInstaller->handlePost() #9 /home/social/install.php(404): WebInstaller->main() #10 {main} thrown in /home/social/lib/plugin.php on line 152

Hi, thanks for updating GNU Social. Get the following errors when trying to install the most recent release,1.20.9 , on Cpanel hosting with PHP 7.4 Fatal error: Uncaught Error: Call to undefined function bindtextdomain() in /home/social/lib/plugin.php:152 Stack trace: #0 /home/social/lib/plugin.php(69): Plugin->setupGettext() #1 /home/social/lib/gnusocial.php(82): Plugin->__construct() #2 /home/social/lib/gnusocial.php(214): GNUsocial::addPlugin('ActivityVerb', Array) #3 /home/social/lib/gnusocial.php(147): GNUsocial::initPlugins() #4 /home/social/lib/common.php(27): GNUsocial::init('jamaa.tuvutepam...', NULL, NULL) #5 /home/social/lib/installer.php(531): require_once('/home/tuvutepa/...') #6 /home/social/lib/installer.php(611): Installer->registerInitialUser() #7 /home/social/install.php(298): Installer->doInstall() #8 /home/social/install.php(126): WebInstaller->handlePost() #9 /home/social/install.php(404): WebInstaller->main() #10 {main} thrown in /home/social/lib/plugin.php on line 152
senooken commented 3 years ago

It seems your PHP has no gettext module. bindextdomain() is gettext function (refer to https://www.php.net/manual/en/function.bindtextdomain.php).

Please check your PHP gettext module by phpinfo(); or php -m and install it.

In GNU social, PHP gettext module is optional in INSTALL.md.

But I think gettext module is mandatory. If PHP gettext module is disabled, I have function error like you.

So I think we had better to update INSTALL.md and validate gettext in install.php.

It seems your PHP has no gettext module. `bindextdomain()` is gettext function (refer to https://www.php.net/manual/en/function.bindtextdomain.php). Please check your PHP gettext module by `phpinfo();` or `php -m` and install it. In GNU social, PHP gettext module is optional in [INSTALL.md](https://notabug.org/diogo/gnu-social/src/v1.20.9release/INSTALL.md). But I think gettext module is mandatory. If PHP gettext module is disabled, I have function error like you. So I think we had better to update `INSTALL.md` and validate gettext in `install.php`.
bkmgit commented 3 years ago
Poster

Ok. It seems emulation was possible in earlier versions. Maybe it was removed by mistake? Perhaps it could be enabled again?

Ok. It seems emulation was possible in earlier versions. Maybe it was removed by mistake? Perhaps it could be enabled again?
Diogo Cordeiro commented 3 years ago
Owner

Yes, it was removed by mistake. Fixed with aa153f2ee7 . Thanks for noticing this.

Yes, it was removed by mistake. Fixed with https://notabug.org/diogo/gnu-social/commit/aa153f2ee7ead176d34049c460b4a9af9d51344f . Thanks for noticing this.
Sign in to join this conversation.
No Milestone
No assignee
3 Participants
Loading...
Cancel
Save
There is no content yet.