- · Andrey Yasko
- ·
Hi everyone, I encountered and solved an issue in UNA CMS that was causing PHP warnings. Here's the problem and solution: Error: php
PHP Warning: Undefined variable $aParts in /home/.../public_html/inc/classes/BxDolTemplate.php
The error occurred in the _getAbsoluteLocation() method of BxDolTemplate.php where $aParts was being used without being properly initialized.
Solution:
Added a safety check before using $aParts by adding this code:
php
// Safe initialization of $aParts
if (!isset($aParts)) {
$aParts = explode($sDivider, $sName);
}
This initialization should be placed before any code that tries to access $aParts[0] or $aParts[1].
The fix ensures that $aParts is always properly initialized before being used, preventing the undefined variable warning.
Note: The error was found using Xdebug and stepping through the code to identify where $aParts was being accessed without initialization.
Hope this helps anyone encountering the same issue!
UNA 14RC2 hosted in the cloud by UNA
Can anybody confirm a problem with the Timeline Jump to switcher? I tested on Android Mobile with chrome and firefox. The jump to: switcher shows the calendar BUT stops at January 2024 and thats it. It is not possible to choose any day/month later. Desktop works well.
[[ By the way, the selection of the YEAR (same in other forms) is a pain. Should be a drop down like the selection of the month. ]]
- 766
Hello, i have installed UNA on my new server (it is a german hosting).
Aftermy installation i get this:
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
I can open only the administration or dashbord and the front side, but when i like to create a profile for ,yself i get this error in a white window. Someone can help me please or install UNA for me?!
- 2072
What is the difference in Studio/Forms between Data Lists and Categories? Both let me define Categories for Discussions, for example. But it seems that they do not access the same Categories table in the DB. When to use the one over the other and what is the outcome?
How to add category in Discussion app because i don't have that option in administration ??
When an admin removes a category from an module, let's say the Photos module, it should bring up a form to allow the admin to move all photos falling under this soon to be deleted category over to something more relevant.
Instead, what happens now, if an admin deletes a category, all photos are left with a blank category and in the database it's still using the CAT ID of a now deleted category.
So let's say I had 2 category that I recently found were redundant to keep them both.
Category one is: Animals
Category two is: Cats
I want to get rid of "Cats" and just have people use the general "Animals" category.
What I have to do is delete the category "Cats" and go into the database to mass edit every photo "cat" id to the desired one using a SQL command.
UPDATE `bx_photos_entries` SET `cat` = "10" WHERE `cat` = "12";
For me, this is easy, and it takes the burden off my userbase for having to do this. However, not everyone is a SQL wizard or knows how to work something akin to phpMyAdmin. So with that being said, is this possible that we can add this as a feature to the category deletion prompt for all UNA modules that use categories?
I followed UNA's Ubuntu installation tutorial on an Ubuntu DigitalOcean Droplet on version 14.0.0-RC2. Going to the website URL redirects me to /install/index.php and gives me a blank page with a 500 Internal Server Error on the browser's developer network tab and a 404 favicon.ico error.
I haven't put my website on a domain, which means I'm using the server's IP address to access the UNA Installation.
- 3646
How do I remove the top menu so the site is not accessible from other pages to visitors who have not signed up?
- 3626
We prefer the snippet previews of Pictures in Albums when you initially go to Albums feeds. We noticed that this is done using the Media Cards. How do we use the same procedure for Posts so they do not require the user to add a header image? When no header image is added, the Posts show a red box.
- 4099