PDA

View Full Version : [cms - joomla] problema installazione componenti


simonzo
08-03-2006, 12:23
Non sono molto pratico di cms né tantomeno di php e sql (ho iniziato da poco), quindi chiedo aiuto:

il problema è questo: ogni volta che dal pannello di controllo di Joomla cerco di installare un componente mi dà questo errore:

DB function failed with error number 1264
Out of range value adjusted for column 'id' at row 1 SQL=INSERT INTO jos_components VALUES( '', 'JCE Admin', 'option=com_jce', 0, 0, 'option=com_jce', 'JCE Admin', 'com_jce', 0, 'js/ThemeOffice/component.png', 0, '' )
SQL =

INSERT INTO jos_components
VALUES( '', 'JCE Admin', 'option=com_jce', 0, 0, 'option=com_jce', 'JCE Admin', 'com_jce', 0, 'js/ThemeOffice/component.png', 0, '' )

io vorrei capire innanzitutto cosa significa questo messaggio (c'è un problema nei valori definiti?); dove posso andare a controllare questo error number 1264; come posso risolvere il problema e c'è qualcuno che mi aiuta a capirlo o che mi può indicare qualche risorsa possibilmente gratuita per imparare le basi di MySql.

Forse può essere importante:
serverweb IIS 5.1
PHP 5.1.2
MySQL 5.0.18 nt
PHPMyAdmin 2.8.0
Joomla 1.0.8 ita

:)

texerasmo
08-03-2006, 13:16
sembra che ci sia un errore nella collonna ID.
prova a metterci un valore.. numerico e vedi che succede.

simonzo
08-03-2006, 16:41
sembra che ci sia un errore nella collonna ID.
prova a metterci un valore.. numerico e vedi che succede.

Non ho capito quello che dovrei fare, potresti essere più preciso? :D

Dove dovrei inserire il valore numerico? In jos_component?
Sono proprio un nubbio :p puoi aiutarmi?

Non è che prima di installare il componente devo configurare meglio il database?

texerasmo
08-03-2006, 17:03
fai così prova da inserire un valori in questa tabella..
jos_components

credo che sia vuota.


per vedere se ci sono valore fai

Select * from jos_components;

simonzo
10-03-2006, 11:09
fai così prova da inserire un valori in questa tabella..
jos_components

credo che sia vuota.


per vedere se ci sono valore fai

Select * from jos_components;

ci sono diversi valori nella tabella, come si vede nell'allegato

simonzo
10-03-2006, 11:13
Ho provato ad installare un altro modulo e mi dà quest'altro errore:

SQL error: DB function failed with error number 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 0 )' at line 2 SQL=INSERT INTO jos_modules_menu VALUES ( , 0 )
SQL =

INSERT INTO jos_modules_menu
VALUES ( , 0 )

che devo fare? :confused:

simonzo
12-03-2006, 18:21
ho trovato la soluzione, eccola qui (http://forum.joomla.org/index.php/topic,45542.0.html)

O/K - I guess I'm pretty proud of myself at the moment - - after a full day's worth of research and subsequent frustration, I think I have an answer to this problem. This is what I discovered - This issue IS related to MySQL 5.0 - - and IS related to the STRICT mode. Here is how I fixed it - -

1) Go into your MySQL folder and find your "my.ini" file
2) Find the following lines:

# Set the SQL mode to strict
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

And change it to this:

# Set the SQL mode to strict
# sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"


3) Save your file, do a system re-boot so that EVERYTHING (server, sql, joomla, etc.) is re-set. I say this because when I tried to stop & restart my server, then shut down and re-start everything else, it still didn't work. I HAD to do a complete re-boot for the changes to take effect across the board.

4) After re-booting, I was able (YIPEE!!!) to load several components and modules, as well as create new menu items. (So, yes, this Strict Mode issue also affects the menu items issue, and probably several others.)

Hope this helps others.


Però vorrei sapere cosa sono andato a modificare: cos'è lo STRICT mode e cosa indicano questi valori: sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" ?