PHP stores error logs in /var/log/apache2
if PHP is an apache2 module. Shared hosts are often storing log files in your root directory /log
subfolder. But…if you have access to a php.ini
file you can do this:
error_log = /var/log/php-scripts.log
According to rinogo‘s comment: If you’re using cPanel, the master log file you’re probably looking for is stored (by default) at
/usr/local/apache/logs/error_log
If all else fails you can check the location of the log file using
<?php phpinfo(); ?>
Related Posts:
- How to update custom fields using the wp_insert_post() function?
- How to add some custom HTML to the edit posts page
- Add Useragent to the body class?
- How can I get an XML export of my 1K+ posts WordPress instance?
- How to get Poster (thumbnail) Image of Video
- API response to be stored locally
- How to rewrite URL with PHP variables with htaccess to a normal looking URL?
- Huge debug.log because of “undefined offset in media.php”
- Can’t get wp_insert_post to work
- Why not yield/iterable in posts interface?
- Part of title duplicating but not sure how to remove from code – help?
- Firing schema via code in functions.php doesn’t work
- Blog posts repeat
- Dot is not added at the end of href
- Getting error when using wp_insert_post()
- If tag equals then show else show
- WordPress plugin: render only page content using ajax call
- How to fix this warning:call_user_func_array() expects exactly 2 parameters, 1 given in D:\wamp\www\…….\wp-includes\class-wp-hook.php on line 286
- My php code is not being executed
- Using Shortcode to Grab Archive Listing, Separate by Year
- Function won’t run onclick using Ajax
- working with term_relationships table
- Creating a blog on my companies new website using WordPress but I have sidebar issues
- How to show meta value code HTML after x paragraph
- Check class_exists before class definition / Doxygen problem
- url_to_postid returns 0
- How to Fix an Archive.php That Displays All Posts?
- Dynamically replicate custom metabox in custom post type
- How to tell if a user has gone in and created a menu
- Change Query Arguments (filter) with jQuery/Ajax or PHP?
- WordPress Fresh Install Errors (Woocommerce specifically now)
- Tracking Visitor LatLng with WordPress using JS, PHP. How to put data which was extract using JS into DB
- php script in elementor
- how do i add custom widget woocommerce shop page with php
- WordPress redirect to a subpage – how to create a template for subpage?
- How can I redefine WordPress wp-content directory programmatically?
- Trim Titles Only On Some Pages
- Automatic email message after manual user approval
- can I extend the WP_Query class to deal with ‘duplicate’ posts created by joining to wp_posts?
- Enqueue sripts and styles only if function is called
- Return author name as a tag using get_author
- How to pull date/time in french format for wordpress post?
- WooCommerce subcategories help
- What is wrong with this shortcode? to include external php file in WordPress posts
- Echo Option Value Based On WordPress User Role
- Migrating a live WordPress website to a Local Server: why some elements of the website are missing?
- Store stripe info as user_meta
- Is there a way to have chunks of a page’s content expire?
- Loop returns more items than exist?
- Formatting Shortcode to Display in Visual Mode
- Rewriting to a different page based on existence of query string?
- How to get category pages to look like a certain archive page?
- Host does not allow remote connection, so how do I transfer data to my WordPress site?
- I am extending Walker_Nav_Menu: How can I get the number of children elements of the current item?
- How to call a specific value within the functions.php file?
- How to define template directory in this widget code
- WordPress plugin/code to to to next/previous post in same category
- How to use js variable to php in wordpress functions.php
- Display total count of products in orders of a specific order status
- Why can’t I enter the wordpress admin interface?
- Show div only if product has attribute
- Create guest author page via php
- hello can you advise how to fix the error?
- How to hide header and footer from page template
- 404 after removing “category” base in wordpress
- Is there a way to get wp_editor (tinymce) content?
- Exclude Everywhere but Admin Area?
- Use URL query string in img src attribute
- Getting a specific “title for a section” only on Startpage?
- Frontend redirect after delete post in wordpress
- ACF Image Alt Tags not loading WordPress library meta’s alt tag
- Change date/time format in custom plugin
- Displaying custom meta box value in a custom post page
- How to pull the current user’s email and insert into a script placeholder?
- Sorting a custom post type in pre_get_posts
- I have an error WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version
- How do you create a front end form that enables the editing of member-specific custom fields in WordPress?
- How to use a conditional statement in a post loop but not count towards the “posts_per_page” if false
- How to make multiple custom taxonomies sit under custom post type slug?
- In WordPress how do you remove render-blocking CSS manually without a plugin?
- how to check elementor is widget is active or loaded
- ask about add_rewrite_endpoint query_vars
- PHP – Having $_SESSION as an array and adding $_SESSION to array
- SQL query to retrieve the number of WordPress posts with all given categories
- Saving meta box data from selected option’s value in database is not working
- Create a custom plugin with dynamic child pages listing database records
- Word press – JSPDF – Sending PDF as attachment from wp_mail – Special characters
- I can’t log into my website , it says “Error: Cookies are blocked due to unexpected output”
- Styling best practices for single pages/templates
- Link on post title only if post have content
- if get_post_meta do something
- How to save a post to a Custom post type and copy the information to another Custom post type?
- Save_Post change Custom Post Type Post title to post id number
- Sidebars panel in customizer
- WordPress If else statement to hide or show a div based on population a field
- Ajax infinite scroll random order shows duplicate posts on custom post type
- RTL in WordPress or Elementor editor
- Bulk data save in custom table
- WordPress @include( ‘template-config.php’ );
- Is there a hook that I can use when a fatal error occurs?