Quantcast
Viewing all articles
Browse latest Browse all 1672

[3.3.x] Support Forum • Chrome errors on login, Firefox does not.

This a fresh install. Only admin user. Nothing else. Basically installed successfully and logged out to log back in again. Chrome errors read

The submitted form was invalid. Try submitting again.

After a few hours trying to figure out what file it was trying to chown, I found the source of the error is from/vendor/symphony/filesystem/Filesystem.php on line 230.

Code:

    public function chown($files, $user, $recursive = false)    {        foreach ($this->toIterable($files) as $file) {            if ($recursive && is_dir($file) && !is_link($file)) {                error_log('Attempting to chown: ' . $file); <-----[color=#BF0000]Added by me[/color]                $this->chown(new \FilesystemIterator($file), $user, true);            }            if (is_link($file) && \function_exists('lchown')) {                if (true !== @lchown($file, $user)) {                    error_log('Attempting to chown: ' . $file); <-----[color=#BF0000]Added by me[/color]                    throw new IOException(sprintf('Failed to chown file "%s".', $file), 0, null, $file);                }            } else {                if (true !== @chown($file, $user)) {                    error_log('Attempting to chown: ' . $file); <-----[color=#BF0000]Added by me[/color]                    throw new IOException(sprintf('Failed to chown file "%s".', $file), 0, null, $file);                }            }        }    }
This is the result of the debug lines I added

Code:

[Wed Jul 17 14:51:18.874940 2024] [php:notice] [pid 1198328:tid 1198328] [client 10.254.254.200:60008] Attempting to chown: ./../cache/production/data_global.php, referer:.../forum/adm/index.php?sid=827f5cc2504e79e0b3722e4c93de08fa
to make things easier, I chmodded cache folder to -R 777 and chowned -R to www-data:www-data

Chrome barfs when changing ownership of /cache/production/data_global.php
Firefox successfully changes owner and adds a new file called -rw-rw-rw- 1 www-data www-data 0 Jul 17 14:49 data_cron.lock_check.php.lock
Chrome never adds that new file I guess because barfing.

All this happens after a brand new install and attempt to login as admin.

I have never seen anything like this where one browser works and the other doesn't. ChatGPT has pretty much been useless, I think, because it asks me to run checks on apache but I'm not keen on believing that apache might be at fault here. Am I wrong? Too many hours spent on this already...

I would seriously appreciate any help on this, however small.

Statistics: Posted by rhottenrhino — Wed Jul 17, 2024 7:20 pm



Viewing all articles
Browse latest Browse all 1672

Trending Articles