• Home
  • Get help
  • Ask a question
Last post 9 hours 33 min ago
Posts last week 141
Average response time last week 4 hours 42 min
All time posts 67805
All time tickets 10478
All time avg. posts per day 21

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#4643 – Blank pages on external Joomla scripts

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Saturday, 10 February 2018 11:41 UTC
youjoomla
 We have several external scripts that run in site subfolders and also
include Joomla install like this https://gist.github.com/danyj/1c719e347d0d710667111705c32ac2ff

up until the com_sh404sef_4.7.2.3185_j2_full we had no issues and our latest version was com_sh404sef_4.4.6.2271_full

With com_sh404sef_4.7.2.3185_j2_full the sub sites are blank. I cant find any settings that could help me fix this.

Any help is appreciated.
Monday, 12 February 2018 09:56 UTC
wb_weeblr
Hi

First off, I would suggest you make sure "301 redirect from Joomla SEF to sh404SEF" is disabled (under the "Advanced" tab of sh404SEF configuration.

To be honest, if those are actual files in subfolders, I don't see how sh404SEF can have any impact on that. This is managed at .htaccess level. If the script files do exist, the .htaccess in the root file should just bypass your main Joomla install entirely.

Rgds
 
Monday, 12 February 2018 11:49 UTC
youjoomla
> just bypass your main Joomla install entirely.

that is the thing , it cant bypass since I think the script "sees" those as one site.
It creates the 404 for them but I dont see an option for sh404 to ignore those subfolders.
It is asking me to add non-SEF url but is asking for index.php which the links are not , they are like

sitename/support

and so on

and in those sub folder there are other CMS scripts that we combined with Joomla to get sessions and users
so each of these has own links like


sitename/support/ticket/view/485

so we need to tell sh404 somehow to completely ignore the

sitename/support/

and all it sub folders/links
Monday, 12 February 2018 11:54 UTC
wb_weeblr
Hi

It creates the 404 for them but I dont see an option for sh404 to ignore those subfolders.
But that's the point. This request should never make it inside Joomla.
Let's say your Joomla is in /var/www/site.com/public and you have a script in /var/www/site.com/public/custom_scripts/myscript.php

If you request site.com/custom_scripts/myscript.php in your borwser, this request should never be sent to Joomla by your .htaccess file.

It's normal sh404SEF triggers a 404 in such case because the URL does not exist on that site. But it's not sh404SEF which can "bypass" it in any way. It's the role of the .htaccess to decide which request to send to your Joomla site (which in turn will send it to sh404SEF for decoding) or to the real script.

so we need to tell sh404 somehow to completely ignore the



sitename/support/



and all it sub folders/links

Again, that's not something that happens in Joomla/sh404SEF, but in your .htaccess.

Rgds
 
Monday, 12 February 2018 12:00 UTC
youjoomla
We are using your extension since few years now ,
same setup ,same scripts everything same.
had no issues up until the _4.7.2.3185_j2 version that we installed 3 days ago

Since we saw the bug we reverted back to 4.4.6.2271_full
and everything works as it did before.

We did not change .htaccess, files , folders or setups
all we did is update sh404

If we disable sh404 the sub folders work , so redirect is on sh404 itself.
Monday, 12 February 2018 12:07 UTC
wb_weeblr
Hi

OK so I guess I did not understand your problem then.

Please now explain it again with full and real examples of a script: full and real names, full and real URLs.

Also, please tell me what do you call an "external script"? PHP?


Rgds
 
Monday, 12 February 2018 12:17 UTC
youjoomla
I found the issue ,

If I remove this snippet from sh404 system plugin the subs work

http://prntscr.com/idljul

> external script

ticket system ( custom Laravel )
forums ( VB )
signup ( Amember )

all these read this file

https://gist.github.com/danyj/1c719e347d0d710667111705c32ac2ff

and read the sessions and user info from main site
in order to let users in forum , have them see downloads, signup etc




Monday, 12 February 2018 12:19 UTC
youjoomla
Actually this line only if removed everything works

$joomlaRouter->attachParseRule(array($pageInfo->router, 'parseRule'));
Monday, 12 February 2018 12:21 UTC
youjoomla
The funny thing is that all I see is blank page , no logs , no errors ,
Monday, 12 February 2018 12:24 UTC
youjoomla
ah , more info sorry

php 5.6.19

we cant update to 7.x at this moment.
Monday, 12 February 2018 16:11 UTC
wb_weeblr
Hi

If I remove this snippet from sh404 system plugin the subs work
Well sure if you disable sh404SEF things seems to work! Note it does not mean there is any issue in sh404SEF.


> external script



ticket system ( custom Laravel )

forums ( VB )

signup ( Amember )
That's not what I ask for. What is the exact and full URL called to execute these scripts? Each of them.

Does the initial loaded file is executed? Have you enabled error display? what kind of PHP debugging have you done?

And of course, which Joomla version are you using?

Rgds
 
Monday, 12 February 2018 16:25 UTC
youjoomla
I dont know how much precise I can be

I advised what sef404 version we use 4.7.2.3185_j2_

it says right there J2 = Joomla 2.x

> What is the exact and full URL

what does full exact url has to do with this?

I advised and explained that we are including the default Joomla install in the scripts,
also advised why but seems like it is easier to say " my extension works"
than to test and read what I have already said.


I am not sure if you have ever used Joomla external but usage is quite simple ,
https://forum.joomla.org/viewtopic.php?t=834540

and as advised before it has worked on all sh404 versions up until the 4.7.x

> Have you enabled error display? what kind of PHP debugging have you done?

trust me when I say it is not my first troubleshooting ,

there is no error displayed or logged ,
site simply goes blank
Tuesday, 13 February 2018 14:41 UTC
wb_weeblr
Hi

I advised what sef404 version we use 4.7.2.3185_j2_
Sorry I am even more confused. It thought you were using 4.7.2 and these issues were about updating to the current version.

Using 4.7.2 does not mean you are running Joomla 2. It's a version that was designed for both J2 and J3, it's actually the last version that we produced more than 2 years ago. As you can see on the download area where you got it, it's end-of-lifed. We do not provide any kind of support for Joomla 2 products, we stopped that 2 years ago as well. This is of course particularly true for custom script but is the same even for a plain Joomla site.

I advised and explained that we are including the default Joomla install in the scripts,

also advised why but seems like it is easier to say " my extension works"

than to test and read what I have already said.

It does. You are using custom scripts, that you include in a non-Joomla API way, taking the information to do that from a Joomla forum post. This is beyond unsupported to be honest.

trust me when I say it is not my first troubleshooting ,
Well, have you stepped through the PHP with a debugger? that's how you'll find what's not working and where the execution stops, if there is not output. That's what I was suggesting.

If you plan to keep using Joomla 2, I would suggest you stick to the older version you have if updating breaks your custom scripts.

Rgds
 
Wednesday, 28 February 2018 05:34 UTC
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.