After i was done filling out all of the information to submit my theme I get an error;
array(8) { [0]=> array(2) { ["function"]=> string(28) "smf_db_replacement__callback" ["args"]=> array(1) { [0]=> &array(3) { [0]=> string(15) "{int:id_attach}" [1]=> string(3) "int" [2]=> string(9) "id_attach" } } } [1]=> array(4) { ["file"]=> string(47) "/home/simple/security/Sources/Subs-Db-mysql.php" ["line"]=> int(284) ["function"]=> string(21) "preg_replace_callback" ["args"]=> array(3) { [0]=> &string(35) "~{([a-z_]+)(?::([a-zA-Z0-9_-]+))?}~" [1]=> &string(28) "smf_db_replacement__callback" [2]=> &string(137) " SELECT id_file FROM {raw:theme_prefix}files WHERE id_attach = {int:id_attach} AND id_theme = {int:id_theme} LIMIT 1" } } [2]=> array(4) { ["file"]=> string(55) "/home/simple/public_html/custom/themes/Sources/Post.php" ["line"]=> int(524) ["function"]=> string(12) "smf_db_query" ["args"]=> array(3) { [0]=> &string(0) "" [1]=> &string(137) " SELECT id_file FROM {raw:theme_prefix}files WHERE id_attach = {int:id_attach} AND id_theme = {int:id_theme} LIMIT 1" [2]=> &array(3) { ["theme_prefix"]=> string(15) "`customize`.ts_" ["id_attach"]=> NULL ["id_theme"]=> int(470) } } } [3]=> array(4) { ["file"]=> string(55) "/home/simple/public_html/custom/themes/Sources/Post.php" ["line"]=> int(130) ["function"]=> string(9) "saveTheme" ["args"]=> array(0) { } } [4]=> array(4) { ["file"]=> string(48) "/home/simple/public_html/custom/themes/index.php" ["line"]=> int(165) ["function"]=> string(9) "ThemePost" ["args"]=> array(0) { } } [5]=> array(2) { ["function"]=> string(13) "ThemeSiteMain" ["args"]=> array(0) { } } [6]=> array(4) { ["file"]=> string(38) "/home/simple/public_html/integrate.php" ["line"]=> int(125) ["function"]=> string(14) "call_user_func" ["args"]=> array(1) { [0]=> &string(13) "ThemeSiteMain" } } [7]=> array(4) { ["file"]=> string(48) "/home/simple/public_html/custom/themes/index.php" ["line"]=> int(12) ["args"]=> array(1) { [0]=> string(38) "/home/simple/public_html/integrate.php" } ["function"]=> string(12) "require_once" } }
Fatal error: The database value you're trying to inject does not exist: id_attach in /home/simple/security/Sources/Subs-Db-mysql.php on line 136
Edit: Is this the right section? If so, sorry.
Was it while adding an attachment?
Ok I see where it goes wrong. My laptop is off now and I'm off to bed. I'll fix this in the morning. Can someone add this to the bug tracker and assign it to me please?
Done, 1311.
Ok should be good now. If anything just let us know.
Thanks JayBachatero, I appreciate it!