Timeline for Issue with php version 7.2 in running search
Current License: CC BY-SA 4.0
16 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 31, 2019 at 1:13 | comment | added | TheXrion |
@fuxia I've commented /*%($division)==0)*/ and its solved .
|
|
Aug 31, 2019 at 0:40 | comment | added | fuxia♦ |
Of course not. 0 is not a valid value if you want to use the % operator. That's what "Division by zero" means. :)
|
|
Aug 31, 2019 at 0:37 | comment | added | TheXrion | @fuxia So i defined and equaled variable to 0 in line 1 but not solve ! | |
Aug 31, 2019 at 0:23 | comment | added | fuxia♦ |
$division is undefined and therefore 0 in some cases. Always include a default statement in your switch and make sure all the required variables are set there to useful values.
|
|
Aug 31, 2019 at 0:01 | comment | added | TheXrion |
@fuxia my question updated with whole loop-shop-listings.php file please check it
|
|
Aug 30, 2019 at 23:57 | history | edited | TheXrion | CC BY-SA 4.0 |
added 5784 characters in body
|
Aug 30, 2019 at 15:52 | answer | added | Ted Stresen-Reuter | timeline score: 2 | |
Aug 30, 2019 at 15:52 | comment | added | fuxia♦ | Add the lines 10–30 of that file to your question please. | |
Aug 30, 2019 at 15:51 | history | edited | fuxia♦ |
edited tags
|
|
Aug 30, 2019 at 15:20 | comment | added | TheXrion |
@TomJNowell This is the warning that stored in log : Division by zero in /home/mysite/public_html/wp-content/themes/mytheme/includes/loop-shop-listings.php on line 24 I worked at it before but i cant figure it whats the problem ..
|
|
Aug 30, 2019 at 15:14 | comment | added | Tom J Nowell♦ |
Thanks, your error is missing the message, and has just the stack trace, it looks like includes/loop-shop-listings.php has a problem on line 24 but it's not clear what the problem is without the error message
|
|
Aug 30, 2019 at 14:54 | comment | added | TheXrion | @TomJNowell My answer updated by log errors that you asked for. Best Regards | |
Aug 30, 2019 at 14:53 | history | edited | TheXrion | CC BY-SA 4.0 |
added 1043 characters in body
|
Aug 30, 2019 at 14:51 | comment | added | TheXrion | @TomJNowell No ! I haven't any problem with php 5.6 before wordpress send message in wordpress dashboard that tell your site running in old wordpress version ! and after i got this message cpu increased unnormally and didn't getting below 50% percent ! | |
Aug 30, 2019 at 14:28 | comment | added | Tom J Nowell♦ | Just to clarify, you had large CPU usage on PHP 5.6, and updated to PHP 7.2. After updating to PHP 7.2 searching for products leads to a HTTP 500 error with "The site is experiencing technical difficulties"? Let me know if I understood correct! Also what does your PHP error log say? | |
Aug 30, 2019 at 14:17 | history | asked | TheXrion | CC BY-SA 4.0 |