Internal Server Error après une duplication de site

More
12 years 9 months ago #36464 by romaingentilella
Bonjour,

J'ai une petite question qui pourrait sembler stupide, mais, alors que j'ai effectué une duplication de mon site sur un sous-domaine lié à une seule et unique base de données (mon but étant de récupérer un même contenu mais allégé au maximum pour un affichage sur une application mobile), je me retrouve avec un "Internal Server Error"...

Apparemment, le problème vient du fait que la réécriture d'URL ne se déroule pas correctement car lorsque j'utilise l'URL non réécrite (ce qui donne quelque chose comme
Code:
index.php?option=com_flexicontent&view=items&id=1297:2-gazelles-de-gruissan-au-maroc
au lieu de
Code:
reportages/item/1297-2-gazelles-de-gruissan-au-maroc
), ça fonctionne nickel.

Ma question porte donc sur la raison pour laquelle la réécriture ne s'effectuerait plus, est-ce que c'est déjà arrivé à quelqu'un ?

Merci d'avance pour vos conseils !

Romain

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #36467 by ggppdk
Hello,
please check you apache server log after getting this error,
(please report the error that occurs after accessing the FLEXIcontent URL)

To do this, log into your account cPanel. Once in your cPanel, under Logs, click on "Error Logs"

(Also note that your new server may not support all directives of you existing .htaccess file, looking at the above log can give you information)


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #36473 by micker
1 vérifie ton htaccess le site principal lui est ok ?
2 la réécriture plante seulement pour flexicontent ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #36479 by romaingentilella
Hello,

Merci pour vos reponses ! Le site principal fonctionne parfaitement à ce niveau, je n'ai fait que créer un sous-domaine sur lequel j'ai dupliqué l'intégralité du site (j'ai d'ailleurs le même problème sur mon site de test, lui aussi dupliqué, mais sur un nom de domaine différent).

Je peux accéder à la page d'accueil qui affiche bien les informations sans problème, mais dès lors que je souhaite aller sur une autre page, l'erreur se produit, même lorsque je cherche à avoir accès aux logs d'erreur (mon hébergeur étant Infomaniak, j'ai accès aux logs directement depuis le navigateur en ajoutant /http-errors/ après le nom de domaine.)

J'ai accès cependant aux logs du site principal et ceux-ci indiquent une erreur :
Code:
PHP Warning: Invalid argument supplied for foreach() in /components/com_content/helpers/route.php on line 106, referer: http://www.route-bleue.com/

Je suppose donc qu'il s'agit d'une erreur extérieure à Flexicontent... J'ai tenté de chercher une solution s'il s'agit bien de cela sans succès pour le moment...

Le site original : www.route-bleue.com
Le sous-domaine simplifié : smartphone-webview.route-bleue.com

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #36482 by micker
vérifie ton htacess du sous domaine
essai un sous dossier pour le dossier de base..
Après c'est vrai c'est bizarre c'est erreur sur le com content...

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #36484 by romaingentilella
Merci de ta réponse Micker,

J'ai bien vérifié le .htaccess, j'avais laissé celui que j'ai sur mon site principal (modifié) et j'ai essayé de remettre celui par défaut sans qu'aucun changement ne se produise.

Par contre, je ne comprends pas ce que tu veux dire par "essayer un sous-dossier pour le dossier de base" ? Car la configuration d'un sous-domaine Infomaniak passe par la création d'un dossier portant le nom du sous-domaine à la racine du site principal, à l'intérieur duquel se trouvent les fichiers du sous-domaine (dans mon cas, la duplication du site principal), c'est bien ce que tu me suggères de faire ou bien est-ce que j'ai mal compris ?

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #36490 by micker
je parler de modifier la ligne rewrite base du htacess du sous domaine
rajoute le nom du sous dossier

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #36500 by romaingentilella
Ok, i tried your solution but nothing changed here, maybe i'm doing it wrong... Here's my .htaccess, maybe you could tell me if it's what you told me to do ?
Code:
## # @version $Id: htaccess.txt 21064 2011-04-03 22:12:19Z dextercowley $ # @package Joomla # @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. # @license http://www.gnu.org/copyleft/gpl.html GNU/GPL # Joomla! is Free Software ## ##################################################### # READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE # # The line just below this section: 'Options +FollowSymLinks' may cause problems # with some server configurations. It is required for use of mod_rewrite, but may already # be set by your server administrator in a way that dissallows changing it in # your .htaccess file. If using it causes your server to error out, comment it out (add # to # beginning of line), reload your site in your browser and test your sef url's. If they work, # it has been set by your server administrator and you do not need it set here. # ##################################################### ## Can be commented out if causes errors, see notes above. Options +FollowSymLinks # # mod_rewrite in use RewriteEngine On ########## Begin - Rewrite rules to block out some common exploits ## If you experience problems on your site block out the operations listed below ## This attempts to block the most common type of exploit `attempts` to Joomla! # ## Deny access to extension xml files (uncomment out to activate) #<Files ~ "\.xml$"> #Order allow,deny #Deny from all #Satisfy all #</Files> ## End of deny access to extension xml files # Block out any script trying to set a mosConfig value through the URL RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR] # Block out any script trying to base64_encode data within the URL RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR] # Block out any script that includes a <script> tag in URL RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR] # Block out any script trying to set a PHP GLOBALS variable via URL RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR] # Block out any script trying to modify a _REQUEST variable via URL RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) # Return 403 Forbidden header and show the content of the root homepage RewriteRule .* index.php [F] # ########## End - Rewrite rules to block out some common exploits ########## Begin - Custom redirects # # If you need to redirect some pages, or set a canonical non-www to # www redirect (or vice versa), place that code here. Ensure those # redirects use the correct RewriteRule syntax and the [R=301,L] flags. # ########## End - Custom redirects # Uncomment following line if your webserver's URL # is not directly related to physical file paths. # Update Your Joomla! Directory (just / for root) RewriteBase /smartphone-webview # Au dessus, la modification avec le dossier du sous-domaine ########## Begin - Joomla! core SEF Section # RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # # If the requested path and file is not /index.php and the request # has not already been internally rewritten to the index.php script RewriteCond %{REQUEST_URI} !^/index\.php # and the request is for root, or for an extensionless URL, or the # requested URL ends with one of the listed extensions RewriteCond %{REQUEST_URI} (/[^.]*|\.(php|html?|feed|pdf|raw))$ [NC] # and the requested path and file doesn't directly match a physical file RewriteCond %{REQUEST_FILENAME} !-f # and the requested path and file doesn't directly match a physical folder RewriteCond %{REQUEST_FILENAME} !-d # internally rewrite the request to the index.php script RewriteRule .* index.php [L] # ########## End - Joomla! core SEF Section

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #36517 by ggppdk
For internal server error there is no specific answer , also it is almost meanigless to look in the .htaccess file because we cannot know your server configuration.

The error (PHP warning) you reported occurs inside joomla code and not inside FLEXIcontent code.

Also this line does not seem to be the reason for internal server error !!

Don't you have some other error ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save