Page 2 of 3

Re: [osCommerce] With $messageStack doesn't rewrite

Posted: Fri May 11, 2012 8:57 am
by inveo
Yes or no there is not much we can do - Magic SEO URLs do not use, modify or change internal osCommerce API so it is on Modular SEO Header Tags developers to fix their bugs.

Re: [osCommerce] With $messageStack doesn't rewrite

Posted: Fri May 11, 2012 12:44 pm
by rikic
keeping on investigating by myself, I've got this idea:
when come this lines

Code: Select all

if ($error == true) {
$messageStack->add('login', TEXT_LOGIN_ERROR);


and goes to http://www.detectalia-italia.it/login.p ... on=process

(for example in the login.php file) seems that it cannot redraw the form 'login', as it is that cannot rewrite the file login.php with the action=proccess as an .html page.
in fact the same error used to appear with non_seo pages before I added the new rules to the .htaccess file and to html_output.php file.

do yo have any idea about it? is it possibile to rewrite action=process?

thank you very much for your patience..... :oops:

Re: [osCommerce] With $messageStack doesn't rewrite

Posted: Sat May 12, 2012 4:05 am
by rikic
hi!
I've definitively understood that the problem is in login.php file.
when

Code: Select all

  if ($error == true) {
    $messageStack->add('login', TEXT_LOGIN_ERROR);

and then

Code: Select all

<?php echo tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL'), 'post', '', true); ?>

it cannot rewrite FILENAME_LOGIN as a html page and it doesn't reconize the language.
any idea please?
thank you
riccardo

Re: [osCommerce] With $messageStack doesn't rewrite

Posted: Sat May 12, 2012 6:43 am
by inveo
That URLs is not transformed to SEO format to avoid any conflicts with other modules. The problem you are getting does not come from not rewritten URLs.

Re: [osCommerce] With $messageStack doesn't rewrite

Posted: Sat May 12, 2012 8:55 am
by rikic
if not, why in the .htaccess appears this rewriting rules?

Code: Select all

#login.php - login
RewriteRule ^([a-z]{2})/account/login\.html$ login.php?language=$1 [L,QSA]


It seems that rewrites the login.php Url.... ;)

Re: [osCommerce] With $messageStack doesn't rewrite

Posted: Sat May 12, 2012 9:01 am
by inveo
Login page, with no query string, is rewritten (replaced in HTML source code) but this is not the case.

Re: [osCommerce] With $messageStack doesn't rewrite

Posted: Sat May 12, 2012 10:26 am
by rikic
ah ok.
and is not possible to somehow rewrite the query string?

Re: [osCommerce] With $messageStack doesn't rewrite

Posted: Sat May 12, 2012 10:36 am
by inveo
For Magic SEO URLs it is easy job but it is not rewritten intentionally. Your problem does not come from not rewritten URLs and only Modular SEO Header Tag developers can fix it.

Re: [osCommerce] With $messageStack doesn't rewrite

Posted: Sat May 12, 2012 11:07 am
by rikic
keeping on investigating....
I've renamed the login.php as login_seo.php and I've change the .htaccess rewriting rule.
of course I've also changed the login.php like this
addded:

Code: Select all

  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_LOGIN_SEO);

and changed:

Code: Select all

<?php echo tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL'), 'post', '', true); ?>

to

Code: Select all

<?php echo tep_draw_form('login', tep_href_link(FILENAME_LOGIN_SEO, 'action=process', 'SSL'), 'post', '', true); ?>.

I added the new file in includes/filenames. php and I added the login_seo.php in includes/language/italian (or whatever language is set up).
I've also changed the html_output.php file adding:

Code: Select all

$customepages_non_seo[25] = "login_seo.php" ;

and

Code: Select all

$customepages_yes_seo[25] = "login.html" ;

as written this forum.
and.... IT WORKS!!
check it here if you want:
http://www.detectalia-italia.it/it/logi ... on=process
so think that the problem is due to the rewrite rules of login.php....
what you think? I know that isn't an elegant solution, maybe this cuold help you to find a more "elegant" one than mine... :roll:

Re: [osCommerce] With $messageStack doesn't rewrite

Posted: Sat May 12, 2012 11:19 am
by inveo
it is great to see you found a fix for this. However, we are afraid we are not able to find a better solution for you since no of referenced files are created or edited when running Magic SEO URLs.

Cart  
(empty)

Cart Check out  »

Prices are tax inclusive.

The VAT rate for your country (US) * is 0,0 % because it is not a member of the European Union (EU).

* Please create an account if your country does not match.

Community feed
  • [Zen Cart] Can't execute Magic SEO URLs sitemaps
    I installed Magic SEO URLs Sitemaps Add-On for ZenCart MSU4.x/MSU5.x 2.0 on my server, when I try to generate sitemaps using: https://www.pechesudv155.owally.com/sitemaps.php I received :...
    by peter@pechesud.com
  • [phpBB3] Sharing users between phpBB / PrestaShop
    Hi i have 2 question 1- prestashop module support phpBB 3.3 ? 2- why we can not login in prestashop and phpbb with same user?
    by zohall
  • [phpBB3] AJAX Userinfo Extension
    Hi! I'm having trouble with this extension: https://www.phpbb.com/customise/db/exte ... _userinfo/ I tried asking support from the author but for no avail, since now. My request for support...
    by Lord Phobos
  • [phpBB3] Upgrade to phpBB 3.2.3
    Hello.. after Upgrade to phpBB 3.2.3 I am getting this message.. How can I solve this issue..? Thank you
    by ingbrzy
  • [phpBB3] URL path changed
    Hello.. I have changed my site path after moving to new hosting and now can not activate SEO module.. new path http://www.miuios.cz/domains/miuios.cz/ could you help me? thank you
    by ingbrzy2
Join our support forum » Pre-Sales Questions »
Featured Testimonials

Great work - great support - great tool! Thank you for your whole work and your great support. We're very glad with the plugin and our online portals now run much faster than before.

Alexander, the owner of Die Wirtschaft Köln

I can't thank you enough for your fantastic service and recommended me your plugin. The site is a lot faster now!

Phuong, the owner of Oceanbox Designs

More Testimonials »