Comments (8)
edit_interface.php is used for many different types of editing. It appears to work OK on the demo site - http://dev.webtrees.net/demo-stable/
Unless I can see the problem, it is difficult to make suggestions.
from webtrees.
Do you still see this problem?
If yes - which form?
from webtrees.
In WT_Filter::_inputArray the PHP 5.3 shorthand form of the ternary operator ?: is used.
return $tmp[$variable] ?: array();
Although my QNAP NAS is running PHP 5.3.26, it seems to fail to resolve the expression. I dont know why. Inside my Development-VM I run PHP 5.3.8 without throwing any errors. If I replace it with the default syntax, in my eyes also much more easier to read.
return isset($tmp[$variable]) ? $tmp[$variable] : array();
The error went away.
WT_Filter seems to be the only place where the shorthand form of the operator is used (My search founds 6 matches). Maybe those affected lines could be replaced with the normal syntax?
from webtrees.
I don't think the "?:" is the problem (and you don't supply the actual PHP error message).
More likely, $tmp[$variable] is not set (failed validation??), and you are seeing an error for this.
Perhaps $default needs to be array() rather than null ?
from webtrees.
There is actual no PHP error message as the server connection gets lost. Problem still exists after changing $default to an array(). $tmp[$varialbe] is also set. Only changing to the long hand version of the ternary operator resolves the problem.
from webtrees.
Can you create a test for this in isolation? e.g.
<?php echo 1 ?: 2;
from webtrees.
After loading the testpage for the first time the result 1 is displayed. After reloading the page for several times, that the error occurs from time to time (3 success, 1 error and so on).
Seems to be a bug in QNAP php version. But there is currently no way to upgrade to a newer version without compiling it by myself.
from webtrees.
I have finally gained access to a QNAP to investigate this problem...
It appears to be a bug in the eAccelerator module. Disabling this module fixes the problem.
from webtrees.
Related Issues (20)
- Support .well-known/change-password
- untranslated string vendor.min.js HOT 8
- Datatables v2 breaks table layouts HOT 6
- Fixes: #4948 - Update ckeditor-js.phtml extraAllowedContent (#4949) in 2.1.19? HOT 1
- Use base_url in webmanifest.json
- Import of location data not working HOT 13
- Error in Statistics module for others still present HOT 2
- Error after merging two persons with postgres HOT 2
- Empty control in Privacy Restrictions prevents anything but "All records" HOT 3
- Geographic Data, cannot "Delete unused locations" HOT 5
- Long URLs in SOUR PUBL Causes Layout Issues in the Source List HOT 5
- make SNOTE a link on media detail page
- "No records to display" in "Changes log" except for the last listed tree HOT 4
- The "new version is available" emails are sent in the wrong language.
- Main branch: Trying to compile language files with latest code fails in composer webtrees:build HOT 2
- Search Should Include Shared Notes
- Feature Proposal: If a fact/events contains a TYPE, show TYPE label instead of label of fact/event HOT 6
- Can't detect third party module on webtrees 2.1.20 HOT 9
- Base table or view already exists on fresh db HOT 2
- linked REPO records are not included in GEDCOM export
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 webtrees.