[TYPO3-english] Class 't3lib_div' not found

2012-03-01 Thread Deyan Yankov

Hello.

I have the following error in one of my plugins.

Fatal error: Class 't3lib_div' not found in 
C:\xampp\htdocs\EclipseProjects\IDECORimages\trunk\typo3conf\ext\idecorimages\classes\models\public.php 
on line 135


Here is the 135 row (see row numbers in the screenshot attached):

public function getDB(){
if (!TYPO3_db)  {
return;
}   
if (!isset($GLOBALS['TYPO3_DB'])) {
$GLOBALS['TYPO3_DB'] = 
t3lib_div::makeInstance('t3lib_db');
			if (!$GLOBALS['TYPO3_DB']-sql_pconnect(TYPO3_db_host, 
TYPO3_db_username, TYPO3_db_password) ||

!$GLOBALS['TYPO3_DB']-sql_select_db(TYPO3_db)) 
{
// Cannot connect to database
return;
}else{
return $GLOBALS['TYPO3_DB'];

}
}else{
return $GLOBALS['TYPO3_DB'];
}
}

Could you please help me with this problem? Why it cannot find the 
t3lib_div class, and how to load it together with the corresponding classes?


Regards,
Deyan Yankov
Goos Web Division
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Re: [TYPO3-english] Class 't3lib_div' not found

2012-03-01 Thread Björn Pedersen
Am 01.03.2012 08:55, schrieb Deyan Yankov:
 Hello.
 
 I have the following error in one of my plugins.
 
 Fatal error: Class 't3lib_div' not found in
 C:\xampp\htdocs\EclipseProjects\IDECORimages\trunk\typo3conf\ext\idecorimages\classes\models\public.php
 on line 135
 
 Here is the 135 row (see row numbers in the screenshot attached):
 
 public function getDB(){
 if (!TYPO3_db){
 return;
 }   
 if (!isset($GLOBALS['TYPO3_DB'])) {
 $GLOBALS['TYPO3_DB'] = t3lib_div::makeInstance('t3lib_db');
 if (!$GLOBALS['TYPO3_DB']-sql_pconnect(TYPO3_db_host,
 TYPO3_db_username, TYPO3_db_password) ||
 !$GLOBALS['TYPO3_DB']-sql_select_db(TYPO3_db)) {
 // Cannot connect to database
 return;
 }else{
 return $GLOBALS['TYPO3_DB'];   
 }
 }else{
 return $GLOBALS['TYPO3_DB'];
 }
 }
 
 Could you please help me with this problem? Why it cannot find the
 t3lib_div class, and how to load it together with the corresponding
 classes?
 
 Regards,
 Deyan Yankov
 Goos Web Division

What are you trying to achieve? In a plugin you always can rely on
$GLOBALS['TYPO3_DB'] being available. Are you trying to write some
standalone script? Then you have to  run through the complete
initialization as well (including init.php, which will set up
autoloader, DB access  etc.). Maybe you don't need the full setup, then
you should look at eID.

Björn

___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Re: [TYPO3-english] TCA field type text max length

2012-03-01 Thread Jigal van Hemert

Hi,

On 1-3-2012 4:40, Rayuth You (Yuth) wrote:

I want to limit max length only 1000 characters for my textarea field.
As type 'input' that have property 'max'.


A text field has no width property in TCA. You could make user-defined 
eval function which limits the length to 1000 characters.


--
Kind regards / met vriendelijke groet,

Jigal van Hemert.
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] realurl 1.12.1 - cHash caching problems

2012-03-01 Thread Dmitry Dulepov

Hi!

Georg Schönweger wrote:

After upgrading realurl from 1.11.2 to newest
version (1.12.1), pages with cHash in the URL often do not get cached


What does this mean exactly? Do you see cHash in the URL?

--
Dmitry Dulepov
TYPO3 core team member
Blog: http://dmitry-dulepov.com/
Twitter: http://twitter.com/dmitryd

Simplicity will save the world.

___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] Class 't3lib_div' not found

2012-03-01 Thread Dmitry Dulepov

Hi!

Deyan Yankov wrote:

Here is the 135 row (see row numbers in the screenshot attached):


Please, do not attach images here. Post your image somewhere and attach the 
URL.



public function getDB(){
if (!TYPO3_db) {
return;
}
if (!isset($GLOBALS['TYPO3_DB'])) {
$GLOBALS['TYPO3_DB'] = t3lib_div::makeInstance('t3lib_db');
if (!$GLOBALS['TYPO3_DB']-sql_pconnect(TYPO3_db_host,
TYPO3_db_username, TYPO3_db_password) ||
!$GLOBALS['TYPO3_DB']-sql_select_db(TYPO3_db)) {
// Cannot connect to database
return;
}else{
return $GLOBALS['TYPO3_DB'];
}
}else{
return $GLOBALS['TYPO3_DB'];
}
}


Can't comment. This looks like a hack, which does not conform to any TYPO3 
standard patterns.


--
Dmitry Dulepov
TYPO3 core team member
Blog: http://dmitry-dulepov.com/
Twitter: http://twitter.com/dmitryd

Simplicity will save the world.

___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] realurl 1.12.1 - cHash caching problems

2012-03-01 Thread Georg Schönweger
Hi Dmitry,

no i don't see cHash in the URL. What i mean is that pages which are
cached using cHash mechanism (e.g. list or single view in commerce
extension) often do NOT come from cache with 1.12.1. Instead they are
build from scratch which means waiting time for the surfer.

Example (realurl disabled):
1. I clear all caches in backend
2. I go to page
http://example.org/index.php?id=1commerceCat=XXXcHash= -- page is
generated and does certanly not come from cache (first hit)
3. I realod the page from step 2 -- page comes from cache

If i do the same with realurl enabled, in step 3 the page will not come
from cache! This happens only with realurl 1.12.X (1.12.0 not tested)
... with 1.11.2 it's working properly.

I hope the problem is clear now.

thanks,
Georg



Am 01.03.2012 13:02, schrieb Dmitry Dulepov:
 Hi!
 
 Georg Schönweger wrote:
 After upgrading realurl from 1.11.2 to newest
 version (1.12.1), pages with cHash in the URL often do not get cached
 
 What does this mean exactly? Do you see cHash in the URL?
 
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


[TYPO3-english] [TYPO3-typo3org] Announcing downtimes today

2012-03-01 Thread Steffen Gebert
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I hereby want to announce short downtimes of the following sites, which
will happen within the next few hours.

* Wiki (~10min, moving to different data center): now
* Forge / SVN (~30min, moving to different data center): ~15:30
* Git / Gerrit (~30min, update to Gerrit 2.2 by Peter Niederlag): ~17.00

In case you encounter any problems after 18:30h, please post here or
write to admin AT typo3 DOT org.

Thanks for your patience.

Kind regards
Steffen

- -- 
Steffen Gebert
TYPO3 v4 Core Team Member
TYPO3 Server Administration Team Member

TYPO3  inspiring people to share!
Get involved: http://typo3.org

I work for TYPO3 solely in my spare time. If you think that
my work helps you running your business, you are invited to
send me a donation via PayPal to this email address. Thanks
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPT3z/AAoJEIskG/rSlyw4pKwH/1M8SEFNQ2rD8BWL6+o/Cqfe
Z7M9r8s1JbIERkEN/+OkbFcg8KrjjzDFsZU6lcDR08YmYuD39xGMUHmjZ02EwdTO
YZPFE8ZtfmHyiuD3Cl53R7F9o1DTTkSYeR44LPXzmyPwFlisLQHCn6cWhCqRw5KU
b+hXI0HEKZDG1dAJE5lbjgsSBFhKsle5rUj+RdCGJ7ZQT8FQ5mIk216VYNJkKZjz
hRq0VY/X8XAzVEtVkN/Lfg4qmZOt5FPIod9G9hbtKD/2srpuejJZGq1xbvh/Cngz
oEHUl54OD/Os9DJsvOMVlraI/hsuUkB5l3Tfm8lD59eTocSeKZ0KLZIzYBuRCGM=
=tpQU
-END PGP SIGNATURE-
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] sr_feuser_register 2.6.2 Update - gender marker

2012-03-01 Thread Georg Schönweger
After upgrading to 2.6.3 i encountered another bug, i created now a
ticket on forge.typo3.org with this 2 issues;
http://forge.typo3.org/issues/34453

- Georg

Am 28.02.2012 22:45, schrieb Jan Bednarik:
 I think the time has come to use another fe_user register extension,
 also because of lack of support for saltedpassword. Sry if i am moaning,
 but updating sr_feuser_register is always a pain!
 
 I totally agree. That's why I used datamints_feuser for my latest
 project. It's rather simple, but it was OK in this case. Unfortunately,
 there's no template support. HTML markup is hardcoded in the extension.
 Fortunately, it's not bad, so with good CSS, you can style it pretty well.
 
 Jan
 
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] sr_feuser_register 2.6.2 Update - gender marker

2012-03-01 Thread Stanislas Rolland

Hi Georg,


After updating to newest version i have now 3 radio buttons instead of 2
for the gender field (###TCA_INPUT_gender###). Anyone knows what this
field is about? There is no label for it as well. Bug?



The label is a space, and means 'no salutation', or that the user does 
not want his/her name to be prefixed by a salutation.


You may remove this option by inserting the following line in 
typo3conf/extTables.php:


unset($GLOBALS['TCA']['fe_users']['columns']['gender']['config']['items'][0]);

Kind regards,
Stanislas

___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] sr_feuser_register 2.6.2 Update - gender marker

2012-03-01 Thread Georg Schönweger
Hi Stanislas,

thank you for your explanation. Do you have an example where you are
using this feature? I'm wondering how do you style this.

- Georg

Am 01.03.2012 21:08, schrieb Stanislas Rolland:
 Hi Georg,

 After updating to newest version i have now 3 radio buttons instead of 2
 for the gender field (###TCA_INPUT_gender###). Anyone knows what this
 field is about? There is no label for it as well. Bug?

 
 The label is a space, and means 'no salutation', or that the user does
 not want his/her name to be prefixed by a salutation.
 
 You may remove this option by inserting the following line in
 typo3conf/extTables.php:
 
 unset($GLOBALS['TCA']['fe_users']['columns']['gender']['config']['items'][0]);
 
 
 Kind regards,
 Stanislas
 
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] TCA field type text max length

2012-03-01 Thread Rayuth You (Yuth)

Hi,

On 03/01/2012 05:17 PM, Jigal van Hemert wrote:

A text field has no width property in TCA. You could make user-defined
eval function which limits the length to 1000 characters.


Thank you for your idea.

--
Rayuth You
Web Developer

M: +855 11 262 078
E: ray...@typo3cambodia.org

TYPO3  inspiring people to share!
Get involved: http://www.typo3cambodia.org
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


[TYPO3-english] Fatal error: Call to a member function modAccess() on a non-object

2012-03-01 Thread J. Bakshi

Hello list,

This is typo3 4.6.4 installation. Whenever I try to open the configuration
of any extension; like phpmyadmin , rtehtmlarea  etc... from extension manager;
I get an error as

` ` ` `
Fatal error: Call to a member function modAccess() on a non-object in 
../typo3_src-4.6.4/typo3/sysext/em/classes/index.php on line 48

Call Stack

#   TimeMemory  FunctionLocation
1   0.0002  674336  {main}( )   ../ajax.php:0
2   0.2307  19110552t3lib_div::callUserFunction( )  ../ajax.php:73
3   0.2313  19179952call_user_func_array ( )
../class.t3lib_div.php:4746
4   0.2313  19180096t3lib_extjs_ExtDirectRouter-route( )   
../class.t3lib_div.php:4746
5   0.2325  19326400t3lib_extjs_ExtDirectRouter-processRpc( )  
../class.t3lib_extjs_extdirectrouter.php:106
6   0.2627  22123232call_user_func_array ( )
../class.t3lib_extjs_extdirectrouter.php:183
7   0.2627  22123288
tx_em_Connection_ExtDirectServer-getExtensionConfiguration( )  
../class.t3lib_extjs_extdirectrouter.php:183
8   0.4033  30237240tx_em_Install-updatesForm( )   
../class.tx_em_connection_extdirectserver.php:278
9   0.4914  30658080tx_em_Install-tsStyleConfigForm( ) 
../class.tx_em_install.php:1524
10  0.5467  30942016t3lib_div::callUserFunction( )  
../class.tx_em_install.php:1369
11  0.5468  30945240call_user_func_array ( )
../class.t3lib_div.php:4746
12  0.5468  30945400tx_tdthemeinstaller-install( ) 
../class.t3lib_div.php:4746
13  0.5468  30945400tx_tdthemeinstaller-getExtkey( )   
../class.tx_tdthemeinstaller.php:47
14  0.5468  30945552t3lib_div::makeInstance( )  
../class.tx_tdthemeinstaller.php:127
15  0.5468  30945552t3lib_div::getClassName( )  
../class.t3lib_div.php:4910
16  0.5468  30945632class_exists ( )
../class.t3lib_div.php:4953
17  0.5468  30946136t3lib_autoloader::autoload( )   
../class.t3lib_div.php:0
18  0.5468  30946136t3lib_div::requireFile( )   
../class.t3lib_autoloader.php:97
19  0.5539  32432152require( 
'/var/www/booena/typo3_src-4.6.4/typo3/sysext/em/classes/index.php' )  
../class.t3lib_div.php:5148

` ` ` `

Could any one give any clue please ?

Thanks
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english