Support

Account

Home Forums Backend Issues (wp-admin) Fatal error: Out of memory

Helping

Fatal error: Out of memory

  • I’ve searched the crap out of this (Google) and can’t find an answer to this issue that plagues me with ACF all the time!

    The page in question can be found here:
    https://www.pcfcu.org/rates/

    All of those rates in the tables are controlled via ACF repeater fields (I’m using ACF Pro, latest version) so that the client can add as many rates as they need.

    Up until today everything worked fine until I added another rate. Low and behold upon saving the page I got this error:
    Fatal error: Out of memory (allocated 60555264) (tried to allocate 90 bytes) in /home/pcu/public_html/wp-includes/meta.php on line 838

    I don’t know why this is happening but I see a ton of people have this issue in my research. I can’t figure out how to fix it for the life of me!

    Note that this site is on it’s own VPS server, so it’s not on a shared server.

    Here’s my “rates.php” template which contains the ACF code for this page:

    <?php
    /**
     * Template Name: Rates & Fees Page
     *
     * A custom template for resource pages.
     *
     * The "Template Name:" bit above allows this to be selectable
     * from a dropdown menu on the edit page screen.
     *
     * @package WordPress
     * @subpackage Twenty_Ten
     * @since Twenty Ten 1.0
     */
     
    get_header(); ?>
        
    <div id="content-container">
    	<div id="content-container-inner">
        	<div id="content-col">
            	<div id="content-col-inner">
                	<div id="content-col-bg">
                    
                    	<header><h1 class="page-title"><?php the_title(); ?></h1></header>
                    
                        <h2>Rates</h2>
                        <h3>Vista Checking Account</h3>
                        
                        <table class="rates">
                            <thead>
                                <tr>
                                    <th></th>
                                    <th>Dividend Rate</th>
                                    <th>Annual Percentage Yield</th>
                                </tr>
                            </thead>
                            <tbody>
                        
                        <?php if( have_rows('vista_checking_account') ): ?>
                    
                            <?php while( have_rows('vista_checking_account') ): the_row(); 
                                // variables
                                $amount = get_sub_field('amount');
                                $dividend = get_sub_field('dividend_rate');
                                $apy = get_sub_field('apy');
                            ?>
                         
                         <tr>   
                            <td class="rates-left"><?php echo $amount; ?></td>
                            <td><?php echo $dividend; ?></td>
                            <td><?php echo $apy; ?></td>
                         </tr>
                          
                            <?php endwhile; ?>
                    
                        <?php endif; ?>
                        
                            </tbody>
                            <tfoot>
                                <tr>
                                    <td colspan="3">
                                        <p class="fineprint"><?php the_field('vista_checking_account_fine_print'); ?></p>
                                    </td>
                                </tr>
                            </tfoot>
                        </table>
                        
                        <h3>Savings Accounts</h3>
                        
                        <table class="rates">
                            <thead>
                                <tr>
                                    <th>Dividend Rate</th>
                                    <th>Annual Percentage Yield</th>
                                </tr>
                            </thead>
                            <tbody>
                        
                        <?php if( have_rows('savings_accounts') ): ?>
                    
                            <?php while( have_rows('savings_accounts') ): the_row(); 
                                // variables
                                $dividend = get_sub_field('dividend_rate');
                                $apy = get_sub_field('apy');
                            ?>
                         
                         <tr>   
                            <td class="rates-left"><?php echo $dividend; ?></td>
                            <td><?php echo $apy; ?></td>
                         </tr>
                          
                            <?php endwhile; ?>
                    
                        <?php endif; ?>
                        
                            </tbody>
                            <tfoot>
                                <tr>
                                    <td colspan="2">
                                        <p class="fineprint"><?php the_field('savings_accounts_fine_print'); ?></p>
                                    </td>
                                </tr>
                            </tfoot>
                        </table>
                        
                        <h3>Shares Plus</h3>
                        
                        <table class="rates">
                            <thead>
                                <tr>
                                    <th></th>
                                    <th>Dividend Rate</th>
                                    <th>Annual Percentage Yield</th>
                                </tr>
                            </thead>
                            <tbody>
                        
                        <?php if( have_rows('shares_plus') ): ?>
                    
                            <?php while( have_rows('shares_plus') ): the_row(); 
                                // variables
                                $balance = get_sub_field('average_balance');
                                $dividend = get_sub_field('dividend_rate');
                                $apy = get_sub_field('apy');
                            ?>
                         
                         <tr>   
                            <td class="rates-left"><?php echo $balance; ?></td>
                            <td><?php echo $dividend; ?></td>
                            <td><?php echo $apy; ?></td>
                         </tr>
                          
                            <?php endwhile; ?>
                    
                        <?php endif; ?>
                        
                            </tbody>
                            <tfoot>
                                <tr>
                                    <td colspan="3">
                                        <p class="fineprint"><?php the_field('shares_plus_fine_print'); ?></p>
                                    </td>
                                </tr>
                            </tfoot>
                        </table>
                        
                        <h3>Auto, Truck & Motorcycle Loans</h3>
                        
                        <table class="rates">
                            <thead>
                                <tr>
                                    <th>Loan Type</th>
                                    <th>APR*</th>
                                    <th>Purchase / Refi***<br />Loan-to-Value</th>
                                    <th>Maximum Term**</th>
                                    <th>Model Year</th>
                                </tr>
                            </thead>
                            <tbody>
                        <tr>
                            <td class="empty-row" colspan="4"></td>
                        </tr>
                        <?php if( have_rows('new_auto_&_truck_loans') ): ?>
                    
                            <?php while( have_rows('new_auto_&_truck_loans') ): the_row(); 
                                // variables
                                $apr = get_sub_field('apr');
                                $value = get_sub_field('loan-to-value');
    							$term = get_sub_field('maximum_term');
    							$year = get_sub_field('model_year');
                            ?>
                         
                         <tr>
                         	<td class="rates-left" <?php if( get_sub_field('limited_time_rate') ) { echo "style='background-color: #F00; color: #FFF; font-weight: 700;'"; } ?>>New Autos, Truck <?php if( get_sub_field('limited_time_rate') ) { echo "(LIMITED TIME OFFER)"; } ?></td>
                            <td <?php if( get_sub_field('limited_time_rate') ) { echo "style='color: #F00; font-weight: 700;''"; } ?>><?php echo $apr; ?></td>
                            <td <?php if( get_sub_field('limited_time_rate') ) { echo "style='color: #F00; font-weight: 700;''"; } ?>><?php echo $value; ?></td>
                            <td <?php if( get_sub_field('limited_time_rate') ) { echo "style='color: #F00; font-weight: 700;''"; } ?>><?php echo $term; ?></td>
                            <td <?php if( get_sub_field('limited_time_rate') ) { echo "style='color: #F00; font-weight: 700;''"; } ?>><?php echo $year; ?></td>
                         </tr>
                          
                            <?php endwhile; ?>
                    
                        <?php endif; ?>
                        
                        <tr>
                            <td class="empty-row" colspan="4"></td>
                        </tr>
                        <?php if( have_rows('used_auto_&_truck_loans') ): ?>
                    
                            <?php while( have_rows('used_auto_&_truck_loans') ): the_row(); 
                                // variables
                                $apr = get_sub_field('apr');
                                $value = get_sub_field('loan-to-value');
    							$term = get_sub_field('maximum_term');
    							$year = get_sub_field('model_year');
                            ?>
                         
                         <tr>
                         	<td class="rates-left">Used Autos, Truck</td>
                            <td><?php echo $apr; ?></td>
                            <td><?php echo $value; ?></td>
                            <td><?php echo $term; ?></td>
                            <td><?php echo $year; ?></td>
                         </tr>
                          
                            <?php endwhile; ?>
                    
                        <?php endif; ?>
                        
                        <tr>
                            <td class="empty-row" colspan="4"></td>
                        </tr>
                        <?php if( have_rows('new_motorcycles_loans') ): ?>
                    
                            <?php while( have_rows('new_motorcycles_loans') ): the_row(); 
                                // variables
                                $apr = get_sub_field('apr');
                                $value = get_sub_field('loan-to-value');
    							$term = get_sub_field('maximum_term');
    							$year = get_sub_field('model_year');
                            ?>
                         
                         <tr>
                         	<td class="rates-left" <?php if( get_sub_field('limited_time_rate') ) { echo "style='background-color: #F00; color: #FFF; font-weight: 700;'"; } ?>>New Motorcycles <?php if( get_sub_field('limited_time_rate') ) { echo "(LIMITED TIME OFFER)"; } ?></td>
                            <td <?php if( get_sub_field('limited_time_rate') ) { echo "style='color: #F00; font-weight: 700;''"; } ?>><?php echo $apr; ?></td>
                            <td <?php if( get_sub_field('limited_time_rate') ) { echo "style='color: #F00; font-weight: 700;''"; } ?>><?php echo $value; ?></td>
                            <td <?php if( get_sub_field('limited_time_rate') ) { echo "style='color: #F00; font-weight: 700;''"; } ?>><?php echo $term; ?></td>
                            <td <?php if( get_sub_field('limited_time_rate') ) { echo "style='color: #F00; font-weight: 700;''"; } ?>><?php echo $year; ?></td>
                         </tr>
                          
                            <?php endwhile; ?>
                    
                        <?php endif; ?>
                        
                        <tr>
                            <td class="empty-row" colspan="4"></td>
                        </tr>
                        <?php if( have_rows('used_motorcycles_loans') ): ?>
                    
                            <?php while( have_rows('used_motorcycles_loans') ): the_row(); 
                                // variables
                                $apr = get_sub_field('apr');
                                $value = get_sub_field('loan-to-value');
    							$term = get_sub_field('maximum_term');
    							$year = get_sub_field('model_year');
                            ?>
                         
                         <tr>
                         	<td class="rates-left">Used Motorcycles</td>
                            <td><?php echo $apr; ?></td>
                            <td><?php echo $value; ?></td>
                            <td><?php echo $term; ?></td>
                            <td><?php echo $year; ?></td>
                         </tr>
                          
                            <?php endwhile; ?>
                    
                        <?php endif; ?>  
                        
                        <tr>
                            <td class="empty-row" colspan="4"></td>
                        </tr>
                        <?php if( have_rows('collector_auto_&_truck_loans') ): ?>
                    
                            <?php while( have_rows('collector_auto_&_truck_loans') ): the_row(); 
                                // variables
                                $apr = get_sub_field('apr');
                                $value = get_sub_field('loan-to-value');
    							$term = get_sub_field('maximum_term');
    							$year = get_sub_field('model_year');
                            ?>
                         
                         <tr>
                         	<td class="rates-left">Collector Classics (Auto / Truck)</td>
                            <td><?php echo $apr; ?></td>
                            <td><?php echo $value; ?></td>
                            <td><?php echo $term; ?></td>
                            <td><?php echo $year; ?></td>
                         </tr>
                          
                            <?php endwhile; ?>
                    
                        <?php endif; ?>
                        
                            </tbody>
                            <tfoot>
                                <tr>
                                    <td colspan="5">
                                        <p class="fineprint"><?php the_field('auto_&_truck_loans_fine_print'); ?></p>
                                    </td>
                                </tr>
                            </tfoot>
                        </table>
                        
                        <h3>RV / Motorhome & Boat Loans</h3>
                        
                        <table class="rates">
                            <thead>
                                <tr>
                                    <th>Loan Type</th>
                                    <th>APR*</th>
                                    <th>Purchase / Refi***<br />Loan-to-Value</th>
                                    <th>Maximum Term**</th>
                                    <th>Model Year</th>
                                </tr>
                            </thead>
                            <tbody>
                            
                        <tr>
                            <td class="empty-row" colspan="4"></td>
                        </tr>
                        <?php if( have_rows('new_rvs_motor_homes_boats') ): ?>
                    
                            <?php while( have_rows('new_rvs_motor_homes_boats') ): the_row(); 
                                // variables
                                $apr = get_sub_field('apr');
                                $value = get_sub_field('loan-to-value');
    							$term = get_sub_field('maximum_term');
    							$year = get_sub_field('model_year');
                            ?>
                         
                         <tr>
                         	<td class="rates-left">New RVs, Motorhomes, Boats</td>
                            <td><?php echo $apr; ?></td>
                            <td><?php echo $value; ?></td>
                            <td><?php echo $term; ?></td>
                            <td><?php echo $year; ?></td>
                         </tr>
                          
                            <?php endwhile; ?>
                    
                        <?php endif; ?>
                        
                        <tr>
                            <td class="empty-row" colspan="4"></td>
                        </tr>
                        <?php if( have_rows('used_rvs_motor_homes_boats') ): ?>
                    
                            <?php while( have_rows('used_rvs_motor_homes_boats') ): the_row(); 
                                // variables
                                $apr = get_sub_field('apr');
                                $value = get_sub_field('loan-to-value');
    							$term = get_sub_field('maximum_term');
    							$year = get_sub_field('model_year');
                            ?>
                         
                         <tr>
                         	<td class="rates-left">Used RVs, Motorhomes, Boats</td>
                            <td><?php echo $apr; ?></td>
                            <td><?php echo $value; ?></td>
                            <td><?php echo $term; ?></td>
                            <td><?php echo $year; ?></td>
                         </tr>
                          
                            <?php endwhile; ?>
                    
                        <?php endif; ?>
                        
                        <tr>
                            <td class="empty-row" colspan="4"></td>
                        </tr>
                        <?php if( have_rows('motorcycles') ): ?>
                    
                            <?php while( have_rows('motorcycles') ): the_row(); 
                                // variables
                                $apr = get_sub_field('apr');
                                $value = get_sub_field('loan-to-value');
    							$term = get_sub_field('maximum_term');
    							$year = get_sub_field('model_year');
                            ?>
                         
                         <tr>
                         	<td class="rates-left">Motorcycles (Street Bikes Only)</td>
                            <td><?php echo $apr; ?></td>
                            <td><?php echo $value; ?></td>
                            <td><?php echo $term; ?></td>
                            <td><?php echo $year; ?></td>
                         </tr>
                          
                            <?php endwhile; ?>
                    
                        <?php endif; ?>
                        
                            </tbody>
                            <tfoot>
                                <tr>
                                    <td colspan="5">
                                        <p class="fineprint"><?php the_field('rvs_boats_and_motorcycle_loans_fine_print'); ?></p>
                                    </td>
                                </tr>
                            </tfoot>
                        </table>
                        
                        <h3>Personal Loans</h3>
                        
                        <table class="rates">
                            <thead>
                                <tr>
                                    <th>Loan Type</th>
                                    <th>APR*</th>
                                    <th>Purchase / Refi***<br />Loan-to-Value</th>
                                    <th>Maximum Term**</th>
                                </tr>
                            </thead>
                            <tbody>
                        
                        <?php if( have_rows('personal_loans') ): ?>
                    
                            <?php while( have_rows('personal_loans') ): the_row(); 
                                // variables
                                $type = get_sub_field('loan_type');
                                $apr = get_sub_field('apr');
                                $value = get_sub_field('loan-to-value');
    							$term = get_sub_field('maximum_term');
                            ?>
                         
                         <tr>   
                            <td class="rates-left"><?php echo $type; ?></td>
                            <td><?php echo $apr; ?></td>
                            <td><?php echo $value; ?></td>
                            <td><?php echo $term; ?></td>
                         </tr>
                          
                            <?php endwhile; ?>
                    
                        <?php endif; ?>
                        
                            </tbody>
                            <tfoot>
                                <tr>
                                    <td colspan="4">
                                        <p class="fineprint"><?php the_field('personal_loans_fine_print'); ?></p>
                                    </td>
                                </tr>
                            </tfoot>
                        </table>
                        
                        <h3>IRAs</h3>
                        
                        <table class="rates">
                            <thead>
                                <tr>
                                    <th>IRA Type</th>
                                    <th>APY</th>
                                </tr>
                            </thead>
                            <tbody>
                        
                        <?php if( have_rows('iras') ): ?>
                    
                            <?php while( have_rows('iras') ): the_row(); 
                                // variables
                                $type = get_sub_field('ira_type');
                                $apr = get_sub_field('apy');
                            ?>
                         
                         <tr>   
                            <td class="rates-left"><?php echo $type; ?></td>
                            <td><?php echo $apy; ?></td>
                         </tr>
                          
                            <?php endwhile; ?>
                    
                        <?php endif; ?>
                        
                            </tbody>
                            <tfoot>
                                <tr>
                                    <td colspan="2">
                                        <p class="fineprint"><?php the_field('iras_fine_print'); ?></p>
                                    </td>
                                </tr>
                            </tfoot>
                        </table>
                        
                        <h3>Certificates</h3>
                        
                        <table class="rates">
                            <thead>
                                <tr>
                                    <th>Certificate Term</th>
                                    <th>Dividend Rate</th>
                                    <th>APY</th>
                                    <th>Minimum Balance</th>
                                </tr>
                            </thead>
                            <tbody>
                        
                        <?php if( have_rows('certificates') ): ?>
                    
                            <?php while( have_rows('certificates') ): the_row(); 
                                // variables
                                $term = get_sub_field('certificate_term');
                                $rate = get_sub_field('dividend_rate');
    							$apy = get_sub_field('apy');
    							$balance = get_sub_field('minimum_balance');
                            ?>
                         
                         <tr>   
                            <td class="rates-left"><?php echo $term; ?></td>
                            <td><?php echo $apy; ?></td>
                            <td><?php echo $apy; ?></td>
                            <td><?php echo $balance; ?></td>
                         </tr>
                          
                            <?php endwhile; ?>
                    
                        <?php endif; ?>
                        
                            </tbody>
                            <tfoot>
                                <tr>
                                    <td colspan="4">
                                        <p class="fineprint"><?php the_field('certificates_fine_print'); ?></p>
                                    </td>
                                </tr>
                            </tfoot>
                        </table>
                        
                        
                        
                        
                        
                        
    					<div style="height: 150px"></div>
                       
                       
                       
                       
                       
                       
                        <h2>Fee Schedule</h2>
    					<h3>Personal Checking</h3>
                        
                        <table class="rates">
                            <thead>
                                <tr>
                                    <th>Account</th>
                                    <th>Fee</th>
                                </tr>
                            </thead>
                            <tbody>
                        
                        <?php if( have_rows('personal_checking') ): ?>
                    
                            <?php while( have_rows('personal_checking') ): the_row(); 
                                // variables
                                $account = get_sub_field('account');
                                $fee = get_sub_field('fee');
                            ?>
                         
                         <tr>   
                            <td class="rates-left"><?php echo $account; ?></td>
                            <td><?php echo $fee; ?></td>
                         </tr>
                          
                            <?php endwhile; ?>
                    
                        <?php endif; ?>
                        
                            </tbody>
                            <tfoot>
                                <tr>
                                    <td colspan="2">
                                        <p class="fineprint"><?php the_field('personal_checking_fine_print'); ?></p>
                                    </td>
                                </tr>
                            </tfoot>
                        </table>
                        
                        <h3>Check Printing</h3>
                        
                        <table class="rates">
                            <thead>
                                <tr>
                                    <th>Account</th>
                                    <th>Fee</th>
                                </tr>
                            </thead>
                            <tbody>
                        
                        <?php if( have_rows('check_printing') ): ?>
                    
                            <?php while( have_rows('check_printing') ): the_row(); 
                                // variables
                                $service = get_sub_field('service');
                                $fee = get_sub_field('fee');
                            ?>
                         
                         <tr>   
                            <td class="rates-left"><?php echo $service; ?></td>
                            <td><?php echo $fee; ?></td>
                         </tr>
                          
                            <?php endwhile; ?>
                    
                        <?php endif; ?>
                        
                            </tbody>
                        </table>
                        
                        <h3>Business Checking</h3>
                        
                        <table class="rates">
                            <thead>
                                <tr>
                                    <th>Service</th>
                                    <th>Fee</th>
                                </tr>
                            </thead>
                            <tbody>
                        
                        <?php if( have_rows('business_checking') ): ?>
                    
                            <?php while( have_rows('business_checking') ): the_row(); 
                                // variables
                                $service = get_sub_field('service');
                                $fee = get_sub_field('fee');
                            ?>
                         
                         <tr>   
                            <td class="rates-left"><?php echo $service; ?></td>
                            <td><?php echo $fee; ?></td>
                         </tr>
                          
                            <?php endwhile; ?>
                    
                        <?php endif; ?>
                        
                            </tbody>
                        </table>
                        
                        <h3>ATM/VISA Check Cards</h3>
                        
                        <table class="rates">
                            <thead>
                                <tr>
                                    <th>Service</th>
                                    <th>Fee</th>
                                </tr>
                            </thead>
                            <tbody>
                        
                        <?php if( have_rows('atm_/_visa_check_cards') ): ?>
                    
                            <?php while( have_rows('atm_/_visa_check_cards') ): the_row(); 
                                // variables
                                $service = get_sub_field('service');
                                $fee = get_sub_field('fee');
                            ?>
                         
                         <tr>   
                            <td class="rates-left"><?php echo $service; ?></td>
                            <td><?php echo $fee; ?></td>
                         </tr>
                          
                            <?php endwhile; ?>
                    
                        <?php endif; ?>
                        
                            </tbody>
                        </table>
                        
                        <h3>Other Checking Account Fees</h3>
                        
                        <table class="rates">
                            <thead>
                                <tr>
                                    <th>Service</th>
                                    <th>Fee</th>
                                </tr>
                            </thead>
                            <tbody>
                        
                        <?php if( have_rows('other_checking_account_fees') ): ?>
                    
                            <?php while( have_rows('other_checking_account_fees') ): the_row(); 
                                // variables
                                $service = get_sub_field('service');
                                $fee = get_sub_field('fee');
                            ?>
                         
                         <tr>   
                            <td class="rates-left"><?php echo $service; ?></td>
                            <td><?php echo $fee; ?></td>
                         </tr>
                          
                            <?php endwhile; ?>
                    
                        <?php endif; ?>
                        
                            </tbody>
                        </table>
                        
                        <h3>Electronic Services</h3>
                        
                        <table class="rates">
                            <thead>
                                <tr>
                                    <th>Service</th>
                                    <th>Fee</th>
                                </tr>
                            </thead>
                            <tbody>
                        
                        <?php if( have_rows('electronic_services') ): ?>
                    
                            <?php while( have_rows('electronic_services') ): the_row(); 
                                // variables
                                $service = get_sub_field('service');
                                $fee = get_sub_field('fee');
                            ?>
                         
                         <tr>   
                            <td class="rates-left"><?php echo $service; ?></td>
                            <td><?php echo $fee; ?></td>
                         </tr>
                          
                            <?php endwhile; ?>
                    
                        <?php endif; ?>
                        
                            </tbody>
                        </table>
                        
                        <h3>Bill Payment</h3>
                        
                        <table class="rates">
                            <thead>
                                <tr>
                                    <th>Service</th>
                                    <th>Fee</th>
                                </tr>
                            </thead>
                            <tbody>
                        
                        <?php if( have_rows('bill_payment') ): ?>
                    
                            <?php while( have_rows('bill_payment') ): the_row(); 
                                // variables
                                $service = get_sub_field('service');
                                $fee = get_sub_field('fee');
                            ?>
                         
                         <tr>   
                            <td class="rates-left"><?php echo $service; ?></td>
                            <td><?php echo $fee; ?></td>
                         </tr>
                          
                            <?php endwhile; ?>
                    
                        <?php endif; ?>
                        
                            </tbody>
                        </table>
                        
                        <h3>Safe Deposit Boxes Annual Rental</h3>
    					<p class="fineprint">(Box size may vary by location)</p>
                        
                        <table class="rates">
                            <thead>
                                <tr>
                                    <th>Box Size</th>
                                    <th>Fee</th>
                                </tr>
                            </thead>
                            <tbody>
                        
                        <?php if( have_rows('safe_deposit_boxes_annual_rental') ): ?>
                    
                            <?php while( have_rows('safe_deposit_boxes_annual_rental') ): the_row(); 
                                // variables
                                $size = get_sub_field('box_size');
                                $fee = get_sub_field('fee');
                            ?>
                         
                         <tr>   
                            <td class="rates-left"><?php echo $size; ?></td>
                            <td><?php echo $fee; ?></td>
                         </tr>
                          
                            <?php endwhile; ?>
                    
                        <?php endif; ?>
                        
                            </tbody>
                            <tfoot>
                                <tr>
                                    <td colspan="2">
                                        <p class="fineprint"><?php the_field('safe_deposit_boxes_annual_rental_fine_print'); ?></p>
                                    </td>
                                </tr>
                            </tfoot>
                        </table>
                        
                        <h3>Miscellaneous Fees</h3>
                        
                        <table class="rates">
                            <thead>
                                <tr>
                                    <th>Service</th>
                                    <th>Fee</th>
                                </tr>
                            </thead>
                            <tbody>
                        
                        <?php if( have_rows('miscellaneous_fees') ): ?>
                    
                            <?php while( have_rows('miscellaneous_fees') ): the_row(); 
                                // variables
                                $service = get_sub_field('service');
                                $fee = get_sub_field('fee');
                            ?>
                         
                         <tr>   
                            <td class="rates-left"><?php echo $service; ?></td>
                            <td><?php echo $fee; ?></td>
                         </tr>
                          
                            <?php endwhile; ?>
                    
                        <?php endif; ?>
                        
                            </tbody>
                            <tfoot>
                                <tr>
                                    <td colspan="2">
                                        <p class="fineprint"><?php the_field('miscellaneous_fees_fine_print'); ?></p>
                                    </td>
                                </tr>
                            </tfoot>
                        </table>
                        
                    </div>
                </div>
            </div>
            <div class="resources-col">
            	<h3>Resources</h3>
                <div>
                	<?php if( have_rows('resources_column') ): ?>
                
                    <?php while( have_rows('resources_column') ): the_row(); 
                        // variables
                        $title = get_sub_field('resource_title');
    					$internal_link = get_sub_field('resource_internal_link');
    					$external_link = get_sub_field('resource_external_link');
                        $description = get_sub_field('resource_description');
    					$resource_link_type = get_sub_field('resource_link_type');
    					if ($resource_link_type == 'internal') {
    						$link = get_sub_field('resource_internal_link');
    					} else {
    						$target = ' target="_blank" rel="nofollow"';
    						$link = get_sub_field('resource_external_link');
    					}
    				?>
                    
    				<p class="resource-title"><a href="<?php echo $link; ?>"<?php echo $target; ?>><?php echo $title; ?></a></p>
                    <p class="resource-description"><?php echo $description; ?></p>
    
                    <?php endwhile; ?>
                
                <?php endif; ?>
                </div>
            </div>
        </div>
    </div>
    
    <?php get_footer(); ?>
  • Hi @pumpiniron

    This is mostly because your server has settings that limit the available memory. To fix it, could you please increase the memory limit to at least 128MB? This page should give you more idea about it: https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP.

    If that doesn’t help, could you please ask your hosting provider to help you increase the PHP memory limit?

    I hope this helps 🙂

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Fatal error: Out of memory’ is closed to new replies.