travel 2007-03-08 01:14
Fatal error: Call to undefined function: saveproduct() in /home/studio/public_html/set/actions_admin/products.php on line 39
» Quick.Cart v2.x 2007-03-08 07:06
travel - very strange problem :) 1. do You have core/products-admin.php file? 2. do You have function saveProduct() in this file if this file exists?
herowebdesign 2007-09-29 10:59
i have the same problem: Fatal error: Call to undefined function: saveproduct() in /home/herowebd/public_html/shop/actions_admin/products.php on line 39 please help
Nataly Kristal 2007-09-29 11:11
I run several shops by Quick Cart. New for me is the next fatal error when i want to add products: Parse error: syntax error, unexpected $end in /home/trousnl1/public_html/core/products-admin.php on line 1 Anybody?
herowebdesign 2007-09-29 11:26
try this! file: product-admin.php <?php if( !function_exists( 'addProduct' ) ){ /** * Dodawanie produktu * @return void * @param array $aForm */ function addProduct( $aForm ){ $aForm['iProduct'] = throwLastId( ) + 1; if( checkLength( $aForm['sShortDescription'], 1 ) ) $aForm['sShortDescription'] = changeTxt( $aForm['sShortDescription'], 'Br' ); if( checkLength( $aForm['sFullDescription'], 1 ) ) $aForm['sFullDescription'] = changeTxt( $aForm['sFullDescription'], 'Br' ); if( empty( $aForm['iPosition'] ) || !is_numeric( $aForm['iPosition'] ) ) $aForm['iPosition'] = 9; $aForm['sName'] = changeTxt( $aForm['sName'] ); $aForm['fPrice'] = ereg_replace( ',', '.', $aForm['fPrice'] ); $aForm['fPrice'] = tPrice( $aForm['fPrice'] ); addFiles( $aForm, $aForm['iProduct'], PRODUCTS_FOTO_SIZE, 1 ); dbAddProduct( $aForm ); } // end function addProduct } if( !function_exists( 'changeProduct' ) ){ /** * Zmiana danych produktu * @return void * @param array $aForm */ function changeProduct( $aForm ){ if( isset( $aForm['aFileDescriptionChange'] ) && is_array( $aForm['aFileDescriptionChange'] ) ){ foreach( $aForm['aFileDescriptionChange'] as $iKey => $sValue ){ dbChangeFileDescription( Array( $iKey, $aForm['iProduct'], $aForm['aFileNameChange'][$iKey], changeTxt( ereg_replace( '\'', '', $sValue ) ), $aForm['aFileType'][$iKey] ), 1 ); } } if( isset( $aForm['aDelFile'] ) && is_array( $aForm['aDelFile'] ) ){ $iCount = count( $aForm['aDelFile'] ); for( $i = 0; $i < $iCount; $i++ ) delFile( $aForm['aDelFile'][$i], 1 ); } if( checkLength( $aForm['sShortDescription'], 1 ) ) $aForm['sShortDescription'] = changeTxt( $aForm['sShortDescription'], 'Br' ); if( checkLength( $aForm['sFullDescription'], 1 ) ) $aForm['sFullDescription'] = changeTxt( $aForm['sFullDescription'], 'Br' ); if( empty( $aForm['iPosition'] ) || !is_numeric( $aForm['iPosition'] ) ) $aForm['iPosition'] = 9; $aForm['sName'] = changeTxt( $aForm['sName'] ); $aForm['fPrice'] = ereg_replace( ',', '.', $aForm['fPrice'] ); $aForm['fPrice'] = tPrice( $aForm['fPrice'] ); addFiles( $aForm, $aForm['iProduct'], PRODUCTS_FOTO_SIZE, 1 ); dbChangeProduct( $aForm ); } // end function changeProduct } if( !function_exists( 'delProduct' ) ){ /** * Usuwanie produktu * @return void * @param int $iProduct */ function delProduct( $iProduct ){ delFiles( $iProduct, 1 ); dbDelProduct( $iProduct ); } // end function delProduct } ?>
Nataly Kristal 2007-09-29 11:46
To herowebdesign, Thank you, problem solved! I changed the complete file and it works. Anybody else with the same problem? The file you'll find in CORE, after opening you'll just change the products-admin file completely for the one herowebdesign gave above.
Nataly Kristal 2007-09-29 12:11
I was to fast with my conclusion... After submitting a new product I can't save it Fatal error: Call to undefined function: saveproduct() in /home/trousnl1/public_html/actions_admin/products.php on line 39
herowebdesign 2007-09-29 12:11
my problem is stil there: if i add a product Fatal error: Call to undefined function: saveproduct() in /home/herowebd/public_html/shop/actions_admin/products.php on line 39 Anybody?
hero herowebdesign 2007-09-29 12:51
i am glad that i am not the only one with this problem! i have searched this forum and i can't find anthing about this. so Nataly Kristal if you have the solution, please tell me.
Greetings hero herowebdesign 2007-09-29 13:14
******** FOUND THE ERROR ! *************** THe files MUST be uploaded in BINARY MODE ! Edit the transfer mode in your ftp program to fix this problem. ********************************************* Good luck
Greetings hero Nataly Kristal 2007-09-29 17:29
I found the same solution. It's working now.
herowebdesign 2007-09-29 22:37
Ok Succes
Hero