[TYPO3-english] How to debug "home-made" plugins?

Markus Klein klein.t3 at mfc-linz.at
Wed Sep 4 14:37:36 CEST 2013


Hi!

You have got one very huge problem:
You're one of those devs that use the mysql functions directly. This is highly undesirable.

So why does your code not work?
Simply because since TYPO CMS 6.1 mysqli is used instead of mysql.
See https://typo3.org/download/release-notes/typo3-61-release-notes/

Hence your mysql calls will always fail, since there's no connection anymore!!!

I highly recommend to immediately switch to the TYPO3 Database API.

$GLOBALS['DB']->...

See http://typo3.org/api/typo3cms/class_t_y_p_o3_1_1_c_m_s_1_1_core_1_1_database_1_1_database_connection.html


Kind regards
Markus

------------------------------------------------------------
Markus Klein
TYPO3 CMS Active Contributors Team Member

> -----Original Message-----
> From: typo3-english-bounces at lists.typo3.org [mailto:typo3-english-
> bounces at lists.typo3.org] On Behalf Of Salander
> Sent: Wednesday, September 04, 2013 1:23 PM
> To: typo3-english at lists.typo3.org
> Subject: [TYPO3-english] How to debug "home-made" plugins?
> 
> Hello,
> 
> 
> Firstly, I'm crap at english, I hope you'll understand my statement.
> 
> I'm working on a TYPO3 6.1 website.
> I imported a plugin on this website. I must debug it because, somehow, it
> doesn't store the text form submitted into a typo3 folder. ( The plugin is like
> user registration, kinda )
> 
> I tried to read some documentations but they are NOT AT ALL noob-friendly.
> There is a lack of details.
> 
> Here is the SQL querry, writted in the extension .php, that must store the
> data into a TYPO3 folder :
> 
> 					$query = $this->cObj-
> >DBgetInsert("tx_storeplugin_cinema", $pid, $dataArr, $fieldList);
> 					mysql(TYPO3_db, $query);
> 
> What should I do/put in this file to know if the problem is here?
> I hope you may help me, I need to learn much about TYPO3.
> 
> Thanks.
> 
> Cordialement,
> Salander
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list