Forum Open Notice
Forum Open Notice
  1. Forum
  2. Search

Advanced Search

Search Options

Search Results Displaying 1–20 out of 1118 results.

AllVideos 3 weeks 3 days ago

AllVideos 7.0 Error on Joomla 3

Hello Luigi,

While we wait for your reply to JoomlaWorks' question, here's some general guidance on that message:
  1. "Undefined variable $ytQuery" is a PHP warning (not a fatal error), so your pages should still render — it only means the code reached a point where $ytQuery was used without having been assigned a value first. In practice this happens when the tag/parser path taken doesn't involve a YouTube query, which newer PHP versions (7.x/8.x) report much more loudly than older ones did.
  2. Because of that, the PHP version running on your server matters a lot: the same plugin build can be silent on PHP 5.6 and noisy on PHP 7.4/8.x. That's exactly what the JoomlaWorks reply above is asking for, so please do report it along with where the warning appears (front-end article, category blog, a specific {youtube} tag, etc.).
  3. As a workaround you can lower error reporting on the site (Joomla configuration or php.ini), but that only hides the message — it doesn't fix the underlying notice.

Similar "Undefined variable / undefined index / invalid argument supplied for foreach" warnings from JoomlaWorks extensions have been reported before and were generally traced to the environment's PHP error reporting level and version rather than to broken parsing — see the related threads K2 Stats (admin) error and Simple Image Gallery Pro doesn't work .

If you can confirm the PHP version and whether a newer AllVideos release is available for your installation, we can narrow it down further.
English K2 Community 3 years 1 month ago

Joomla 3 backend doesn't work with PHP 8

Hello, I have latest version of K2 2.11.20230505 and latest Joomla 3 3.10.12. I have tried PHP 8 and 8.1 and frontend works fine but backend is broken. I get only white page and in logs I see this: [15-Oct-2023 21:24:25 UTC] PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /home/site/public_html/plugins/system/k2json/
How can I fix this so I can login to backend and so I can use PHP 8/8.1 because frontend works fine.
Thank you
English K2 Community 3 years 5 months ago

PHP 8 error at saving a k2 item on Joomla 3.10.11

Fatal error: Array and string offset access syntax with curly braces is no longer supported in media/k2/assets/vendors/verot/
need to be addressed in all new releases. Replace the string curly braces with square braces on that line.
Otherwise you get a blank page (fatal error) when you add or edit an K2 item ans press "Save" or "Save and close" and the item is not saved in database.
English K2 Community 3 years 10 months ago

fatal error after php 8.0 Update

ive updated to k2 V2.11.

And the "strtoupper" error just appears, when i save a k2 item. IT saves the information, but i receive this info.

Do you have maybe a ideal? Because it seems, that just ive this problem.

UPDATE: Foud the error, caused by this plugin:
extensions.joomla.org/extension/additional-categories-for-k2/

Ill contact the programer
English K2 Community 3 years 11 months ago

fatal error after php 8.0 Update

The "strtoupper" error is not coming from K2 but something else.

The warning on K2's router is now fixed - simply install getk2.org/downloads/?f=K2_Development_Release.zip on top.
English K2 Community 3 years 11 months ago

fatal error after php 8.0 Update

Thx Fotis,

worked! But ive receive following error in the backend:

strtoupper(): Argument #1 ($string) must be of type string, array given
/www/htdocs/w01a9b4f/projekt-lastschrift/libraries/legacy/request/request.php:99

and following on the frontend (debug is active:

Warning: Attempt to read property "alias" on null in /www/htdocs/w01a9b4f/projekt-lastschrift/components/com_k2/router.php on line 283
English K2 Community 3 years 11 months ago

fatal error after php 8.0 Update

@Franz Heine
a) This is actually a third-party library issue, not K2. And it's fixed in K2 v2.11 (dev) here: getk2.org/downloads/?f=K2_Development_Release.zip

b) Sticking to PHP 7.4 does not mean your site is at grave danger to get hacked any day now... Most security issues usually relate to performance/reliability, especially on 7.2+ releases.
English K2 Community 3 years 11 months ago

fatal error after php 8.0 Update

But it doesnt make sense. The Support for php7 ended. Thats a real security issue. Is there a plan, when k2 will be ready for php8?
English K2 Community 3 years 11 months ago

fatal error after php 8.0 Update

i receive this error affter updateing my site to php 8.0
Fatal error: Array and string offset access syntax with curly braces is no longer supported in /www/htdocs/w01a9b4f/projekt-lastschrift/media/k2/assets/vendors/verot/class.upload.php/src/class.upload.php on line 2726
Comunidade K2 Brasil 4 years 6 days ago

Fatal error: Array and string offset access syntax with curly braces is no longe

pagina branca quando tento salvar qualquer artigo no joomla, minha versao do php é a 8, ativei o log e acusa esse erro abaixo:

media/k2/assets/vendors/verot/
plugins/system/k2/
English K2 Community 4 years 8 months ago

K2 Error Trying to get property of non-object

Michael, a notice doesn't cause a fatal error...
English K2 Community 4 years 10 months ago

K2 Error Trying to get property of non-object

"Just a notice", it's bad coding and causes fatal error on the site.
English K2 Community 4 years 11 months ago

PHP 8, New Group => array_merge(): Argument #1 must be of type array, null given

Hi,

If you try to create a new group on PHP 8, array_merge(): Argument #1 must be of type array, null given

To fix it:

administrator/components/com_k2/views/usergroup/view.html.php, line 51:

$categories_option = $categories;

if ($categories_option) {
    $categories_options = array_merge($categories_option, $categories);
}

Error impression with  @ doesn't work as before on PHP 8. PHP 8.0: 
@
 Error Suppression operator does not silent fatal errorshttps://php.watch/versions/8.0/fatal-error-suppression


Best Regards
English K2 Community 5 years 1 week ago

Fatal error: Array and string offset access syntax with curly braces is no longe

It looks like K2 2.10.3 is not updated to the latest version of the library: github.com/verot/class.upload.php

Best regards
English K2 Community 5 years 1 month ago

Fatal error: Array and string offset access syntax with curly braces is no longe

Hello! When I try to save my item, I have the error:
Fatal error: Array and string offset access syntax with curly braces is no longer supported in media/k2/assets/vendors/verot/class.upload.php/src/class.upload.php on line 2726

Do you have update for work on php 8?
English K2 Community 5 years 2 months ago

White Screen on Save K2 Item

Just installed K2 V2.10.3 on a brand new fresh install of Joomla 3.10.1. I've been able to create categories without issue but whenever I try to create an item and save it, I just get a white screen.

Setting Error Reporting to Maximum then gives this error:

Fatal error: Array and string offset access syntax with curly braces is no longer supported in /home/customer/www/*********.co.uk/public_html/media/k2/assets/vendors/verot/class.upload.php/src/class.upload.php on line 2726

This seems to refer to a getsize function but I don't understand enough to know what it's getting the size of or why curly braces are no longer supported.

I'm running PHP 8.0.10 if that makes a difference.

Any ideas?
English K2 Community 5 years 7 months ago

Plugin conflict and recommended PHP settings for upload.

Hi,

64Mb set for both: No change. Uploads of 5-6Mb file will still cause the error when "Content - jDownloads" plugin enabled. Like explained no issue with 1Mb files.

I have even tried to change the order of the plugin: First, last and middle.
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 8192 bytes) in .../media/k2/assets/vendors/verot/class.upload.php/src/class.upload.php on line 2797


PHP settings:
allow_url_fopen = Off display_errors = On enable_dl = Off file_uploads = On max_execution_time = 30 max_input_time = 240 max_input_vars = 1000 memory_limit = 128M post_max_size = 64M session.gc_maxlifetime = 1440 session.save_path = "/var/cpanel/php/sessions/ea-php74" upload_max_filesize = 64M zlib.output_compression = Off allow_url_include = Off 
English K2 Community 5 years 8 months ago

Plugin conflict and recommended PHP settings for upload.

Hi,

was getting error below with Front-end editing whenever I edit item. So I switched to latest router as recommended here. www.joomlaworks.net/forum/k2-de/53846-fehlermeldungen-in-router-php-line-292
[b]Notice[/b]: Trying to get property 'alias' of non-object in [b]/home/.../components/com_k2/router.php[/b] on line [b]292[/b]

While uploading 5.8Mb image on Front-end I got following errors.
[b]Deprecated[/b]: Array and string offset access syntax with curly braces is deprecated in [b].../media/k2/assets/vendors/verot/class.upload.php/src/class.upload.php[/b] on line [b]2726[/b] [b]Notice[/b]: Trying to access array offset on value of type int in [b]. ../media/k2/assets/vendors/verot/class.upload.php/src/class.upload.php[/b] on line [b]2726[/b] [b]Notice[/b]: Trying to access array offset on value of type int in ...[b]/media/k2/assets/vendors/verot/class.upload.php/src/class.upload.php[/b] on line [b]2726[/b] [b]Fatal error[/b]: Allowed memory size of 134217728 bytes exhausted (tried to allocate 8192 bytes) in [b].../media/k2/assets/vendors/verot/class.upload.php/src/class.upload.php[/b] on line [b]2797[/b]

So I switch from PHP 7.4 to 7.3. Now only error :
[b]Fatal error[/b]: Allowed memory size of 134217728 bytes exhausted (tried to allocate 8192 bytes) in [b].../media/k2/assets/vendors/verot/class.upload.php/src/class.upload.php[/b] on line [b]2797[/b]

The error was only with big files. No issue with a 350kb jpg. I found out that a plugin was causing the issue : "content jdownloads".

1. Any chance I can uploads working with this plugin ? Change ordering ?

2. A 5.4Mb file will typically take nearly 3 minutes to upload. It might takes longer for slow connections. That said, can you recommend PHP settiongs for my case ?

Actually it is : 
allow_url_fopen = Off display_errors = On enable_dl = Off file_uploads = On max_execution_time = 30 max_input_time = 60 max_input_vars = 1000 memory_limit = 128M post_max_size = 7M session.gc_maxlifetime = 1440 session.save_path = "/var/cpanel/php/sessions/ea-php74" upload_max_filesize = 6M zlib.output_compression = Off
English K2 Community 5 years 8 months ago

Allowed memory size of 67108864 bytes exhausted (tried to allocate 12288 bytes)

Hello,
I get this error message
Notice: Trying to access array offset on value of type int in /home/admin/public_html/khmercdp.org/media/k2/assets/vendors/verot/class.upload.php/src/class.upload.php on line 2769 Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 12288 bytes) in /home/admin/public_html/khmercdp.org/media/k2/assets/vendors/verot/class.upload.php/src/class.upload.php on line 2887

Is it error or it is just information becuase I enable Error Reporting: Maximum
Session Settings
Session Handler : PHP
Session Lifetime : 15
Shared Sessions : No
System Cache : NO
English K2 Community 5 years 8 months ago

Recoverable fatal error: Object of class stdClass could not be converted to stri

Try changing "$fields[$k]->field_value[$zone->zone_id]=$obj;" to "$fields[$k]->field_value[$zone->zone_id]=(object) $obj;".

Just a quick thought as I'm not aware of the context in which that codes executes.

In any case, what J2Store did with K2Store and then with the removal of the K2 plugin for J2Store really is a dick move and I would not trust investing on any software from them in the future...