Skip to content
Products
Apps
Docs
Log in
Log in
Sign up
Sign up
Products
Apps
Docs
Docs
Docs
CODE
On this page

Common Mistakes

Frequent UNA 15 module and NEO mistakes and the fix for each: storage ghosts, install SQL without a migration, language keys, CSRF, api.php 403s, cacheable services, guest-safe blocks, active_api, accounts and the unacms/neo mirror.
Android
iOS
Web
Core
~15.0
Copy Page
Note
'OBJECT_STORAGE' => 'bx_posts_covers',
'OBJECT_STORAGE_FILES' => 'bx_posts_files',
'OBJECT_STORAGE_PHOTOS' => 'bx_posts_photos',
'OBJECT_STORAGE_VIDEOS' => 'bx_posts_videos',
'OBJECT_STORAGE_SOUNDS' => 'bx_posts_sounds',
public function serviceGetSafeServices()
{
    $a = parent::serviceGetSafeServices();
    return array_merge($a, array (
        'BrowsePublic' => '',
    ));
}
$oProfile = BxDolProfile::getInstance();
if (!$oProfile)
    return '';
14d
On this page
I want toHard-coding storage object namesLeaving uploads as ghostsPutting install SQL in the wrong fileChanging install SQL without a migrationAdding language keys by handLeaving a storage object out of install/config.phpExpecting PSR-4, a root config.php or template/artificerBreaking the UNA coding restrictionsBuilding CSRF by handCalling services that are not safe or publicCaching a service answer that depends on the viewerBreaking NEO pages for guestsSetting active_api in the wrong fileTreating sys_accounts.status as a columnMixing account, profile and operatorMixing Studio Storage, storage objects and remote storageLinking or committing to github.com/unacms/neoNEO code mistakesTipsTroubleshootingFor developersGitHub SourcesRelated
Introduction
Getting Started
Configuration
Apps
CODE
Developer Architecture
Code Convention
Code Quality
Directory Structure
How to Add an App
Storage System
Common Mistakes
Payment Provider Integration
Module API
iOS Client
NEO Developer
Android Client
Web Client
Contributing
REST API
Analytics Developer
Auth
Connect
'OBJECT_STORAGE' => 'bx_posts_covers',
'OBJECT_STORAGE_FILES' => 'bx_posts_files',
'OBJECT_STORAGE_PHOTOS' => 'bx_posts_photos',
'OBJECT_STORAGE_VIDEOS' => 'bx_posts_videos',
'OBJECT_STORAGE_SOUNDS' => 'bx_posts_sounds',