[AP] Style Suite

[AP] Style Suite [Paid] 2.16.10

No permission to buy (€15.00)
apathy updated [AP] Style Suite with a new update entry:

2.16.8

  • Create "View custom blocks" permission so guests that cant change block settings can still view registered members blocks
  • Address reports of an assets stored URL not reflecting the new data directory structure
  • Fix another formatSelectableColors(): Argument #1 ($colors) must be of type string, null given
  • Don't generate a tooltip when hovering over the avatar frame preview
  • Allow "avatar--square" to be applied even if "no-avatar-frame" is set
  • Fix issue...

Read the rest of this update entry...
 
Error: Call to a member function getFileType() on null in src/addons/apathy/StyleSuite/Entity/Asset.php at line 67
  1. apathy\StyleSuite\Entity\Asset->getAssetUrl() in src/addons/apathy/StyleSuite/Install/Upgrade2160070.php at line 140
  2. apathy\StyleSuite\Setup->upgrade2160830Step1() in src/XF/AddOn/StepRunnerUpgradeTrait.php at line 124
  3. apathy\StyleSuite\Setup->upgradeStepRunner() in src/XF/AddOn/StepRunnerUpgradeTrait.php at line 73
  4. apathy\StyleSuite\Setup->upgrade() in src/XF/Admin/Controller/AddOnController.php at line 617
  5. XF\Admin\Controller\AddOnController->actionUpgrade() in src/XF/Mvc/Dispatcher.php at line 362
  6. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
  7. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
  8. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
  9. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2826
  10. XF\App->run() in src/XF.php at line 806
  11. XF::runApp() in admin.php at line 15
 
Just tested and can't seem to reproduce it, but I do have something you could try:

  • Enable development mode for Xenforo
  • In the admin panel, scroll down to "Development"
  • Select Content types
  • Check if the entries in the attached picture exist
  • If they do not (specifically the ap_ss_asset_handler_class field), create them so they match with the picture
  • Try the upgrade again
 

Attachments

  • asset content types.webp
    asset content types.webp
    32.8 KB · Views: 6
updated this way: 2.15.1 >> 2.16.0 >> 2.16.8
Do you mean you successfully updated it this way or these were the steps you took to run into the error?

would be nice to add duotones fontawesome icons for postbit - Message user info elements. text to icon
I can add it to the to-do list but I can't imagine I'll be adding new features for the next while, I'm solely focused on bug fixes right now
 
I updated, but before I updated I think I have accidentally uploaded the 2.15 version... because now, fonts no longer work, and am having some errors after uploading the newest version and upgrading to that. If you have any suggestions for how I can fix this I would appreciate it, short of uninstalling and reinstalling the addon entirely ahhh! Damn my fat fingers!

I run the rebuild cache for user styles and get this error

XF\Db\InvalidQueryException: MySQL statement prepare error [1064]: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'cursor FROM xf_ap_ss_profile_style WHERE style_id > ? ' at line 1 in src/XF/Db/AbstractStatement.php at line 230
XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 207
XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 43
XF\Db\Mysqli\Statement->prepare() in src/XF/Db/Mysqli/Statement.php at line 61
XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 96
XF\Db\AbstractAdapter->query() in src/XF/Db/AbstractAdapter.php at line 157
XF\Db\AbstractAdapter->fetchAll() in src/addons/apathy/StyleSuite/Job/UserStyle/ImageTrait.php at line 90
apathy\StyleSuite\Job\UserStyle\ImageUrlToLocal->getNextIds() in src/XF/Job/AbstractRebuildJob.php at line 30
XF\Job\AbstractRebuildJob->run() in src/XF/Job/Manager.php at line 275
XF\Job\Manager->runJobInternal() in src/XF/Job/Manager.php at line 205
XF\Job\Manager->runJobEntry() in src/XF/Job/Manager.php at line 89
XF\Job\Manager->runQueue() in src/XF/Admin/Controller/ToolsController.php at line 165
XF\Admin\Controller\ToolsController->actionRunJob() in src/XF/Mvc/Dispatcher.php at line 362
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2826
XF\App->run() in src/XF.php at line 806
XF::runApp() in admin.php at line 15

---

I tried to rebuild the addon data itself and I got this error

ErrorException: File clean up job failed for apathy/StyleSuite due to write permissions. Legacy files may need to be cleaned up manually. src/XF/Error.php:81
Generated by: Unknown account May 29, 2025 at 9:28 AM
Stack trace
#0 src/XF.php(266): XF\Error->logError(Object(XF\Phrase), false)
#1 src/XF/Job/FileCleanUp.php(115): XF::logError(Object(XF\Phrase))
#2 src/XF/Job/FileCleanUp.php(52): XF\Job\FileCleanUp->stepDeleteFiles(8)
#3 src/XF/Job/Manager.php(275): XF\Job\FileCleanUp->run(8)
#4 src/XF/Job/Manager.php(205): XF\Job\Manager->runJobInternal(Array, 8)
#5 src/XF/Job/Manager.php(89): XF\Job\Manager->runJobEntry(Array, 8)
#6 job.php(46): XF\Job\Manager->runQueue(false, 8)
#7 {main}
Request state
array(4) {
["url"] => string(8) "/job.php"
["referrer"] => string(41) "/admin.php?add-ons/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}

--
 
@Empty so right now you're on 2.16.8, but you think you upgraded to a 2.15.X version in between?

I dont think theres anything you can do about error #1 yourself, but I'll look into it tomorrow.

Error #2 might suggest that suggest that the old data directories exist (They were copied & renamed in 2.15.0)
The contents of /data/apathy/StyleSuite should now have two sub-folders, "asset" and "user_style".
You could check if there are folders beside these two, such as "frames", "sparkles" etc (these are the old ones)
If the old ones exist, please reach out to me in a DM or on Discord (apathyff) and I can guide you on how to move/rename them
 
Thanks for your help with the previous issues!

Trying to figure out if this is a me thing or something else, but I've been trying for a while to update my profile's background image to have a different size and no matter what I select it just refreshes and reverts back to Auto.

Colors work ok, but uploaded images can't have their repeat values or size values or sticky value changed it seems

it seems to also be an issue for the navbar background
 
Last edited:
Back
Top Bottom