{"record":{"id":"dac24295229f0b4e","repo":"getgrav/grav","slug":"flex-saverow-s-s","errorCode":null,"errorMessage":"Flex saveRow(%s): %s","messagePattern":"Flex saveRow\\((.+?)\\): (.+?)","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"system/src/Grav/Common/Flex/Types/Pages/Storage/PageStorage.php","lineNumber":465,"sourceCode":"            if (!isset($file)) {\n                $file = $this->getFile($newFilepath);\n            }\n\n            // Compare existing file content to the new one and save the file only if content has been changed.\n            $file->free();\n            $oldRaw = $file->raw();\n            $file->content($row);\n            $newRaw = $file->raw();\n            if ($oldRaw !== $newRaw) {\n                $file->save($row);\n                $debugger->addMessage(\"Page content saved: {$newFilepath}\", 'debug');\n            } else {\n                $debugger->addMessage('Page content has not been changed, do not update the file', 'debug');\n            }\n        } catch (RuntimeException $e) {\n            $name = isset($file) ? $file->filename() : $newKey;\n\n            throw new RuntimeException(sprintf('Flex saveRow(%s): %s', $name, $e->getMessage()));\n        } finally {\n            /** @var UniformResourceLocator $locator */\n            $locator = Grav::instance()['locator'];\n            $locator->clearCache();\n\n            if (isset($file)) {\n                $file->free();\n                unset($file);\n            }\n        }\n\n        $row['__META'] = $this->getObjectMeta($newKey, true);\n\n        return $row;\n    }\n\n    /**\n     * Check if page folder should be deleted.","sourceCodeStart":447,"sourceCodeEnd":483,"githubUrl":"https://github.com/getgrav/grav/blob/6040efed04efa69b8209448ed81308e7c24147c2/system/src/Grav/Common/Flex/Types/Pages/Storage/PageStorage.php#L447-L483","documentation":"Error \"Flex saveRow(%s): %s\" thrown in getgrav/grav.","triggerScenarios":"Thrown at system/src/Grav/Common/Flex/Types/Pages/Storage/PageStorage.php:465 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6040efed04efa69b8209448ed81308e7c24147c2","analyzedAt":"2026-08-17T05:07:31.593Z","schemaVersion":2},"datasetVersion":"2026-08-17T09:17:11.063Z"}