• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

Again. Undefined property: stdClass::$rating_letter

Status
Not open for further replies.

evil

Chevereto Member
Same as 14713 but in newest version.

▶ Reproduction steps
  1. None
😢 Unexpected result

None

📃 Error log message

Chevere\Throwable\Exceptions\ErrorException thrown in /app/src/Legacy/Classes/Image.php:1152

# Message [Code #2]
Undefined property: stdClass::$rating_letter

# Incident ID:63b9c5b7aecda

# Time
2023-01-07T19:19:19+00:00 [1673119159]

# Stack trace
------------------------------------------------------------
#0 /app/src/Legacy/Classes/Image.php:1152
{main}()
------------------------------------------------------------
#1 /app/src/Legacy/Classes/Image.php:1029
Chevereto\Legacy\Classes\Image::insert()
------------------------------------------------------------
#2 /app/legacy/routes/json.php:120
Chevereto\Legacy\Classes\Image::uploadToWebsite()
------------------------------------------------------------
#3 /app/src/Legacy/G/Handler.php:242
Chevereto\Legacy\G\Handler->{closure}()
------------------------------------------------------------
#4 /app/src/Legacy/G/Handler.php:158
Chevereto\Legacy\G\Handler->processRequest()
------------------------------------------------------------
#5 /app/legacy/load/web.php:500
Chevereto\Legacy\G\Handler->__construct()
------------------------------------------------------------
#6 /app/legacy/entrypoints/index.php:25
require_once(string(length=47))
------------------------------------------------------------
#7 /index.php:12
require_once(string(length=56))
------------------------------------------------------------
 
Unfortunately, I can not understand.

With none of the versions I had ever received a message from the system. Also in the logs is nothing of it in there.

First I suspected that it is because of the Like and Follower system and have activated these times, but also there is not this error.

I looked at the file /app/src/Legacy/Classes/Image.php in line 1152.
PHP:
        if (Settings::get('moderatecontent')
            && $values['nsfw'] == 0
            && Settings::get('moderatecontent_flag_nsfw')
            && is_object($image_upload['moderation'])
        ) {
            switch ($image_upload['moderation']->rating_letter) { #row 1152
                case 'a':
                    $values['nsfw'] = '1';

                break;
                case 't':
                    if (Settings::get('moderatecontent_flag_nsfw') == 't') {
                        $values['nsfw'] = 1;
                    }

                break;
            }
        }

I assume that it has something to do with the moderated content, at least if you have activated the option under "/dashboard/settings/image-upload".

Thus I have this function with me times activated to trace this. I uploaded an image as a guest. There was no error message and there is nothing in the logs. Whether the upload was marked as NWSF does not matter.

As an administrator I then unlocked the image, there was also no error message regarding this.

Also in connection with the external service ModerateContent I could not replicate any error.
 
🔒 This bug report is locked pending 60 day resolution. Having same issue? Give a like to say "me too".
 
This bug status has changed to pending release (target 4.0.7)
 
Status
Not open for further replies.
Back
Top