timeout allegati

Aperto da c.tatananni, Giovedì - 21 Marzo 2013 - 11:29

0 Utenti e 1 Visitatore stanno visualizzando questa discussione.

emanuele

Citazione di: Filippo il Martedì - 18 Febbraio 2014 - 08:09
In che forma devo scrivere la cartella? devo prima crearla o basta che digito un nome ed essa vinen creata?
Lo script cambia solo l'impostazione di SMF, il resto lo devi fare tu, quindi dovrai creare tu la directory dove appropriato via ftp o cpanel (o equivalenti ;)).

Citazione di: Filippo il Martedì - 18 Febbraio 2014 - 08:09
devo scrivere il nome della cartella o l'intero percorso?
L'intero percorso, proprio come faresti dal pannello di admin di SMF. ;)

Filippo

Mai fatto da li

Da quello che vedo la cartella allegati è così elencata /web/htdocs/www.gilera-bi4.it/home/public/forum/attachments

Quindi dovrei mettere  qualcosa del tipo: /web/htdocs/www.gilera-bi4.it/home/public/forum/nome_cartella_aggiuntiva?

emanuele


Filippo

Funzionaaaaaaaaaaaaaaaaa

Ti meriti un bacio, ma non da me











emanuele

* emanuele cede il bacio a qualcun altro

c.tatananni

Ritiro fuori questo topic perché il problema persiste...

Attivando le cartelle multiple le nuove cartelle non vengono inserite alla fine della lista ma più o meno a metà, sovrascrivendo una delle precedenti... c'è qualcosa che non va quando l'indice va a contare +1 forse non riconosce il numero delle cartelle totali... non c'è modo di modificare manualmente il database per correggere questo problema?

questo è il valore della tabella smf_settings:

a:50:{i:1;s:81:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/old/attach-2012-03";i:10;s:81:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/old/attach-2012-04";i:11;s:81:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/old/attach-2012-05";i:12;s:74:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/old/2012/07";i:13;s:73:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2013/03/22";i:14;s:77:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/old/2012/07/08";i:15;s:81:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/old/attach-2011-12";i:16;s:81:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/old/attach-2011-11";i:17;s:81:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/old/attach-2011-09";i:18;s:81:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/old/attach-2011-08";i:19;s:78:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/old/attach-2010";i:20;s:81:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/old/attach-2012-06";i:21;s:73:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2013/03/21";i:22;s:73:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2013/03/25";i:23;s:70:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2013/04";i:24;s:73:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2013/03/03";i:25;s:73:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2013/03/04";i:26;s:73:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2013/03/05";i:27;s:73:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2013/03/06";i:28;s:73:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2013/03/07";i:29;s:74:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2013/03/22a";i:30;s:70:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2013/03";i:31;s:70:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2013/05";i:32;s:70:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2013/06";i:33;s:70:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2013/06";i:34;s:70:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2013/07";i:35;s:70:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2013/08";i:36;s:70:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2013/09";i:37;s:70:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2013/10";i:38;s:70:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2013/11";i:39;s:70:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2014/01";i:40;s:70:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2014/02";i:41;s:70:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2014/03";i:42;s:70:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2014/04";i:43;s:70:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2014/05";i:44;s:70:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2014/06";i:45;s:70:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2014/07";i:46;s:70:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2014/08";i:47;s:70:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2014/09";i:48;s:70:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2014/10";i:49;s:70:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2014/11";i:50;s:70:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2014/12";i:51;s:73:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2015/06/04";i:52;s:70:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2015/01";i:53;s:70:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2015/01";i:54;s:70:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2015/02";i:55;s:70:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2015/03";i:56;s:70:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2015/04";i:57;s:70:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2015/05";i:58;s:70:"/web/htdocs/www.busbusnet.com/home/portal/theforum/attachments/2015/06";}
Claudio Tatananni

emanuele

Dal valore che hai postato non mi sembra di vedere sovrascritture. Sì, la 2015/06/04 è una posizione strana, ma non mi sembra manchi niente (anzi, ci sono alcuni duplicati).

Io, una volta scelto il metodo, eviterei di cambiarlo onde evitare confusione.

Qual'è la directory che manca?

c.tatananni

Ho rimosso la funzione ora perché mi sovrascriveva un record precedente. Directory mancanti non ci sono. L'unico problema, come dicevo, se abilito le cartelle multiple automatiche, invece di aggiungerne una alla lista ne sovrascrive una già esistente
Claudio Tatananni

emanuele

Nel file Subs-AutoManageAttachments.php c'è da cambiare:
$modSettings['attachmentUploadDir'][count($modSettings['attachmentUploadDir'])+1] = $updir;
in:
$modSettings['attachmentUploadDir'][] = $updir;

c.tatananni

Provo subito Emanuele. Grazie intanto
Claudio Tatananni

c.tatananni

Sembra funzionare finalmente! Grazie infinite!!!
Claudio Tatananni

Darknico

Se è così, marca come risolto ;)
Non supporto privatamente, non risponderei e ci rimarreste male....

c.tatananni

Aspettiamo ancoa qualche giorno che sto testando
Claudio Tatananni

Discussioni simili (3)