1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

13362 Commits

Author SHA1 Message Date
Nick Liu
cad29d50cf
test-unit: Use older git/curl/libcurl3-gnutls
buster-backports has a libcurl3-gnutls=7.74.0-1.2~bpo10+1 regression
that causes this error:

```
root@86c99eb1984b:/__w/e107/e107# GIT_CURL_VERBOSE=1 GIT_TRACE=1 /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +c0385ad7ac0b226971fd875db2b1f36ea119164c:refs/remotes/origin/master
20:25:00.030675 git.c:444               trace: built-in: git fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +c0385ad7ac0b226971fd875db2b1f36ea119164c:refs/remotes/origin/master
20:25:00.030913 run-command.c:663       trace: run_command: GIT_DIR=.git git remote-https origin https://github.com/e107inc/e107
20:25:00.032174 git.c:729               trace: exec: git-remote-https origin https://github.com/e107inc/e107
20:25:00.032264 run-command.c:663       trace: run_command: git-remote-https origin https://github.com/e107inc/e107
20:25:00.037725 http.c:756              == Info: Couldn't find host github.com in the .netrc file; using defaults
20:25:00.086739 http.c:756              == Info:   Trying 140.82.112.3:443...
20:25:00.138406 http.c:756              == Info: Connected to github.com (140.82.112.3) port 443 (#0)
20:25:00.161613 http.c:756              == Info: found 411 certificates in /etc/ssl/certs
20:25:00.161658 http.c:756              == Info: ALPN, offering h2
20:25:00.161663 http.c:756              == Info: ALPN, offering http/1.1
20:25:00.211239 http.c:756              == Info: SSL connection using TLS1.3 / ECDHE_RSA_AES_128_GCM_SHA256
20:25:00.212011 http.c:756              == Info:         server certificate verification OK
20:25:00.212024 http.c:756              == Info:         server certificate status verification SKIPPED
20:25:00.212136 http.c:756              == Info:         common name: github.com (matched)
20:25:00.212149 http.c:756              == Info:         server certificate expiration date OK
20:25:00.212156 http.c:756              == Info:         server certificate activation date OK
20:25:00.212172 http.c:756              == Info:         certificate public key: EC/ECDSA
20:25:00.212179 http.c:756              == Info:         certificate version: #3
20:25:00.212218 http.c:756              == Info:         subject: C=US,ST=California,L=San Francisco,O=GitHub\, Inc.,CN=github.com
20:25:00.212232 http.c:756              == Info:         start date: Thu, 25 Mar 2021 00:00:00 GMT
20:25:00.212243 http.c:756              == Info:         expire date: Wed, 30 Mar 2022 23:59:59 GMT
20:25:00.212265 http.c:756              == Info:         issuer: C=US,O=DigiCert\, Inc.,CN=DigiCert High Assurance TLS Hybrid ECC SHA256 2020 CA1
20:25:00.212282 http.c:756              == Info: ALPN, server accepted to use h2
20:25:00.212343 http.c:756              == Info: Using HTTP2, server supports multi-use
20:25:00.212352 http.c:756              == Info: Connection state changed (HTTP/2 confirmed)
20:25:00.212361 http.c:756              == Info: Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
20:25:00.212372 http.c:756              == Info: Failed sending HTTP2 data
20:25:00.212382 http.c:756              == Info: Connection #0 to host github.com left intact
fatal: unable to access 'https://github.com/e107inc/e107/': Failed sending HTTP2 data
```

Downgrading to libcurl3-gnutls=7.64.0-4+deb10u2 resolves the problem.
2021-04-19 16:15:06 -05:00
Moc
c0385ad7ac
Revert "Add some generic LAN to English.php"
This reverts commit 0584c1a35d86a466db19ca9055e2cc7f2fc8ed7a.
2021-04-19 20:19:38 +02:00
Moc
d32e87f875
Revert "Also add LAN_TAG and LAN_TAGS to lan_admin.php"
This reverts commit a951e66f352081be357532164d1e6178232a5f7c.
2021-04-19 20:19:11 +02:00
Moc
a951e66f35
Also add LAN_TAG and LAN_TAGS to lan_admin.php 2021-04-19 20:17:21 +02:00
Moc
0584c1a35d
Add some generic LAN to English.php 2021-04-19 20:13:27 +02:00
Moc
f16e2ad340
#4490 - Should fix autofill in usersettings (new password) 2021-04-19 19:29:33 +02:00
Moc
4ef740674c
Update placeholder image link
Apparently placehold.it has been replaced with placeholder.com
2021-04-17 14:04:52 +02:00
Nick Liu
dc3ac65a70
Fix implementation of e_front_model::sanitize()
Handles recursive data field validation now
2021-04-17 02:57:10 -05:00
Nick Liu
ce7f3b5d56
Add: e_parse::toFlatArray() and e_parse::fromFlatArray()
Utility functions to convert multi-dimensional arrays to slash-delimited
single-dimensional arrays and vice versa
2021-04-17 02:56:12 -05:00
Cameron
f6f63b680f
Merge pull request #4473 from Deltik/fix-tests
Fix failing tests since 2021-01-10
2021-04-16 13:46:52 -07:00
Nick Liu
bdc5c20df2
pluginsTest::testPluginScripts(): Standard sort file order 2021-04-16 15:46:14 -05:00
Cameron
51024a5e8e Fix PHP errors under some circumstances. 2021-04-16 13:43:26 -07:00
Nick Liu
d83c31fb8c
Stub e_date::computeLapse() in e_parse_shortcodeTest
Prevents this flaky error:

---------
1) e_parse_shortcodeTest: User shortcodes
 Test  tests/unit/e_parse_shortcodeTest.php:testUserShortcodes
{USER_DAYSREGGED} != sc_user_daysregged()
Failed asserting that two strings are equal.
- Expected | + Actual
@@ @@
-'3 years, 2 months, 1 day, 5 hours, 17 minutes, 16 seconds ago'
+'3 years, 2 months, 1 day, 5 hours, 17 minutes, 15 seconds ago'
#1  /__w/e107/e107/e107_tests/tests/unit/e_parse_shortcodeTest.php:1591
#2  /__w/e107/e107/e107_tests/tests/unit/e_parse_shortcodeTest.php:767
2021-04-13 15:12:39 -05:00
Nick Liu
687db04bcb
Revert "Removed failing test with no assertions"
This reverts commit 22e3f5383e5a62a3a8a1b6f7828c515402aa8123.
2021-04-13 15:03:37 -05:00
Nick Liu
7cfc79d335
Tests: Removed weird 17 rows threshold for clearing user_extended_struct
Should fix rare flaky
e107_user_extendedTest::testUserExtendedAllShortcode()
2021-04-13 15:03:37 -05:00
Nick Liu
e261e4fb2d
Fix undefined constants when e107Test::testGetCoreTemplate() runs first
---------
1) e_navigationTest: Admin links plugins
 Test  tests/unit/e_navigationTest.php:testAdminLinksPlugins

Error: ;1m  [Error] Undefined constant "E_16_PLUGMANAGER"

#1  /__w/e107/e107/e107_handlers/sitelinks_class.php:882
#2  /__w/e107/e107/e107_tests/tests/unit/e_navigationTest.php:528

---------
2) e_navigationTest: Admin links legacy
 Test  tests/unit/e_navigationTest.php:testAdminLinksLegacy

Error: ;1m  [Error] Undefined constant "E_32_MAIN"

#1  /__w/e107/e107/e107_handlers/sitelinks_class.php:735
#2  /__w/e107/e107/e107_handlers/sitelinks_class.php:887
#3  /__w/e107/e107/e107_tests/tests/unit/e_navigationTest.php:374

---------
3) e_formTest: Render value
 Test  tests/unit/e_formTest.php:testRenderValue

Error: ;1m  [Error] Undefined constant "ADMIN_TRUE_ICON"

#1  /__w/e107/e107/e107_tests/tests/unit/e_formTest.php:943

---------
4) scriptsTest: Admin scripts
 Test  tests/unit/scriptsTest.php:testAdminScripts

Error: ;1m  [Error] Undefined constant "E_32_MAIN"

#1  /__w/e107/e107/e107_handlers/sitelinks_class.php:735
#2  /__w/e107/e107/e107_handlers/sitelinks_class.php:887
#3  /__w/e107/e107/e107_admin/includes/infopanel.php:110
#4  /__w/e107/e107/e107_admin/includes/flexpanel.php:66
#5  /__w/e107/e107/e107_admin/admin.php:63
#6  /__w/e107/e107/e107_tests/tests/unit/scriptsTest.php:140
#7  /__w/e107/e107/e107_tests/tests/unit/scriptsTest.php:27

---------
5) e_formTest: Render value inline
 Test  tests/unit/e_formTest.php:testRenderValueInline

Error: ;1m  [Error] Undefined constant "ADMIN_FALSE_ICON"

#1  /__w/e107/e107/e107_handlers/form_handler.php:5829
#2  /__w/e107/e107/e107_tests/tests/unit/e_formTest.php:1029

---------
6) e_navigationTest: Admin links sub
 Test  tests/unit/e_navigationTest.php:testAdminLinksSub

Error: ;1m  [Error] Undefined constant "E_32_MAIN"

#1  /__w/e107/e107/e107_handlers/sitelinks_class.php:735
#2  /__w/e107/e107/e107_handlers/sitelinks_class.php:887
#3  /__w/e107/e107/e107_tests/tests/unit/e_navigationTest.php:418

---------
7) e_parse_shortcodeTest: Admin shortcodes
 Test  tests/unit/e_parse_shortcodeTest.php:testAdminShortcodes

Error: ;1m  [Error] Undefined constant "E_16_NEWS"

#1  /__w/e107/e107/e107_core/shortcodes/batch/admin_shortcodes.php:518
#2  /__w/e107/e107/e107_core/shortcodes/batch/admin_shortcodes.php:602
#3  /__w/e107/e107/e107_handlers/shortcode_handler.php:1130
#4  e_parse_shortcode->doCode
#5  /__w/e107/e107/e107_handlers/shortcode_handler.php:996
#6  /__w/e107/e107/e107_handlers/e_parse_class.php:823
#7  /__w/e107/e107/e107_tests/tests/unit/e_parse_shortcodeTest.php:1588
#8  /__w/e107/e107/e107_tests/tests/unit/e_parse_shortcodeTest.php:220

---------
8) scriptsTest: Admin includes
 Test  tests/unit/scriptsTest.php:testAdminIncludes

Error: ;1m  [Error] Undefined constant "E_32_MAIN"

#1  /__w/e107/e107/e107_handlers/sitelinks_class.php:735
#2  /__w/e107/e107/e107_handlers/sitelinks_class.php:887
#3  /__w/e107/e107/e107_admin/includes/categories.php:22
#4  /__w/e107/e107/e107_tests/tests/unit/scriptsTest.php:140
#5  /__w/e107/e107/e107_tests/tests/unit/scriptsTest.php:36

--

There was 1 failure:

---------
1) e107Test: Load admin icons
 Test  tests/unit/e107Test.php:testLoadAdminIcons
E_16_FACEBOOK is missing from admin_icons_template
#1  /__w/e107/e107/e107_tests/tests/unit/e107Test.php:1054
2021-04-13 15:03:36 -05:00
Nick Liu
c68604b971
Don't assume an empty table in e_db_abstractTest::testIsEmpty() 2021-04-13 15:03:36 -05:00
Nick Liu
99aa39a8e5
e107_tests: Removed usages of var_dump() 2021-04-13 15:03:36 -05:00
Cameron
b06e0e16fb Fixes #4484 - Modification of extended field of type EUF_ADDON causes corrupted data. 2021-04-13 11:28:25 -07:00
Cameron
7e6c077462 HybridAuth PHP5.6 compatibility patch. 2021-04-12 14:32:46 -07:00
Cameron
ee464286e0 BC Fix for contact LANs. 2021-04-12 14:31:27 -07:00
Cameron
8f7ab86413 Fixes #4486 - Invalid attributes not being fully filtered. 2021-04-12 11:13:37 -07:00
Cameron
444d8d6dc0 Issue #4486 - iframe accepted attributes updated 2021-04-12 11:01:58 -07:00
Cameron
096bfb2dc4 Removed unused package. 2021-04-12 10:37:15 -07:00
Cameron
9e091aedf4 Added new hybridauth providers. (Apple, Pinterest etc) 2021-04-12 10:32:24 -07:00
Cameron
826b777174 Vendor packages update. 2021-04-12 10:00:18 -07:00
Cameron
2862e18db9 Issue #4471 2021-04-06 18:41:15 -07:00
Cameron
920a881898 Issue #2898 - comment btn-sm class missing. 2021-04-06 12:14:40 -07:00
Cameron
240c088eff Issue #4478 - Fixes decorate_download_location() and check_download_limits() 'missing function' errors. 2021-04-06 10:40:58 -07:00
Cameron
6d0810af0d Fixes #4468 - quick debugging of json data using type: 'text' and hidden() field fix. 2021-03-31 15:14:58 -07:00
Cameron
5ed2440272 Issue #4473 - some merged code from Deltik 2021-03-31 13:04:20 -07:00
Cameron
8ff427cfc4 #Issue #4473 - some merged code. 2021-03-31 12:35:26 -07:00
Cameron
90ba858059 Added HTTP 503 header to sitedown.php and additional bot to robots list. 2021-03-31 12:14:18 -07:00
Cameron
2904f1e792 All Unit tests passing locally. 2021-03-31 12:11:23 -07:00
Cameron
05df416dbd Bootstrap 5 tweaks 2021-03-29 17:52:19 -07:00
Cameron
0876e0d43b Contact LANs updated to v2 specifications. BC fix included. 2021-03-29 17:50:51 -07:00
Cameron
dbefbe4630 Removed legacy contact info default. 2021-03-29 16:27:32 -07:00
Cameron
d7ef419553 Fix for social icons not displaying on maintenance 'site down' page. 2021-03-29 16:19:12 -07:00
Cameron
b7bb4cd3d2 Fixes #4470 Incorrect ajax output in theme manager. 2021-03-29 12:16:12 -07:00
Cameron
9053e6170f Fixes #4465 Some nested comments were not displaying. The number of DB queries when nested comments is active has now been dramatically reduced. Comments unit test added. 2021-03-25 13:52:05 -07:00
Cameron
56d4855192 Fixes #4464 - Updated comment render() example to match functionality. 2021-03-25 11:23:47 -07:00
Cameron
87521f330f Issue #4458 NULL value example added to blank plugin's admin-ui. 2021-03-23 11:05:04 -07:00
Cameron
283b9340b5 Fixes #4459 $HEADER and $FOOTER within a class/method when old themes in use. Disable BS5 in admin area 2021-03-23 10:17:22 -07:00
Moc
2c8ed5b80c
Fix PHP fatal error
Occurred when performing a v1 to v2 upgrade
2021-03-22 21:27:52 +01:00
Moc
0057d24ede
Fix upgrade routine
Was broken in 402d1f4126 (addslashes was default with WriteArray())
2021-03-22 21:27:22 +01:00
Moc
cdc61c90ee
Forum update fixes (duplicate SEF & logging) 2021-03-22 20:31:07 +01:00
Cameron
79ded794b1 Initial Bootstrap 5 theme added. 2021-03-22 11:43:13 -07:00
Cameron
c33b91ee5c Issue #4368 Fixed hardcoded string for 'related' content. Now uses tablerender(). Shortcode processing of {---CAPTION---} added. 2021-03-22 11:26:51 -07:00
Cameron
21f8fdcbf6 Fixes #2392 - Theme-Manager > Tools > Create (ie. theme-copy tool) updated to work with libraries, layouts, prefs etc. 2021-03-21 20:15:03 -07:00
Cameron
ad946e6a04
Merge pull request #4457 from Serios/patch-16
Fixing an issue with gallery prettyPhoto plugin
2021-03-21 17:55:53 -07:00