I see this problem in other posts in the forum, but none of the solutions that were offered is working in my case:
Running Pligg Beta 9 on Windows XP and Apache 2.2 and PHP 5.2.3 MySQL 5.0
Installation went smoothly (really simple and easy!)
While trying to submit the first story I get the message "Incorrect key" in "Confirm details, step 3 of 3" page and the only option is to go back.
I tried to add:
in the "submit_step_3.tpl" of yget template filePHP Code:$linkres->randkey = $_POST['randkey'];
But when I did that I got an empty "Story details" section and the code shows that it crashed right before the line that I added above.
I tried to use the revised "submit.php" from Revision 1070 but this didn't help as well.
I checked that my PHP includes the MHash extension.
The log of the Apache is full with errors in each stage.
Stage 1:
Any ideas?Code:[Mon Jun 11 19:10:33 2007] [error] [client 127.0.0.1] PHP Notice: Undefined index: pretitle in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\Pligg\\templates_c\\c_367ca16afe9353a4378d42ef827135ad.php on line 87, referer: http://localhost/Pligg/submit.php [Mon Jun 11 19:10:33 2007] [error] [client 127.0.0.1] PHP Notice: Undefined index: body_args in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\Pligg\\templates_c\\c_367ca16afe9353a4378d42ef827135ad.php on line 95, referer: http://localhost/Pligg/submit.php [Mon Jun 11 19:10:33 2007] [error] [client 127.0.0.1] PHP Notice: Undefined index: search in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\Pligg\\templates_c\\c_630bba0e7a33cb7172d3f046a8196ad5.php on line 8, referer: http://localhost/Pligg/submit.php [Mon Jun 11 19:10:33 2007] [error] [client 127.0.0.1] PHP Notice: Undefined index: link2 in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\Pligg\\templates_c\\c_630bba0e7a33cb7172d3f046a8196ad5.php on line 131, referer: http://localhost/Pligg/submit.php [Mon Jun 11 19:10:33 2007] [error] [client 127.0.0.1] PHP Notice: Undefined index: text2 in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\Pligg\\templates_c\\c_630bba0e7a33cb7172d3f046a8196ad5.php on line 133, referer: http://localhost/Pligg/submit.php [Mon Jun 11 19:10:33 2007] [error] [client 127.0.0.1] PHP Notice: Undefined index: link3 in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\Pligg\\templates_c\\c_630bba0e7a33cb7172d3f046a8196ad5.php on line 134, referer: http://localhost/Pligg/submit.php [Mon Jun 11 19:10:33 2007] [error] [client 127.0.0.1] PHP Notice: Undefined index: text3 in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\Pligg\\templates_c\\c_630bba0e7a33cb7172d3f046a8196ad5.php on line 136, referer: http://localhost/Pligg/submit.php [Mon Jun 11 19:10:33 2007] [error] [client 127.0.0.1] PHP Notice: Undefined index: link4 in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\Pligg\\templates_c\\c_630bba0e7a33cb7172d3f046a8196ad5.php on line 137, referer: http://localhost/Pligg/submit.php [Mon Jun 11 19:10:33 2007] [error] [client 127.0.0.1] PHP Notice: Undefined index: text4 in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\Pligg\\templates_c\\c_630bba0e7a33cb7172d3f046a8196ad5.php on line 139, referer: http://localhost/Pligg/submit.php [Mon Jun 11 19:10:33 2007] [error] [client 127.0.0.1] PHP Notice: Undefined index: category in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\Pligg\\templates_c\\c_630bba0e7a33cb7172d3f046a8196ad5.php on line 174, referer: http://localhost/Pligg/submit.php [Mon Jun 11 19:10:33 2007] [error] [client 127.0.0.1] PHP Notice: Undefined index: setmeka in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\Pligg\\templates_c\\c_630bba0e7a33cb7172d3f046a8196ad5.php on line 184, referer: http://localhost/Pligg/submit.php [Mon Jun 11 19:10:33 2007] [error] [client 127.0.0.1] PHP Notice: Undefined index: setmeka in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\Pligg\\templates_c\\c_630bba0e7a33cb7172d3f046a8196ad5.php on line 187, referer: http://localhost/Pligg/submit.php [Mon Jun 11 19:10:33 2007] [error] [client 127.0.0.1] PHP Notice: Undefined index: setmeka in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\Pligg\\templates_c\\c_630bba0e7a33cb7172d3f046a8196ad5.php on line 190, referer: http://localhost/Pligg/submit.php [Mon Jun 11 19:10:33 2007] [error] [client 127.0.0.1] PHP Notice: Undefined index: setmeka in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\Pligg\\templates_c\\c_630bba0e7a33cb7172d3f046a8196ad5.php on line 193, referer: http://localhost/Pligg/submit.php [Mon Jun 11 19:10:33 2007] [error] [client 127.0.0.1] PHP Notice: Undefined index: setmeka in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\Pligg\\templates_c\\c_630bba0e7a33cb7172d3f046a8196ad5.php on line 196, referer: http://localhost/Pligg/submit.php [Mon Jun 11 19:10:33 2007] [error] [client 127.0.0.1] PHP Notice: Undefined index: setmeka in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\Pligg\\templates_c\\c_630bba0e7a33cb7172d3f046a8196ad5.php on line 199, referer: http://localhost/Pligg/submit.php [Mon Jun 11 19:10:33 2007] [error] [client 127.0.0.1] PHP Notice: Undefined variable: new_array in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\Pligg\\libs\\ez_sql_core.php on line 234, referer: http://localhost/Pligg/submit.php [Mon Jun 11 19:10:33 2007] [error] [client 127.0.0.1] PHP Notice: Undefined variable: new_array in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\Pligg\\libs\\ez_sql_core.php on line 234, referer: http://localhost/Pligg/submit.php
After going through all the threads again, I found this one:
Problem with sneak.php
with the solution to change the setting of MySQL not to be STRICT.
Code:# Set the SQL mode to strict #sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" # Set the SQL mode to NON strict for Pligg sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"



Reply With Quote



