Support Error with my server (1 Viewer)

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Speddy20537

Licensed
Licensed
Joined
Oct 27, 2019
Messages
10
Reaction score
0
good Morning


First of all huge thank you for the brilliant addon.
Now I want to test it and when I search for a new
avatar and go to save this error message comes to light.



PHP:
rrorException: [E_WARNING] tempnam(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/virtual/gameserversupport.de/:/opt/phpswitcher/static/php7.2/share/pear/)
src/addons/XenSoluce/AvatarGallery/XF/Pub/Controller/Account.php:22

PHP:
#0 [internal function]: XF::handlePhpError(2, '[E_WARNING] tem...', '/var/www/virtua...', 22, Array)
#1 src/addons/XenSoluce/AvatarGallery/XF/Pub/Controller/Account.php(22): tempnam('/tmp', 'php')
#2 src/XF/Mvc/Dispatcher.php(321): XenSoluce\AvatarGallery\XF\Pub\Controller\Account->actionAvatar(Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Dispatcher.php(248): XF\Mvc\Dispatcher->dispatchClass('XF:Account', 'Avatar', Object(XF\Mvc\RouteMatch), Object(SV\SearchImprovements\XF\Pub\Controller\Account), NULL)
#4 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\SearchImprovements\XF\Pub\Controller\Account), NULL)
#5 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#6 src/XF/App.php(2178): XF\Mvc\Dispatcher->run()
#7 src/XF.php(390): XF\App->run()
#8 index.php(20): XF::runApp('XF\\Pub\\App')
#9 {main}

PHP:
array(4) {
  ["url"] => string(15) "/account/avatar"
  ["referrer"] => string(65) "/account/account-details"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(8) {
    ["avatar_crop_x"] => string(1) "0"
    ["avatar_crop_y"] => string(1) "0"
    ["use_custom"] => string(1) "1"
    ["gallery_avatar"] => string(49) "gallery_avatars/Pirates/Flag-Jolly-Roger-icon.png"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(24) "/account/account-details"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 

CRUEL-MODZ

Administrator
Staff member
Administrator
Moderator
Licensed
Joined
Jul 8, 2019
Messages
359
Reaction score
176
Hello,

This addon does not work localhost
 
Last edited:

CRUEL-MODZ

Administrator
Staff member
Administrator
Moderator
Licensed
Joined
Jul 8, 2019
Messages
359
Reaction score
176
SORRY : localhost and no locallyhost
 

CRUEL-MODZ

Administrator
Staff member
Administrator
Moderator
Licensed
Joined
Jul 8, 2019
Messages
359
Reaction score
176
In fact the error comes from the fact that your server does not allow a PHP function: tempnam()

What is your current PHP version of your server?
 

CRUEL-MODZ

Administrator
Staff member
Administrator
Moderator
Licensed
Joined
Jul 8, 2019
Messages
359
Reaction score
176


this error does not come from the addon but that there is something that blocks a PHP function watchman look on the internet, we use a function: tempnam() (it is a PHP function)
 

Speddy20537

Licensed
Licensed
Joined
Oct 27, 2019
Messages
10
Reaction score
0
In which file is that called because here is a file called on me for the server is different and the following answer from manufacturer of webcontroll pannel.



Code:
Your application cannot access the /tmp directory which is the expected behavior as customers have their own temporary dir:

/var/www/virtual/<customer>/phptmp

First solution (recommended)

You need configure your application to use this directory. This is the recommended solution as this avoid PHP application accessing system temporary directory.
 

CRUEL-MODZ

Administrator
Staff member
Administrator
Moderator
Licensed
Joined
Jul 8, 2019
Messages
359
Reaction score
176
Sorry but I can't help you anymore it's not from my resort the addon works it just needs to see you with your hosting, if you wanted me to intervene with your hosting you will have to pay me (your server is French?)
 
Top Bottom