Photo lies after upload.

Tamás Varga Posted in Component Development 2 years ago

Photo stands on the computer. It lies down after charging, it does not look good. Resolution: 3744x4992. OSSN 6.1

Replies
Hungarian Tamás Varga Replied 2 years ago

Thanks Arsalan, I already wrote to the administrator.

Indonesian Arsalan Shah Replied 2 years ago

You. need to contact them to enable php exif extension for you in their WHM

Hungarian Tamás Varga Replied 2 years ago

Arsalan: I'm sorry you're having so much trouble setting up my service provider :-(

Indonesian Arsalan Shah Replied 2 years ago

Not surprised your hosting provider issue

enter image description here
enter image description here

Indonesian Arsalan Shah Replied 2 years ago

@Tamas as Michael said you need to disable these components. Did you really disabled these? if disabled these error logs should not appear, once disabled please delete error_log file and try to follow what Michael told you.

Hungarian Tamás Varga Replied 2 years ago

Thank you Michael.

German Michael Zülsdorff Replied 2 years ago

Sorry, but then I am not able to help you.

You said you turned off these components but still get their warnings?
You added my log lines to OssnFile.php, but they don't appear in the log?

I have no idea why and no way to investigate. So please call Openteknik support.

Hungarian Tamás Varga Replied 2 years ago

I turned off the components:

[15-Apr-2022 09:35:04 UTC] PHP WARNING: 2022-04-15 09:35:04 (UTC): "Attempt to read property "guid" on bool" in file /home/elittagh/publichtml/components/MarketPlace/ossncom.php (line 54)
[15-Apr-2022 09:35:04 UTC] PHP WARNING: 2022-04-15 09:35:04 (UTC): "Attempt to read property "guid" on bool" in file /home/elittagh/publichtml/components/Files/ossncom.php (line 39)
[15-Apr-2022 12:05:07 UTC] PHP WARNING: 2022-04-15 12:05:07 (UTC): "Attempt to read property "guid" on bool" in file /home/elittagh/publichtml/components/MarketPlace/ossncom.php (line 54)
[15-Apr-2022 12:05:07 UTC] PHP WARNING: 2022-04-15 12:05:07 (UTC): "Attempt to read property "guid" on bool" in file /home/elittagh/publichtml/components/Files/ossncom.php (line 39)

Hungarian Tamás Varga Replied 2 years ago

[15-Apr-2022 09:35:04 UTC] PHP WARNING: 2022-04-15 09:35:04 (UTC): "Attempt to read property "guid" on bool" in file /home/elittagh/publichtml/components/MarketPlace/ossncom.php (line 54)
[15-Apr-2022 09:35:04 UTC] PHP WARNING: 2022-04-15 09:35:04 (UTC): "Attempt to read property "guid" on bool" in file /home/elittagh/publichtml/components/Files/ossncom.php (line 39)
[15-Apr-2022 12:05:07 UTC] PHP WARNING: 2022-04-15 12:05:07 (UTC): "Attempt to read property "guid" on bool" in file /home/elittagh/publichtml/components/MarketPlace/ossncom.php (line 54)
[15-Apr-2022 12:05:07 UTC] PHP WARNING: 2022-04-15 12:05:07 (UTC): "Attempt to read property "guid" on bool" in file /home/elittagh/publichtml/components/Files/ossncom.php (line 39)

German Michael Zülsdorff Replied 2 years ago

so the rotate function is not reached at all :(

please add one more error_log to OssnFile.php to find out why

        //[E] Disallow to upload empty files #1976
        if(!$sizecheck || $sizecheck && empty($sizecheck)){
             $this->deleteEntity($fileguid);    
             return false;
        }
error_log('FILE ' . ossn_dump($this->file));
        if(preg_match('/image/i', $this->file['type'])) {
            //fix rotation #918
            //[E] exif_read_data only for jpeg #1999
            if($this->file['type'] == 'image/jpeg'){
                $this->resetRotation($this->file['tmp_name']);
        }

and upload your image again