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

Error on uploading custom avatars and banners with craftingstore module. #2110

Closed
Nuckerr opened this issue Feb 16, 2021 · 3 comments
Closed
Labels
third party For issues related to non-official themes, modules and other modifications.

Comments

@Nuckerr
Copy link

Nuckerr commented Feb 16, 2021

Describe the issue
When I upload a custom banner or module, after pressing the upload button I am sent to an error page with this error

Fatal error: Uncaught Exception: Unable to create cache directory cache/ in /var/www/Nameless/core/classes/Cache.php:272
Stack trace: 
#0 /var/www/Nameless/core/classes/Cache.php(233): Cache->_checkCacheDir() 
#1 /var/www/Nameless/core/classes/Cache.php(219): Cache->getCacheDir() 
#2 /var/www/Nameless/core/classes/Cache.php(77): Cache->_loadCache() 
#3 /var/www/Nameless/modules/CraftingStore/src/Common/Retriever/CachedSettingRetriever.php(24): Cache->isCached() 
#4 /var/www/Nameless/modules/CraftingStore/module.php(66): CachedSettingRetriever->retrieve() 
#5 /var/www/Nameless/modules/CraftingStore/init.php(45): CraftingStoreModule->__construct() 
#6 /var/www/Nameless/core/init.php(494): require('/var/www/Namele...') 
#7 /var/www/Nameless/core/includes/image_upload.php(20): require('/var/www/Namele...') 
#8 {main} thrown in /var/www/Nameless/core/classes/Cache.php on line 272

Warning: file_put_contents(../../cache/logs/other-log.log): failed to open stream: No such file or directory in /var/www/Nameless/core/classes/ErrorHandler.php on line 70

Fatal error: require_once(): Failed opening required '../../error.php' (include_path='.:/usr/share/php') in /var/www/Nameless/core/classes/ErrorHandler.php on line 53`

To Reproduce
Steps to reproduce the behaviour:

  1. Make sure you have the craftingstore module enabled
  2. enable custom avatars or banners
  3. Go to user settings and at the bottem, upload a custom avatar or go to your profile and press the picture icon on the banner
  4. Upload a custom image and press Submit
  5. See error

Expected behaviour
That the image is uploaded and is set as the avatar/banner

Screenshots
http://i.nucker.me/jkrCD.png

NamelessMC version (from AdminCP -> Overview)
Running NamelessMC version 2.0.0-pr9

Additional information
I was told in your discord server to submit an issue here instead of the craftingtore github

@samerton
Copy link
Member

This is a CraftingStore error, can you please raise it with them

@samerton samerton added the third party For issues related to non-official themes, modules and other modifications. label Feb 16, 2021
@Nuckerr Nuckerr closed this as completed Feb 16, 2021
@Nuckerr
Copy link
Author

Nuckerr commented Feb 17, 2021

I got this reply from craftingstore http://i.nucker.me/hEWJD.png

@Derkades
Copy link
Member

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
third party For issues related to non-official themes, modules and other modifications.
Projects
None yet
Development

No branches or pull requests

3 participants