Skip to content
Products
Docs
Pricing
Blog
Log In
Sign Up
Docs
Docs
CODE
On this page

Common Mistakes

Frequent UNA 15 module and NEO mistakes, from storage ghosts and install SQL to CSRF, api.php 403s, guest-safe blocks and active_api, with the fix for each.
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',
public function serviceGetSafeServices()
{
    $a = parent::serviceGetSafeServices();
    return array_merge($a, array (
        'BrowsePublic' => '',
    ));
}
$oProfile = BxDolProfile::getInstance();
if (!$oProfile)
    return '';
2d
On this page
Hard-coding storage object namesLeaving uploads as ghostsPutting install SQL in the wrong fileLeaving a storage object out of install/config.phpExpecting PSR-4, a root config.php or template/artificerBuilding CSRF by handCalling services that are not safe or publicBreaking 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 mistakesTroubleshootingRelated
Auto
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