Comments (25)
Hm, a strange behaviour.
Have you set the base url in config.ini?
Have you set the RewriteBase in the .htaccess?
Best regards
Tobi
from selfoss.
Yes, I set both and also tried different vways.
The URL to my selfoss installation is:
http:///misc/selfoss
So I tried /misc/selfoss and misc/selfoss
I also tried both variations with an / at the end.
No luck. Still the same message.
from selfoss.
Which webserver do you use? The three /// seems to be wrong.
from selfoss.
Seems my post was formatted wrong. It should have been
http://myserver.tld/misc/selfoss
from selfoss.
Which webserver environment do you use?
from selfoss.
PHP 5.3.13 (CGI / FastCGI)
Apache
from selfoss.
Are you using VirtualHost config? I have no idea what the reason could be. What does the apache access/error log say?
from selfoss.
It may be the PCRE version. https://groups.google.com/forum/?fromgroups=#!topic/f3-framework/7tfAuEPh_wY
from selfoss.
Hm, that could be the reason. WHich PCRE version do you use? Its listed in the phpinfo output.
I use the 8.12. Regarding the thread cgutteridge have posted you need at least version 8.
from selfoss.
My version is 6.6 and doesn't work with the latest version of F3 which is vexing because up until now it was a pretty low stress tool. This additional requirement is not achievable as we've 100+ sites on that server so shifting versions on a library isn't a minor risk.
from selfoss.
My pcre is 6.6. Since it is a managed server, I am not able to update it by myself.
error.log says the same as I posted in my first post. sadly no further info.
from selfoss.
In this case selfoss depends on the fat free php framework and how they use the php libraries. I can understand the update problem.
I have updated the fat free php framework to the newest Version 3.0.5. Please check whether the newest version solves the problem. Just upload the files from selfoss/libs/f3.
from selfoss.
I uploaded the framework. Sadly the error is still there:
Internal Server Error
Invalid routing pattern: GET /
from selfoss.
I would make sure that your redirection is working correctly.
Make a small test with a simple .htaccess
:
RewriteEngine On
RewriteBase /misc/selfoss
RewriteRule (.*)in(.*) welcome.html
create a welcome.html
and add a string, e.g.
test
If you open http://myserver.tld/misc/selfoss/index.html
you should see the text of welcome.html
.
If not, probably one option in the apache config is wrong. Could be AllowOverride None
which should be AllowOverride All
.
from selfoss.
I did as you suggested. All worked. I opened index.html and got the "test" of welcome.html.
Seems as if redirection is working correctly.
from selfoss.
Hmm, it was worth a try.
from selfoss.
Sadly I can not change this behavior. Hope fatfree will update their lib and support this pcre version in the future.
from selfoss.
I had this identical problem, and was able to get f3 to work just fine with PCRE 6.x by making a simple change to the codebase. In lib/base.php, for every instance of preg_match, [preg_replace, and preg_split] I simply replaced the pattern for a horizontal space ( \h ) with the pattern for a general space ( \s ). So far, everything works great, and all my routes are routing once again.
EDIT: also need to address preg_replace and preg_split--bascially all instances of \h to become \s
from selfoss.
@cyberscribe It would be very nice, if you colud attach a pull request or let us otherwise know, which changes you made to the code.
I tried to replace \h by \s but that didnt work, as expected. At first, everything seems to work, but as soon, as I added the first rss feed, I got the following errror:
internal Server Error
preg_match_all() [function.preg-match-all]: Compilation failed: unrecognized character after (?< at offset 3
from selfoss.
Hi,
Attached is a patch. Hope it helps. Worked for me.
Best,
Robert
On 6 September 2013 10:21, MaikL [email protected] wrote:
@cyberscribe https://github.com/cyberscribe It would be very nice, if
you colud attach a pull request or let us otherwise know, which changes you
made to the code.
I tried to replace \h by \s but that didnt work, as expected. At first,
everything seems to work, but as soon, as I added the first rss feed, I got
the following errror:internal Server Error
preg_match_all() [function.preg-match-all]: Compilation failed:
unrecognized character after (?< at offset 3—
Reply to this email directly or view it on GitHubhttps://github.com//issues/36#issuecomment-23928383
.
from selfoss.
124c124
< return preg_split('/\[\h*[\'"]?(.+?)[\'"]?\h*\]|(->)|\./',
---
> return preg_split('/\[\s*[\'"]?(.+?)[\'"]?\s*\]|(->)|\./',
758,759c758,759
< '(.+?)\h*=\h*'.
< '((?:\\\\\h*\r?\n|.+?)*)'.
---
> '(.+?)\s*=\s*'.
> '((?:\\\\\s*\r?\n|.+?)*)'.
767c767
< '/(?<!\\\\)"|\\\\\h*\r?\n/','',$match[2]));
---
> '/(?<!\\\\)"|\\\\\s*\r?\n/','',$match[2]));
925,926c925,926
< preg_match('/([\|\w]+)\h+([^\h]+)'.
< '(?:\h+\[('.implode('|',$types).')\])?/',$pattern,$parts);
---
> preg_match('/([\|\w]+)\s+([^\s]+)'.
> '(?:\s+\[('.implode('|',$types).')\])?/',$pattern,$parts);
967,968c967,968
< preg_match('/([\|\w]+)\h+([^\h]+)'.
< '(?:\h+\[('.implode('|',$types).')\])?/',$pattern,$parts);
---
> preg_match('/([\|\w]+)\s+([^\s]+)'.
> '(?:\s+\[('.implode('|',$types).')\])?/',$pattern,$parts);
970c970
< user_error(sprintf(self::E_Pattern,$pattern));
---
> user_error(sprintf(self::E_Pattern,$pattern ));
1181c1181
< preg_match('/(.+)\h*(->|::)\h*(.+)/s',$func,$parts)) {
---
> preg_match('/(.+)\s*(->|::)\s*(.+)/s',$func,$parts)) {
1253,1254c1253,1254
< '(.+?)\h*=\h*'.
< '((?:\\\\\h*\r?\n|.+?)*)'.
---
> '(.+?)\s*=\s*'.
> '((?:\\\\\s*\r?\n|.+?)*)'.
1278c1278
< return preg_replace('/\\\\\h*\r?\n/','',$val);
---
> return preg_replace('/\\\\\s*\r?\n/','',$val);
1786c1786
< if (empty($this->ref) && !preg_match('/^folder\h*=/',$dsn))
---
> if (empty($this->ref) && !preg_match('/^folder\s*=/',$dsn))
1793c1793
< if (preg_match('/^folder\h*=\h*(.+)/',$dsn,$parts) &&
---
> if (preg_match('/^folder\s*=\s*(.+)/',$dsn,$parts) &&
from selfoss.
Thank you @cyberscribe , I wasted all morning trying to get PCRE updated, and this fixed it no problem.
from selfoss.
Glad it helped @mrfrasier !
from selfoss.
The issue re-appeared for me after upgrade to PHP 7.1.11, opened an issue upstream f3-factory/fatfree-core#231
from selfoss.
Apparently it is caused by cross-contamination by PCRE symbols from Apache.
from selfoss.
Related Issues (20)
- Negative keyword filtering HOT 3
- Filter does not seem to work HOT 6
- upstream timed out HOT 3
- Cliupdate times out on cleaning thumbnails
- how to set the proxy HOT 1
- PHP 8.2.5 support? HOT 2
- Cannot export OPML HOT 4
- Deduplicate items across sources HOT 3
- Incorrect publishing times HOT 12
- Personalize source icon HOT 1
- Twitter : You currently have access to a subset of Twitter API v2 endpoints [...] HOT 2
- Custom spout not displayed in drop down menu HOT 2
- Item's date as a future date HOT 4
- The auto_collapse option is ineffective HOT 3
- Mark as read behavior with unread filter HOT 1
- The More button sometimes appears by mistake HOT 1
- Rss feed HOT 1
- Higher loglevel for authentication errors HOT 2
- Add support for dark mode HOT 2
- Too big icons on mobile phones
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from selfoss.