Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Digital Lifestyle
Web Design and Hosting
Joomla is failing on me!
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="dekan" data-source="post: 1263183" data-attributes="member: 28590"><p>I guess a php class is in order for you? <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>When did the problem start coming up? Did you modify any code anywhere or installed additional modules?</p><p></p><p>foreach expects an array, the function before (settype) is supposed to force the $table parameter into an array. But this function can fail too and in order to test this, settype returns a boolean. In your case I suspect that $tables is something that cannot be forced to an array (maybe it's even null) and foreach gets a type it cannot deal with. Hence my suggestions above. </p><p></p><p>Having said that: I didn't know the code you posted is actually Joomla core code. Usually you wouldn't want to mess around in there to make things work. Next time you'd upgrade your system all those core files get replaced and your changes are gone.</p><p></p><p>In that case I'd start further back and would check which of the changes you had recently made is calling this function and what type the first parameter is. Make sure it's an array.</p><p></p><p>I guess that's all help I can provide without actually having a look at the system <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="dekan, post: 1263183, member: 28590"] I guess a php class is in order for you? :-) When did the problem start coming up? Did you modify any code anywhere or installed additional modules? foreach expects an array, the function before (settype) is supposed to force the $table parameter into an array. But this function can fail too and in order to test this, settype returns a boolean. In your case I suspect that $tables is something that cannot be forced to an array (maybe it's even null) and foreach gets a type it cannot deal with. Hence my suggestions above. Having said that: I didn't know the code you posted is actually Joomla core code. Usually you wouldn't want to mess around in there to make things work. Next time you'd upgrade your system all those core files get replaced and your changes are gone. In that case I'd start further back and would check which of the changes you had recently made is calling this function and what type the first parameter is. Make sure it's an array. I guess that's all help I can provide without actually having a look at the system :-) [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
Digital Lifestyle
Web Design and Hosting
Joomla is failing on me!
Top