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

13930 Commits

Author SHA1 Message Date
Jimako
7999397726
user profile UEF change added to event 2023-07-04 08:43:48 +02:00
Nick Liu
b893cba9b6
CI: Fix acceptance test setup failure
Should fix this SaltStack error:

```
[ERROR   ] Command '/opt/saltstack/salt/salt-pip' failed with return code: 1
[ERROR   ] stdout: Collecting mysqlclient
  Downloading mysqlclient-2.2.0.tar.gz (89 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 89.5/89.5 kB 10.5 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'
[ERROR   ] stderr:   error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [24 lines of output]
      /bin/sh: 1: pkg-config: not found
      /bin/sh: 1: pkg-config: not found
      Trying pkg-config --exists mysqlclient
      Command 'pkg-config --exists mysqlclient' returned non-zero exit status 127.
      Trying pkg-config --exists mariadb
      Command 'pkg-config --exists mariadb' returned non-zero exit status 127.
      Traceback (most recent call last):
        File "/opt/saltstack/salt/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
          main()
        File "/opt/saltstack/salt/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/opt/saltstack/salt/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/tmp/pip-build-env-8d1ymhy3/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
        File "/tmp/pip-build-env-8d1ymhy3/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-8d1ymhy3/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 338, in run_setup
          exec(code, locals())
        File "<string>", line 154, in <module>
        File "<string>", line 48, in get_config_posix
        File "<string>", line 27, in find_package_name
      Exception: Can not find valid pkg-config name.
      Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
[ERROR   ] retcode: 1
[ERROR   ] Failed to install packages: mysqlclient. Error: Collecting mysqlclient
  Downloading mysqlclient-2.2.0.tar.gz (89 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 89.5/89.5 kB 10.5 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'   error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [24 lines of output]
      /bin/sh: 1: pkg-config: not found
      /bin/sh: 1: pkg-config: not found
      Trying pkg-config --exists mysqlclient
      Command 'pkg-config --exists mysqlclient' returned non-zero exit status 127.
      Trying pkg-config --exists mariadb
      Command 'pkg-config --exists mariadb' returned non-zero exit status 127.
      Traceback (most recent call last):
        File "/opt/saltstack/salt/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
          main()
        File "/opt/saltstack/salt/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/opt/saltstack/salt/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/tmp/pip-build-env-8d1ymhy3/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
        File "/tmp/pip-build-env-8d1ymhy3/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-8d1ymhy3/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 338, in run_setup
          exec(code, locals())
        File "<string>", line 154, in <module>
        File "<string>", line 48, in get_config_posix
        File "<string>", line 27, in find_package_name
      Exception: Can not find valid pkg-config name.
      Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
[ERROR   ] State 'mysql_user.present' was not found in SLS 'e107-dev'
Reason: 'mysql_user' __virtual__ returned False: mysql module could not be loaded

[ERROR   ] State 'mysql_user.present' was not found in SLS 'e107-dev'
Reason: 'mysql_user' __virtual__ returned False: mysql module could not be loaded

[ERROR   ] State 'mysql_database.present' was not found in SLS 'e107-dev'
Reason: 'mysql_database' __virtual__ returned False: mysql module could not be loaded
```
2023-06-22 20:46:10 -05:00
Nick Liu
714e9f9abe
PHP bug 66773 workaround in Hybridauth
In PHP 7.0.12 and earlier, a class could not be loaded with the same
name as another class in a different namespace.  This commit patches the
Hybridauth dependency to avoid PHP bug 66773.  Unfortunately, the fix
will be rolled back any time Hybridauth is updated or overwritten.

PHP bug link: https://bugs.php.net/bug.php?id=66773

(cherry picked from commit 539c3f1a672330d460a8cffa63adc63902ae4da4)
(cherry picked from commit 7994746dabe1ecfe15cc89c1fa14b7848113dc90)
2023-06-22 12:31:28 -05:00
camer0n
7d8c6ad073 Fixes #5020 Error message removal. 2023-06-22 09:49:32 -07:00
camer0n
4cc9d8b085 Updated vendor packages:
hybridauth/hybridauth (v3.8.2 => v3.9.0)
ifsnop/mysqldump-php (v2.9 => v2.12)
guzzlehttp/psr7 (1.9.0 => 1.9.1)
matthiasmullie/minify (1.3.70 => 1.3.71)
phpmailer/phpmailer (v6.7.1 => v6.8.0)
2023-06-22 09:47:35 -07:00
Nick Liu
18eff9d774
CI: Update actions/checkout@v2 → actions/checkout@v3
To fix the node12 deprecation warning and move to node16
2023-06-20 22:35:01 -05:00
camer0n
accc345b79 Fixes #5017 - System logs message fix. 2023-06-20 18:00:10 -07:00
Nick Liu
4ef2f73a59
CI: Fix pecl install xdebug-2.5.5 for php:5.6 image 2023-06-20 18:51:18 -05:00
camer0n
23df6c1072 Issue #5016 - Avoid sending 'Array' in hidden field. 2023-06-20 10:04:07 -07:00
Jimako
8324e24776
PM class - fix PHP 8 #4998
fix for #4998 Fatal error: Uncaught TypeError: count()

Pull request: https://github.com/e107inc/e107/pull/5006
2023-06-14 14:37:56 -05:00
Nick Liu
8a1a129c14
CI: More reliable Debian codename parsing
Remains compatible with Debian 9 but also supports Debian 12, which
has switched to the deb822 APT sources format
2023-06-14 13:31:57 -05:00
Nick Liu
fb7ee9efaf
CI: Support obsolete versions of Debian like Debian 9
To continue testing PHP 5.6 through PHP 7.0
2023-06-14 13:14:13 -05:00
Cameron
c2bc635774 Fixes #5005 GET values containing arrays are no longer corrupted. 2023-06-06 15:46:50 -07:00
Cameron
10d59384a6
Merge pull request #4995 from e107inc/dependabot/composer/e107_tests/guzzlehttp/psr7-2.5.0
Bump guzzlehttp/psr7 from 2.4.3 to 2.5.0 in /e107_tests
2023-04-21 11:27:27 -07:00
Cameron
198d0cff6c
Merge pull request #4993 from Deltik/fix/4991
Fixes #4991: Improper array access in sc_signup_extended_user_fields
2023-04-21 11:24:38 -07:00
Cameron
3b4c583531 Upgraded Bootstrap to v5.2.3 2023-04-21 11:17:43 -07:00
dependabot[bot]
50bbc0018a
Bump guzzlehttp/psr7 from 2.4.3 to 2.5.0 in /e107_tests
Bumps [guzzlehttp/psr7](https://github.com/guzzle/psr7) from 2.4.3 to 2.5.0.
- [Release notes](https://github.com/guzzle/psr7/releases)
- [Changelog](https://github.com/guzzle/psr7/blob/2.5/CHANGELOG.md)
- [Commits](https://github.com/guzzle/psr7/compare/2.4.3...2.5.0)

---
updated-dependencies:
- dependency-name: guzzlehttp/psr7
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-19 20:45:04 +00:00
Cameron
14f5142c66 Fixes #4994 - Canonical URL domain should always be the same. 2023-04-17 15:06:00 -07:00
Nick Liu
1e601fbc03
#4991: Fix improper array access in sc_signup_extended_user_fields
Fixes: https://github.com/e107inc/e107/issues/4991
2023-04-16 00:25:14 -05:00
Cameron
c3517641e0 Fontawesome updated to 5.15.4
Bootswatch updated to 5.2.3 in Bootstrap5 theme and fontawesome loading switched to css. (instead of js)
2023-04-12 15:32:48 -07:00
Cameron
5f492a8441
Merge pull request #4984 from Deltik/hotfix/4982
news: Fix category link in both breadcrumb and menu
2023-04-03 17:11:06 -07:00
Cameron
ca31946d1a Issue #4940 - Flex panel changes not sticking. 2023-04-03 16:27:42 -07:00
Cameron
3feccca0ec Fixes #4799. Powerpoint file-types added. Issue #4986 Added critical error constant as example to e107_config.php during installation. 2023-03-24 13:06:30 -07:00
Cameron
4d1f1173dd Issue #4986 Added option to send an email when a critical error occurs. (one email per day)
Usage: Add the following to e107_config.php, replacing the email address with your own.

define('e_EMAIL_CRITICAL', 'myemail@somewhere.com');
2023-03-23 10:56:56 -07:00
Cameron
9c3b90d5fa Fixes #4966 - IMODE not defined. 2023-03-20 16:21:31 -07:00
Cameron
cb166cb758 Made latest update routine method name generic. 2023-03-19 15:14:04 -07:00
Cameron
e596aa94d7 Fixes #4765 - Tagcloud CSS. 2023-03-19 14:51:32 -07:00
Cameron
5d18df638a Partial Fix for Issue #4959 - TODO: unchecked checkboxes are not posted. ie. not saved/updated. 2023-03-18 12:31:23 -07:00
Cameron
4bad7825df Related to Issue #3927 {NEWS_IMAGE: alt=description} now includes the alt value when included in a news body. 2023-03-11 09:50:31 -08:00
Nick Liu
ebba6f0ec5
.editorconfig: No blank lines before method body 2023-03-11 00:16:11 +01:00
Nick L
f23297f443
Merge pull request #4988 from Jimmi08/patch-5
deprecated static::method() calls for PHP 8.2
2023-03-09 10:36:04 -06:00
Jimako
28134cd1a4
deprecated static::method() calls for PHP 8.2
discussed in #4987
2023-03-08 20:20:33 +01:00
Cameron
b57a431855 Issue #4778 - Corrected calculation of date search period. 2023-02-27 09:48:35 -08:00
Nick Liu
1d1f4d08e0
Add tests for news plugin category links 2023-02-20 12:13:34 +01:00
Nick Liu
a500035172
news: Fix category link in both breadcrumb and menu
Fixes: #4982
2023-02-19 23:49:40 +01:00
Nick Liu
92bb0519d3
Revert "Fix: news category breadcrumbs"
This reverts commit 6c2e2efc22b489f4f6c338da50ebd670b77de959.
2023-02-19 23:40:33 +01:00
Nick Liu
4800e4ccbb
Revert "Fix for broken news category URL in news_categories_menu"
This reverts commit ba18155c345b66d825804219d1b2e8db0e9860ec.
2023-02-19 23:40:20 +01:00
Nick L
73405f55cb
Merge pull request #4982 from RichardBarrell/news-category-breadcrumb-fix
Fix news category breadcrumbs
2023-02-16 12:18:35 -06:00
Nick Liu
432395c12e
Tests: Helper\E107Base: Use more reliable check for Composer 2 format
Issue reported in Gitter:
https://matrix.to/#/!srhnCKlMgxFeuSPXPb:gitter.im/$nGHXf-miT7JsA2U-Mgr7_SDuINfSYjuHulMgfuvPNdg?via=gitter.im

Tester reported this error:

```
In E107Base.php line 103:

  First parameter must either be an object or the name of an existing class
```
2023-02-16 15:57:20 +01:00
Richard Barrell
6c2e2efc22 Fix: news category breadcrumbs
The breadcrumbs for news categories were previously pointing to the
category page but using the id of the news story instead of the id of
the category.

Previously, if you had two news stories with ids 1 and 2, and one
category with id 1, then news story 1 would link to its category,
but news story 2 would link to a 404 page.
2023-02-14 22:21:48 +00:00
Nick Liu
f2af17d45f
Fix typo from https://github.com/e107inc/e107/pull/4975 2023-02-13 11:09:49 +01:00
Jimako
58cb73449e
fix for ranks in top.php #4967 (#4975)
* fix for ranks in top.php #4967

Fixes: #4967
2023-02-13 03:23:32 -06:00
Cameron
f5096ae47d Closes #4978 - {NEWS_MODIFIED} shortcode added. 2023-02-11 09:09:16 -08:00
Jimako
6b828a9ac5
emoticons fix #4972
CLOSES #4972
2023-02-08 10:43:32 +01:00
Cameron
d320ee926e Issue #4969 Added support for FontAwesome v6 2023-02-05 13:48:50 -08:00
Cameron
bd9f62675b disclaimer tweak. 2023-01-14 19:07:31 -08:00
Cameron
fbcef7a3c6 Issue #4918 - Undefined constant fix. 2023-01-14 19:01:52 -08:00
Cameron
e6dc147074 Closes #4952 - Update selectize.js to v0.15.2 2023-01-13 10:04:39 -08:00
Cameron
21de308f83
Merge pull request #4943 from Deltik/hotfix/tests/acceptance
Reintroduce automated acceptance tests
2023-01-12 17:37:48 -08:00
Cameron
eaf2ea0fd7 Tweaked .editorconfig 2023-01-12 17:23:44 -08:00